Warm-up for shadcn/ui

Warm-up is a shadcn/ui theme built around a neutral gray primary color (#c9c9c9) with neutral gray accents (#c9c9c9). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#c9c9c9) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#fefbfbsnow
#070303black
Foreground
#140505black
#fdfcfcsnow
Card
#fcf7f7snow
#0b0404black
Card foreground
#100404black
#ffffffwhite
Popover
#fcf7f7snow
#0b0404black
Popover foreground
#100404black
#ffffffwhite
Primary
#c9c9c9silver
#c9c9c9silver
Primary foreground
#303030darkslategray
#303030darkslategray
Secondary
#c9c9c9silver
#c9c9c9silver
Secondary foreground
#303030darkslategray
#303030darkslategray
Muted
#efe7e7linen
#181010black
Muted foreground
#564e4edarkslategray
#b1a9a9darkgray
Accent
#c9c9c9silver
#c9c9c9silver
Accent foreground
#303030darkslategray
#303030darkslategray
Destructive
#d13d10firebrick
#ed4512orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c9c9c9silver
#c9c9c9silver

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.38:1AAA
Text on card19.06:1AAA
Primary button8.00:1AAA
Secondary button8.00:1AAA
Muted text6.62:1AA
Accent8.00:1AAA
Destructive4.80:1AA
Dark mode
Text on background20.04:1AAA
Text on card20.30:1AAA
Primary button8.00:1AAA
Secondary button8.00:1AAA
Muted text8.11:1AAA
Accent8.00:1AAA
Destructive3.84:1AA Large

CSS variables

Paste this into your globals.css to use Warm-up in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 17.203);
  --foreground: oklch(0.144 0.028 21.172);
  --muted: oklch(0.933 0.009 17.315);
  --muted-foreground: oklch(0.43 0.011 17.583);
  --popover: oklch(0.981 0.005 17.25);
  --popover-foreground: oklch(0.132 0.024 20.908);
  --card: oklch(0.981 0.005 17.25);
  --card-foreground: oklch(0.132 0.024 20.908);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.837 0 171.254);
  --primary-foreground: oklch(0.311 0 180);
  --secondary: oklch(0.837 0 171.254);
  --secondary-foreground: oklch(0.311 0 180);
  --accent: oklch(0.837 0 171.254);
  --accent-foreground: oklch(0.311 0 180);
  --destructive: oklch(0.574 0.191 35.432);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.837 0 171.254);
  --chart-1: oklch(0.837 0 171.254);
  --chart-2: oklch(0.837 0 171.254);
  --chart-3: oklch(0.837 0 171.254);
  --chart-4: oklch(0.861 0 180);
  --chart-5: oklch(0.835 0.004 17.229);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.014 19.708);
  --foreground: oklch(0.991 0.002 17.188);
  --muted: oklch(0.185 0.014 18.476);
  --muted-foreground: oklch(0.743 0.009 17.368);
  --popover: oklch(0.122 0.016 19.718);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.016 19.718);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.837 0 171.254);
  --primary-foreground: oklch(0.311 0 180);
  --secondary: oklch(0.837 0 171.254);
  --secondary-foreground: oklch(0.311 0 180);
  --accent: oklch(0.837 0 171.254);
  --accent-foreground: oklch(0.311 0 180);
  --destructive: oklch(0.631 0.212 35.308);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.837 0 171.254);
  --chart-1: oklch(0.837 0 171.254);
  --chart-2: oklch(0.837 0 171.254);
  --chart-3: oklch(0.837 0 171.254);
  --chart-4: oklch(0.861 0 180);
  --chart-5: oklch(0.835 0.004 17.229);
}