Radiant for shadcn/ui

Radiant is a shadcn/ui theme built around a muted deep green primary color (#161c12) with muted deep violet accents (#18121c). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the muted deep green primary (#161c12) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f9fdf7mintcream
#000000black
Foreground
#060d02black
#fcfdfcwhite
Card
#f6fcf3whitesmoke
#030303black
Card foreground
#040901black
#ffffffwhite
Popover
#f6fcf3whitesmoke
#030303black
Popover foreground
#040901black
#ffffffwhite
Primary
#161c12black
#161c12black
Primary foreground
#abc29edarkgray
#abc29edarkgray
Secondary
#18121cblack
#18121cblack
Secondary foreground
#b59ec2darkgray
#b59ec2darkgray
Muted
#ebe8edlavender
#151217black
Muted foreground
#615667dimgray
#a398a9darkgray
Accent
#18121cblack
#18121cblack
Accent foreground
#b59ec2darkgray
#b59ec2darkgray
Destructive
#7a1305maroon
#f6442ctomato
Destructive foreground
#fcbeb6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#161c12black
#161c12black

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card19.28:1AAA
Primary button9.04:1AAA
Secondary button7.56:1AAA
Muted text5.70:1AA
Accent7.56:1AAA
Destructive6.83:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.67:1AAA
Primary button9.04:1AAA
Secondary button7.56:1AAA
Muted text6.74:1AA
Accent7.56:1AAA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 133.665);
  --foreground: oklch(0.148 0.031 131.984);
  --muted: oklch(0.935 0.008 313.553);
  --muted-foreground: oklch(0.469 0.03 313.213);
  --popover: oklch(0.984 0.014 133.695);
  --popover-foreground: oklch(0.128 0.027 131.667);
  --card: oklch(0.984 0.014 133.695);
  --card-foreground: oklch(0.128 0.027 131.667);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.217 0.022 134.31);
  --primary-foreground: oklch(0.787 0.056 134.074);
  --secondary: oklch(0.194 0.023 312.867);
  --secondary-foreground: oklch(0.731 0.058 313.122);
  --accent: oklch(0.194 0.023 312.867);
  --accent-foreground: oklch(0.731 0.058 313.122);
  --destructive: oklch(0.376 0.139 31.165);
  --destructive-foreground: oklch(0.855 0.073 27.245);
  --ring: oklch(0.217 0.022 134.31);
  --chart-1: oklch(0.217 0.022 134.31);
  --chart-2: oklch(0.194 0.023 312.867);
  --chart-3: oklch(0.194 0.023 312.867);
  --chart-4: oklch(0.225 0.03 312.782);
  --chart-5: oklch(0.219 0.025 134.405);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.003 133.623);
  --muted: oklch(0.188 0.012 313.22);
  --muted-foreground: oklch(0.695 0.027 313.364);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.217 0.022 134.31);
  --primary-foreground: oklch(0.787 0.056 134.074);
  --secondary: oklch(0.194 0.023 312.867);
  --secondary-foreground: oklch(0.731 0.058 313.122);
  --accent: oklch(0.194 0.023 312.867);
  --accent-foreground: oklch(0.731 0.058 313.122);
  --destructive: oklch(0.646 0.218 30.961);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.217 0.022 134.31);
  --chart-1: oklch(0.217 0.022 134.31);
  --chart-2: oklch(0.194 0.023 312.867);
  --chart-3: oklch(0.194 0.023 312.867);
  --chart-4: oklch(0.225 0.03 312.782);
  --chart-5: oklch(0.219 0.025 134.405);
}