Stylish for shadcn/ui

Stylish is a shadcn/ui theme built around a light green primary color (#d2e1c6) with light pink accents (#e1c6d2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#d2e1c6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#070b04black
#fcfdfcwhite
Card
#ffffffwhite
#000000black
Card foreground
#070b04black
#fcfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#070b04black
#fcfdfcwhite
Primary
#d2e1c6lightgrey
#d2e1c6lightgrey
Primary foreground
#394d28darkslategray
#394d28darkslategray
Secondary
#c6d2e1lightgrey
#c6d2e1lightgrey
Secondary foreground
#28394ddarkslategray
#28394ddarkslategray
Muted
#e2e7eelavender
#11161dblack
Muted foreground
#464749darkslategray
#b6b7b9silver
Accent
#e1c6d2thistle
#e1c6d2thistle
Accent foreground
#4d2839darkslategray
#4d2839darkslategray
Destructive
#a21107darkred
#f63f31tomato
Destructive foreground
#fedfddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d2e1c6lightgrey
#d2e1c6lightgrey

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button6.77:1AA
Secondary button7.70:1AAA
Muted text7.50:1AAA
Accent7.88:1AAA
Destructive6.44:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button6.77:1AA
Secondary button7.70:1AAA
Muted text9.02:1AAA
Accent7.88:1AAA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.021 129.383);
  --muted: oklch(0.927 0.011 253.296);
  --muted-foreground: oklch(0.398 0.003 253.272);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.143 0.021 129.383);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.143 0.021 129.383);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.892 0.039 130.861);
  --primary-foreground: oklch(0.393 0.063 132.206);
  --secondary: oklch(0.86 0.024 253.396);
  --secondary-foreground: oklch(0.339 0.041 253.868);
  --accent: oklch(0.853 0.034 348.878);
  --accent-foreground: oklch(0.332 0.059 352.35);
  --destructive: oklch(0.453 0.177 29.795);
  --destructive-foreground: oklch(0.928 0.034 22.66);
  --ring: oklch(0.892 0.039 130.861);
  --chart-1: oklch(0.892 0.039 130.861);
  --chart-2: oklch(0.86 0.024 253.396);
  --chart-3: oklch(0.853 0.034 348.878);
  --chart-4: oklch(0.885 0.02 253.363);
  --chart-5: oklch(0.894 0.043 130.902);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 130.45);
  --muted: oklch(0.199 0.016 253.645);
  --muted-foreground: oklch(0.78 0.003 253.242);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.001 130.45);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.001 130.45);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.892 0.039 130.861);
  --primary-foreground: oklch(0.393 0.063 132.206);
  --secondary: oklch(0.86 0.024 253.396);
  --secondary-foreground: oklch(0.339 0.041 253.868);
  --accent: oklch(0.853 0.034 348.878);
  --accent-foreground: oklch(0.332 0.059 352.35);
  --destructive: oklch(0.642 0.222 28.965);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.892 0.039 130.861);
  --chart-1: oklch(0.892 0.039 130.861);
  --chart-2: oklch(0.86 0.024 253.396);
  --chart-3: oklch(0.853 0.034 348.878);
  --chart-4: oklch(0.885 0.02 253.363);
  --chart-5: oklch(0.894 0.043 130.902);
}