Lustrous for shadcn/ui

Lustrous is a shadcn/ui theme built around a vivid green primary color (#60e00b) with vivid green accents (#0be020). The light mode uses a neutral background (#fafbf8). Dark mode keeps the vivid green primary (#60e00b) on a neutral background (#020402).

Color palette

TokenLightDark
Background
#fafbf8snow
#020402black
Foreground
#091202black
#fcfdfcwhite
Card
#fafbf8snow
#020402black
Card foreground
#091202black
#fcfdfcwhite
Popover
#fafbf8snow
#020402black
Popover foreground
#091202black
#fcfdfcwhite
Primary
#60e00blawngreen
#60e00blawngreen
Primary foreground
#0d1d01black
#0d1d01black
Secondary
#cbe00bgold
#cbe00bgold
Secondary foreground
#1a1d01black
#1a1d01black
Muted
#eff0e5linen
#191a0fblack
Muted foreground
#4f5049darkslategray
#b5b6afdarkgray
Accent
#0be020lime
#0be020lime
Accent foreground
#011d04black
#011d04black
Destructive
#c02202firebrick
#fd4521orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#60e00blawngreen
#60e00blawngreen

Contrast

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

Light mode
Text on background18.44:1AAA
Text on card18.44:1AAA
Primary button10.19:1AAA
Secondary button11.64:1AAA
Muted text7.08:1AAA
Accent9.92:1AAA
Destructive6.06:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button10.19:1AAA
Secondary button11.64:1AAA
Muted text8.61:1AAA
Accent9.92:1AAA
Destructive3.46:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 132.393);
  --foreground: oklch(0.168 0.038 131.879);
  --muted: oklch(0.951 0.014 111.291);
  --muted-foreground: oklch(0.427 0.01 111.447);
  --popover: oklch(0.987 0.005 132.393);
  --popover-foreground: oklch(0.168 0.038 131.879);
  --card: oklch(0.987 0.005 132.393);
  --card-foreground: oklch(0.168 0.038 131.879);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.802 0.245 137.89);
  --primary-foreground: oklch(0.209 0.056 133.835);
  --secondary: oklch(0.861 0.196 116.529);
  --secondary-foreground: oklch(0.221 0.047 114.783);
  --accent: oklch(0.787 0.261 143.075);
  --accent-foreground: oklch(0.203 0.06 145.312);
  --destructive: oklch(0.52 0.196 32.067);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.802 0.245 137.89);
  --chart-1: oklch(0.802 0.245 137.89);
  --chart-2: oklch(0.861 0.196 116.529);
  --chart-3: oklch(0.787 0.261 143.075);
  --chart-4: oklch(0.903 0.206 116.55);
  --chart-5: oklch(0.811 0.25 138.08);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.012 131.276);
  --foreground: oklch(0.993 0.001 132.368);
  --muted: oklch(0.212 0.02 112.737);
  --muted-foreground: oklch(0.773 0.009 111.222);
  --popover: oklch(0.098 0.012 131.276);
  --popover-foreground: oklch(0.993 0.001 132.368);
  --card: oklch(0.098 0.012 131.276);
  --card-foreground: oklch(0.993 0.001 132.368);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.802 0.245 137.89);
  --primary-foreground: oklch(0.209 0.056 133.835);
  --secondary: oklch(0.861 0.196 116.529);
  --secondary-foreground: oklch(0.221 0.047 114.783);
  --accent: oklch(0.787 0.261 143.075);
  --accent-foreground: oklch(0.203 0.06 145.312);
  --destructive: oklch(0.658 0.224 32.933);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.802 0.245 137.89);
  --chart-1: oklch(0.802 0.245 137.89);
  --chart-2: oklch(0.861 0.196 116.529);
  --chart-3: oklch(0.787 0.261 143.075);
  --chart-4: oklch(0.903 0.206 116.55);
  --chart-5: oklch(0.811 0.25 138.08);
}