Luminous for shadcn/ui

Luminous is a shadcn/ui theme built around a vivid deep green primary color (#0b2004) with muted light green accents (#d0dbcc). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the vivid deep green primary (#0b2004) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#f9fcf8mintcream
#020401black
Foreground
#040802black
#fcfdfcwhite
Card
#f9fcf8mintcream
#020401black
Card foreground
#040802black
#fcfdfcwhite
Popover
#f9fcf8mintcream
#020401black
Popover foreground
#040802black
#fcfdfcwhite
Primary
#0b2004black
#0b2004black
Primary foreground
#4cd719limegreen
#4cd719limegreen
Secondary
#e4e8e3gainsboro
#232523black
Secondary foreground
#495346darkslategray
#bcbfbbsilver
Muted
#eef4ecwhitesmoke
#0d130bblack
Muted foreground
#4b4f4adarkslategray
#b1b5b0darkgray
Accent
#d0dbcclightgrey
#333c2fdarkslategray
Accent foreground
#364531darkslategray
#ccd4c9lightgrey
Destructive
#6d1f03maroon
#ea4306orangered
Destructive foreground
#fdbda5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b2004black
#0b2004black

Contrast

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

Light mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button9.03:1AAA
Secondary button6.49:1AA
Muted text7.45:1AAA
Accent7.16:1AAA
Destructive7.00:1AAA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button9.03:1AAA
Secondary button8.32:1AAA
Muted text9.03:1AAA
Accent7.57:1AAA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 137.207);
  --foreground: oklch(0.125 0.022 135.485);
  --muted: oklch(0.96 0.013 137.22);
  --muted-foreground: oklch(0.422 0.009 137.238);
  --popover: oklch(0.988 0.007 137.207);
  --popover-foreground: oklch(0.125 0.022 135.485);
  --card: oklch(0.988 0.007 137.207);
  --card-foreground: oklch(0.125 0.022 135.485);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.218 0.057 137.695);
  --primary-foreground: oklch(0.772 0.24 139.812);
  --secondary: oklch(0.927 0.007 137.207);
  --secondary-foreground: oklch(0.43 0.026 137.337);
  --accent: oklch(0.879 0.023 137.252);
  --accent-foreground: oklch(0.37 0.038 137.47);
  --destructive: oklch(0.362 0.116 37.741);
  --destructive-foreground: oklch(0.85 0.081 40.861);
  --ring: oklch(0.218 0.057 137.695);
  --chart-1: oklch(0.218 0.057 137.695);
  --chart-2: oklch(0.927 0.007 137.207);
  --chart-3: oklch(0.879 0.023 137.252);
  --chart-4: oklch(0.949 0.005 137.201);
  --chart-5: oklch(0.22 0.059 137.663);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.015 135.686);
  --foreground: oklch(0.994 0.003 137.196);
  --muted: oklch(0.179 0.019 137.478);
  --muted-foreground: oklch(0.768 0.007 137.212);
  --popover: oklch(0.098 0.015 135.686);
  --popover-foreground: oklch(0.994 0.003 137.196);
  --card: oklch(0.098 0.015 135.686);
  --card-foreground: oklch(0.994 0.003 137.196);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.218 0.057 137.695);
  --primary-foreground: oklch(0.772 0.24 139.812);
  --secondary: oklch(0.261 0.005 137.23);
  --secondary-foreground: oklch(0.8 0.006 137.208);
  --accent: oklch(0.343 0.025 137.377);
  --accent-foreground: oklch(0.861 0.018 137.239);
  --destructive: oklch(0.622 0.211 35.902);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.218 0.057 137.695);
  --chart-1: oklch(0.218 0.057 137.695);
  --chart-2: oklch(0.261 0.005 137.23);
  --chart-3: oklch(0.343 0.025 137.377);
  --chart-4: oklch(0.293 0.005 137.232);
  --chart-5: oklch(0.22 0.059 137.663);
}