Crooked for shadcn/ui

Crooked is a shadcn/ui theme built around a deep teal primary color (#145757) with deep yellow accents (#575714). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#145757) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010404black
#f9fbfbghostwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#fcfdfdwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#145757darkslategray
#145757darkslategray
Primary foreground
#b1ededpaleturquoise
#b1ededpaleturquoise
Secondary
#571457indigo
#571457indigo
Secondary foreground
#edb1edplum
#edb1edplum
Muted
#efe1eflavender
#1e101eblack
Muted foreground
#624b62dimgray
#b49db4darkgray
Accent
#575714darkolivegreen
#575714darkolivegreen
Accent foreground
#ededb1palegoldenrod
#ededb1palegoldenrod
Destructive
#8d2807saddlebrown
#db3f0aorangered
Destructive foreground
#fcd6c9bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#145757darkslategray
#145757darkslategray

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.54:1AAA
Primary button6.42:1AA
Secondary button7.37:1AAA
Muted text6.18:1AA
Accent6.26:1AA
Destructive6.37:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.29:1AAA
Primary button6.42:1AA
Secondary button7.37:1AAA
Muted text7.33:1AAA
Accent6.26:1AA
Destructive4.44: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.101 0.014 195.233);
  --muted: oklch(0.925 0.023 325.76);
  --muted-foreground: oklch(0.446 0.046 326.315);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.416 0.064 194.989);
  --primary-foreground: oklch(0.904 0.061 196.131);
  --secondary: oklch(0.335 0.127 327.969);
  --secondary-foreground: oklch(0.833 0.105 326.466);
  --accent: oklch(0.442 0.086 109.44);
  --accent-foreground: oklch(0.93 0.077 107.813);
  --destructive: oklch(0.432 0.142 36.335);
  --destructive-foreground: oklch(0.906 0.046 39.282);
  --ring: oklch(0.416 0.064 194.989);
  --chart-1: oklch(0.416 0.064 194.989);
  --chart-2: oklch(0.335 0.127 327.969);
  --chart-3: oklch(0.442 0.086 109.44);
  --chart-4: oklch(0.366 0.141 327.998);
  --chart-5: oklch(0.421 0.065 194.958);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.001 197.135);
  --muted: oklch(0.199 0.033 326.725);
  --muted-foreground: oklch(0.723 0.041 325.992);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.993 0.001 197.147);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 197.147);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.416 0.064 194.989);
  --primary-foreground: oklch(0.904 0.061 196.131);
  --secondary: oklch(0.335 0.127 327.969);
  --secondary-foreground: oklch(0.833 0.105 326.466);
  --accent: oklch(0.442 0.086 109.44);
  --accent-foreground: oklch(0.93 0.077 107.813);
  --destructive: oklch(0.593 0.2 35.643);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.416 0.064 194.989);
  --chart-1: oklch(0.416 0.064 194.989);
  --chart-2: oklch(0.335 0.127 327.969);
  --chart-3: oklch(0.442 0.086 109.44);
  --chart-4: oklch(0.366 0.141 327.998);
  --chart-5: oklch(0.421 0.065 194.958);
}