Temperature for shadcn/ui

Temperature is a shadcn/ui theme built around a deep green primary color (#0d4414) with deep purple accents (#440d3e). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the deep green primary (#0d4414) on a neutral background (#030803).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#030803black
Foreground
#031705black
#f5f9f6whitesmoke
Card
#f8fcf8mintcream
#040b05black
Card foreground
#021204black
#f8fbf9mintcream
Popover
#fcfdfcwhite
#030803black
Popover foreground
#031705black
#f5f9f6whitesmoke
Primary
#0d4414darkgreen
#0d4414darkgreen
Primary foreground
#44da55limegreen
#44da55limegreen
Secondary
#440d3emidnightblue
#440d3emidnightblue
Secondary foreground
#eb99e1plum
#eb99e1plum
Muted
#f4ecf3whitesmoke
#130b12black
Muted foreground
#5c575bdimgray
#a8a3a8darkgray
Accent
#440d3emidnightblue
#440d3emidnightblue
Accent foreground
#eb99e1plum
#eb99e1plum
Destructive
#dc3704orangered
#f53d05orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d4414darkgreen
#0d4414darkgreen

Contrast

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

Light mode
Text on background18.27:1AAA
Text on card18.56:1AAA
Primary button6.13:1AA
Secondary button7.39:1AAA
Muted text6.09:1AA
Accent7.39:1AAA
Destructive4.58:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.07:1AAA
Primary button6.13:1AA
Secondary button7.39:1AAA
Muted text7.79:1AAA
Accent7.39:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 149.098);
  --foreground: oklch(0.181 0.047 146.433);
  --muted: oklch(0.95 0.013 329.287);
  --muted-foreground: oklch(0.462 0.01 329.387);
  --popover: oklch(0.993 0.003 149.098);
  --popover-foreground: oklch(0.181 0.047 146.433);
  --card: oklch(0.987 0.006 149.062);
  --card-foreground: oklch(0.163 0.041 146.861);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.34 0.096 144.766);
  --primary-foreground: oklch(0.782 0.215 144.893);
  --secondary: oklch(0.279 0.103 333.147);
  --secondary-foreground: oklch(0.787 0.134 330.974);
  --accent: oklch(0.279 0.103 333.147);
  --accent-foreground: oklch(0.787 0.134 330.974);
  --destructive: oklch(0.587 0.207 34.364);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.34 0.096 144.766);
  --chart-1: oklch(0.34 0.096 144.766);
  --chart-2: oklch(0.279 0.103 333.147);
  --chart-3: oklch(0.279 0.103 333.147);
  --chart-4: oklch(0.312 0.118 333.269);
  --chart-5: oklch(0.344 0.099 144.623);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.019 148.11);
  --foreground: oklch(0.979 0.007 149.052);
  --muted: oklch(0.165 0.019 330.427);
  --muted-foreground: oklch(0.722 0.009 329.279);
  --popover: oklch(0.121 0.019 148.11);
  --popover-foreground: oklch(0.979 0.007 149.052);
  --card: oklch(0.139 0.022 148.079);
  --card-foreground: oklch(0.986 0.004 149.08);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.34 0.096 144.766);
  --primary-foreground: oklch(0.782 0.215 144.893);
  --secondary: oklch(0.279 0.103 333.147);
  --secondary-foreground: oklch(0.787 0.134 330.974);
  --accent: oklch(0.279 0.103 333.147);
  --accent-foreground: oklch(0.787 0.134 330.974);
  --destructive: oklch(0.636 0.226 34.209);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.34 0.096 144.766);
  --chart-1: oklch(0.34 0.096 144.766);
  --chart-2: oklch(0.279 0.103 333.147);
  --chart-3: oklch(0.279 0.103 333.147);
  --chart-4: oklch(0.312 0.118 333.269);
  --chart-5: oklch(0.344 0.099 144.623);
}