Luminous for shadcn/ui

Luminous is a shadcn/ui theme built around a green primary color (#36cb25) with muted light green accents (#e4ede3). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#36cb25) on a neutral background (#040703).

Color palette

TokenLightDark
Background
#ffffffwhite
#040703black
Foreground
#030802black
#fcfdfbsnow
Card
#fcfcfcsnow
#060a05black
Card foreground
#010401black
#ffffffwhite
Popover
#ffffffwhite
#040703black
Popover foreground
#030802black
#fcfdfbsnow
Primary
#36cb25limegreen
#36cb25limegreen
Primary foreground
#081e06black
#081e06black
Secondary
#e4ede3gainsboro
#292e28darkslategray
Secondary foreground
#182216black
#c1c8c0silver
Muted
#e2eae1gainsboro
#161e15black
Muted foreground
#3f4c3ddarkslategray
#b4c2b3silver
Accent
#e4ede3gainsboro
#292e28darkslategray
Accent foreground
#182216black
#c1c8c0silver
Destructive
#9b0b08darkred
#f42d2acrimson
Destructive foreground
#fdd9d8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#36cb25limegreen
#36cb25limegreen

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card20.16:1AAA
Primary button8.07:1AAA
Secondary button13.67:1AAA
Muted text7.38:1AAA
Accent13.67:1AAA
Destructive6.58:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.92:1AAA
Primary button8.07:1AAA
Secondary button8.07:1AAA
Muted text9.19:1AAA
Accent8.07:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.025 140.718);
  --muted: oklch(0.928 0.014 142.565);
  --muted-foreground: oklch(0.401 0.03 142.315);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.124 0.025 140.718);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.098 0.02 140.718);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.735 0.231 141.784);
  --primary-foreground: oklch(0.21 0.054 141.294);
  --secondary: oklch(0.936 0.015 142.562);
  --secondary-foreground: oklch(0.237 0.026 142.183);
  --accent: oklch(0.936 0.015 142.562);
  --accent-foreground: oklch(0.237 0.026 142.183);
  --destructive: oklch(0.437 0.173 28.87);
  --destructive-foreground: oklch(0.915 0.04 19.069);
  --ring: oklch(0.735 0.231 141.784);
  --chart-1: oklch(0.735 0.231 141.784);
  --chart-2: oklch(0.936 0.015 142.562);
  --chart-3: oklch(0.936 0.015 142.562);
  --chart-4: oklch(0.958 0.01 142.585);
  --chart-5: oklch(0.744 0.237 141.817);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.014 141.585);
  --foreground: oklch(0.993 0.003 142.614);
  --muted: oklch(0.223 0.02 142.256);
  --muted-foreground: oklch(0.798 0.026 142.495);
  --popover: oklch(0.12 0.014 141.585);
  --popover-foreground: oklch(0.993 0.003 142.614);
  --card: oklch(0.138 0.016 141.585);
  --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.735 0.231 141.784);
  --primary-foreground: oklch(0.21 0.054 141.294);
  --secondary: oklch(0.295 0.013 142.444);
  --secondary-foreground: oklch(0.826 0.014 142.559);
  --accent: oklch(0.295 0.013 142.444);
  --accent-foreground: oklch(0.826 0.014 142.559);
  --destructive: oklch(0.625 0.232 27.821);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.735 0.231 141.784);
  --chart-1: oklch(0.735 0.231 141.784);
  --chart-2: oklch(0.295 0.013 142.444);
  --chart-3: oklch(0.295 0.013 142.444);
  --chart-4: oklch(0.326 0.015 142.437);
  --chart-5: oklch(0.744 0.237 141.817);
}