Radiator for shadcn/ui

Radiator is a shadcn/ui theme built around a muted deep green primary color (#33352c) with muted light green accents (#d3d5cd). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#33352c) on a green-tinted background (#0c0e07).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0e07black
Foreground
#030401black
#fdfdfcwhite
Card
#fcfcfcsnow
#0f1108black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#0c0e07black
Popover foreground
#030401black
#fdfdfcwhite
Primary
#33352cdarkslategray
#33352cdarkslategray
Primary foreground
#cccec5lightgrey
#cccec5lightgrey
Secondary
#d3d5cdlightgrey
#181915black
Secondary foreground
#3b3d33darkslategray
#b3b6aadarkgray
Muted
#edefe6linen
#171910black
Muted foreground
#63665cdimgray
#a1a399darkgray
Accent
#d3d5cdlightgrey
#181915black
Accent foreground
#3b3d33darkslategray
#b3b6aadarkgray
Destructive
#75270bsaddlebrown
#db4914chocolate
Destructive foreground
#f8cab9peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#33352cdarkslategray
#33352cdarkslategray

Contrast

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

Light mode
Text on background20.55:1AAA
Text on card20.54:1AAA
Primary button7.84:1AAA
Secondary button7.46:1AAA
Muted text5.06:1AA
Accent7.46:1AAA
Destructive6.90:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.00:1AAA
Primary button7.84:1AAA
Secondary button8.58:1AAA
Muted text6.93:1AA
Accent8.58:1AAA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.103 0.015 117.401);
  --muted: oklch(0.949 0.013 117.329);
  --muted-foreground: oklch(0.504 0.015 117.623);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.103 0.015 117.401);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.323 0.015 117.93);
  --primary-foreground: oklch(0.848 0.013 117.362);
  --secondary: oklch(0.87 0.011 117.314);
  --secondary-foreground: oklch(0.355 0.017 117.955);
  --accent: oklch(0.87 0.011 117.314);
  --accent-foreground: oklch(0.355 0.017 117.955);
  --destructive: oklch(0.387 0.115 38.313);
  --destructive-foreground: oklch(0.875 0.058 40.946);
  --ring: oklch(0.323 0.015 117.93);
  --chart-1: oklch(0.323 0.015 117.93);
  --chart-2: oklch(0.87 0.011 117.314);
  --chart-3: oklch(0.87 0.011 117.314);
  --chart-4: oklch(0.892 0.009 117.269);
  --chart-5: oklch(0.327 0.02 118.193);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.015 118.284);
  --foreground: oklch(0.994 0.002 117.108);
  --muted: oklch(0.209 0.019 118.722);
  --muted-foreground: oklch(0.711 0.014 117.434);
  --popover: oklch(0.158 0.015 118.284);
  --popover-foreground: oklch(0.994 0.002 117.108);
  --card: oklch(0.173 0.017 118.848);
  --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.323 0.015 117.93);
  --primary-foreground: oklch(0.848 0.013 117.362);
  --secondary: oklch(0.21 0.007 117.694);
  --secondary-foreground: oklch(0.771 0.018 117.497);
  --accent: oklch(0.21 0.007 117.694);
  --accent-foreground: oklch(0.771 0.018 117.497);
  --destructive: oklch(0.606 0.191 37.487);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.323 0.015 117.93);
  --chart-1: oklch(0.323 0.015 117.93);
  --chart-2: oklch(0.21 0.007 117.694);
  --chart-3: oklch(0.21 0.007 117.694);
  --chart-4: oklch(0.245 0.009 117.756);
  --chart-5: oklch(0.327 0.02 118.193);
}