Stylish for shadcn/ui

Stylish is a shadcn/ui theme built around a light green primary color (#ddf8dd) with light teal accents (#ddf8eb). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the light green primary (#ddf8dd) on a green-tinted background (#040b04).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#040b04black
Foreground
#020802black
#fcfdfcwhite
Card
#f7fdf7mintcream
#040b04black
Card foreground
#020802black
#fcfdfcwhite
Popover
#f7fdf7mintcream
#040b04black
Popover foreground
#020802black
#fcfdfcwhite
Primary
#ddf8ddbeige
#ddf8ddbeige
Primary foreground
#0a330adarkgreen
#0a330adarkgreen
Secondary
#ebf8ddbeige
#ebf8ddbeige
Secondary foreground
#1f330adarkgreen
#1f330adarkgreen
Muted
#e0e5dcgainsboro
#1f231ablack
Muted foreground
#5c5e5adimgray
#a3a5a1darkgray
Accent
#ddf8ebhoneydew
#ddf8ebhoneydew
Accent foreground
#0a331fdarkgreen
#0a331fdarkgreen
Destructive
#c91403firebrick
#fc4736tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ddf8ddbeige
#ddf8ddbeige

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button12.47:1AAA
Secondary button12.39:1AAA
Muted text5.11:1AA
Accent12.44:1AAA
Destructive5.86:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button12.47:1AAA
Secondary button12.39:1AAA
Muted text6.44:1AA
Accent12.44:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.009 145.504);
  --foreground: oklch(0.122 0.023 143.991);
  --muted: oklch(0.915 0.012 128.612);
  --muted-foreground: oklch(0.478 0.006 128.606);
  --popover: oklch(0.987 0.009 145.504);
  --popover-foreground: oklch(0.122 0.023 143.991);
  --card: oklch(0.987 0.009 145.504);
  --card-foreground: oklch(0.122 0.023 143.991);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.953 0.047 145.196);
  --primary-foreground: oklch(0.284 0.082 143.045);
  --secondary: oklch(0.963 0.039 128.924);
  --secondary-foreground: oklch(0.295 0.07 132.276);
  --accent: oklch(0.957 0.034 164.167);
  --accent-foreground: oklch(0.288 0.059 157.122);
  --destructive: oklch(0.53 0.21 30.116);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.953 0.047 145.196);
  --chart-1: oklch(0.953 0.047 145.196);
  --chart-2: oklch(0.963 0.039 128.924);
  --chart-3: oklch(0.957 0.034 164.167);
  --chart-4: oklch(0.977 0.025 128.744);
  --chart-5: oklch(0.954 0.049 145.179);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.023 144.2);
  --foreground: oklch(0.993 0.001 145.568);
  --muted: oklch(0.248 0.017 129.25);
  --muted-foreground: oklch(0.719 0.006 128.548);
  --popover: oklch(0.139 0.023 144.2);
  --popover-foreground: oklch(0.993 0.001 145.568);
  --card: oklch(0.139 0.023 144.2);
  --card-foreground: oklch(0.993 0.001 145.568);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.953 0.047 145.196);
  --primary-foreground: oklch(0.284 0.082 143.045);
  --secondary: oklch(0.963 0.039 128.924);
  --secondary-foreground: oklch(0.295 0.07 132.276);
  --accent: oklch(0.957 0.034 164.167);
  --accent-foreground: oklch(0.288 0.059 157.122);
  --destructive: oklch(0.659 0.22 29.453);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.953 0.047 145.196);
  --chart-1: oklch(0.953 0.047 145.196);
  --chart-2: oklch(0.963 0.039 128.924);
  --chart-3: oklch(0.957 0.034 164.167);
  --chart-4: oklch(0.977 0.025 128.744);
  --chart-5: oklch(0.954 0.049 145.179);
}