Crooked for shadcn/ui

Crooked is a shadcn/ui theme built around a green primary color (#78e236) with muted light green accents (#d0d6cc). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#78e236) on a green-tinted background (#070c04).

Color palette

TokenLightDark
Background
#ffffffwhite
#070c04black
Foreground
#060e02black
#f7f9f6whitesmoke
Card
#fcfcfcsnow
#091005black
Card foreground
#040901black
#fafbf9snow
Popover
#fcfcfcsnow
#091005black
Popover foreground
#040901black
#fafbf9snow
Primary
#78e236yellowgreen
#78e236yellowgreen
Primary foreground
#20430adarkgreen
#20430adarkgreen
Secondary
#d0d6cclightgrey
#2e2f2ddarkslategray
Secondary foreground
#373e32darkslategray
#c7c9c5silver
Muted
#f1f7eewhitesmoke
#0c1108black
Muted foreground
#45513ddarkslategray
#b5c2aesilver
Accent
#d0d6cclightgrey
#2e2f2ddarkslategray
Accent foreground
#373e32darkslategray
#c7c9c5silver
Destructive
#9c2811brown
#e74727chocolate
Destructive foreground
#fce8e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#78e236yellowgreen
#78e236yellowgreen

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.66:1AAA
Primary button6.83:1AA
Secondary button7.47:1AAA
Muted text7.71:1AAA
Accent7.47:1AAA
Destructive6.51:1AA
Dark mode
Text on background18.68:1AAA
Text on card18.63:1AAA
Primary button6.83:1AA
Secondary button8.05:1AAA
Muted text10.24:1AAA
Accent8.05:1AAA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.149 0.032 131.382);
  --muted: oklch(0.969 0.014 133.084);
  --muted-foreground: oklch(0.419 0.036 133.613);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.129 0.028 131.002);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.129 0.028 131.002);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.819 0.223 136.408);
  --primary-foreground: oklch(0.343 0.093 136.342);
  --secondary: oklch(0.869 0.015 133.107);
  --secondary-foreground: oklch(0.354 0.023 133.456);
  --accent: oklch(0.869 0.015 133.107);
  --accent-foreground: oklch(0.354 0.023 133.456);
  --destructive: oklch(0.46 0.155 32.986);
  --destructive-foreground: oklch(0.945 0.023 31.105);
  --ring: oklch(0.819 0.223 136.408);
  --chart-1: oklch(0.819 0.223 136.408);
  --chart-2: oklch(0.869 0.015 133.107);
  --chart-3: oklch(0.869 0.015 133.107);
  --chart-4: oklch(0.891 0.013 133.083);
  --chart-5: oklch(0.827 0.229 136.569);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.023 131.688);
  --foreground: oklch(0.98 0.005 133.02);
  --muted: oklch(0.17 0.021 133.685);
  --muted-foreground: oklch(0.798 0.031 133.256);
  --popover: oklch(0.16 0.026 132.582);
  --popover-foreground: oklch(0.986 0.003 133.008);
  --card: oklch(0.16 0.026 132.582);
  --card-foreground: oklch(0.986 0.003 133.008);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.819 0.223 136.408);
  --primary-foreground: oklch(0.343 0.093 136.342);
  --secondary: oklch(0.304 0.005 133.109);
  --secondary-foreground: oklch(0.832 0.005 133.028);
  --accent: oklch(0.304 0.005 133.109);
  --accent-foreground: oklch(0.832 0.005 133.028);
  --destructive: oklch(0.624 0.202 33.135);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.819 0.223 136.408);
  --chart-1: oklch(0.819 0.223 136.408);
  --chart-2: oklch(0.304 0.005 133.109);
  --chart-3: oklch(0.304 0.005 133.109);
  --chart-4: oklch(0.334 0.006 133.113);
  --chart-5: oklch(0.827 0.229 136.569);
}