Warm for shadcn/ui

Warm is a shadcn/ui theme built around a light green primary color (#c2f5ce) with light purple accents (#f5c2e9). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the light green primary (#c2f5ce) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#f8fcf9mintcream
#020302black
Foreground
#010402black
#f6f8f7whitesmoke
Card
#f8fcf9mintcream
#020302black
Card foreground
#010402black
#f6f8f7whitesmoke
Popover
#f8fcf9mintcream
#020302black
Popover foreground
#010402black
#f6f8f7whitesmoke
Primary
#c2f5cepowderblue
#c2f5cepowderblue
Primary foreground
#041a09black
#041a09black
Secondary
#f5c2e9pink
#f5c2e9pink
Secondary foreground
#72135cpurple
#72135cpurple
Muted
#f3ecf2whitesmoke
#130c11black
Muted foreground
#4d474cdarkslategray
#b8b2b7silver
Accent
#f5c2e9pink
#f5c2e9pink
Accent foreground
#72135cpurple
#72135cpurple
Destructive
#772208maroon
#ef4815orangered
Destructive foreground
#fac7b7peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c2f5cepowderblue
#c2f5cepowderblue

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button14.89:1AAA
Secondary button6.99:1AA
Muted text7.79:1AAA
Accent6.99:1AA
Destructive6.88:1AA
Dark mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button14.89:1AAA
Secondary button6.99:1AA
Muted text9.28:1AAA
Accent6.99:1AA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 153.145);
  --foreground: oklch(0.098 0.018 152.374);
  --muted: oklch(0.95 0.011 333.424);
  --muted-foreground: oklch(0.405 0.011 333.666);
  --popover: oklch(0.987 0.006 153.145);
  --popover-foreground: oklch(0.098 0.018 152.374);
  --card: oklch(0.987 0.006 153.145);
  --card-foreground: oklch(0.098 0.018 152.374);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.924 0.075 151.831);
  --primary-foreground: oklch(0.195 0.044 149.538);
  --secondary: oklch(0.87 0.078 334.615);
  --secondary-foreground: oklch(0.383 0.149 339.792);
  --accent: oklch(0.87 0.078 334.615);
  --accent-foreground: oklch(0.383 0.149 339.792);
  --destructive: oklch(0.385 0.123 36.032);
  --destructive-foreground: oklch(0.871 0.062 37.593);
  --ring: oklch(0.924 0.075 151.831);
  --chart-1: oklch(0.924 0.075 151.831);
  --chart-2: oklch(0.87 0.078 334.615);
  --chart-3: oklch(0.87 0.078 334.615);
  --chart-4: oklch(0.897 0.061 334.291);
  --chart-5: oklch(0.926 0.078 151.773);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.01 152.78);
  --foreground: oklch(0.978 0.003 153.192);
  --muted: oklch(0.165 0.017 334.798);
  --muted-foreground: oklch(0.77 0.009 333.433);
  --popover: oklch(0.095 0.01 152.78);
  --popover-foreground: oklch(0.978 0.003 153.192);
  --card: oklch(0.095 0.01 152.78);
  --card-foreground: oklch(0.978 0.003 153.192);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.924 0.075 151.831);
  --primary-foreground: oklch(0.195 0.044 149.538);
  --secondary: oklch(0.87 0.078 334.615);
  --secondary-foreground: oklch(0.383 0.149 339.792);
  --accent: oklch(0.87 0.078 334.615);
  --accent-foreground: oklch(0.383 0.149 339.792);
  --destructive: oklch(0.636 0.211 35.549);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.924 0.075 151.831);
  --chart-1: oklch(0.924 0.075 151.831);
  --chart-2: oklch(0.87 0.078 334.615);
  --chart-3: oklch(0.87 0.078 334.615);
  --chart-4: oklch(0.897 0.061 334.291);
  --chart-5: oklch(0.926 0.078 151.773);
}