Crooked for shadcn/ui

Crooked is a shadcn/ui theme built around a deep teal primary color (#13533d) with deep cyan accents (#134953). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the deep teal primary (#13533d) on a neutral background (#030706).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#030706black
Foreground
#010503black
#f8fcfamintcream
Card
#fbfdfdwhite
#030706black
Card foreground
#010503black
#f8fcfamintcream
Popover
#fbfdfdwhite
#030706black
Popover foreground
#010503black
#f8fcfamintcream
Primary
#13533ddarkslategray
#13533ddarkslategray
Primary foreground
#acecd6powderblue
#acecd6powderblue
Secondary
#13531ddarkgreen
#13531ddarkgreen
Secondary foreground
#acecb6palegreen
#acecb6palegreen
Muted
#d5ddd6gainsboro
#222a24darkslategray
Muted foreground
#4e6a52dimgray
#95b19adarkseagreen
Accent
#134953darkslategray
#134953darkslategray
Accent foreground
#ace2ecpowderblue
#ace2ecpowderblue
Destructive
#a21702darkred
#fd5035tomato
Destructive foreground
#ffdcd7mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#13533ddarkslategray
#13533ddarkslategray

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button6.73:1AA
Secondary button6.74:1AA
Muted text4.30:1AA Large
Accent7.00:1AAA
Destructive6.21:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button6.73:1AA
Secondary button6.74:1AA
Muted text6.33:1AA
Accent7.00:1AAA
Destructive6.36:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 173.509);
  --foreground: oklch(0.101 0.016 173.903);
  --muted: oklch(0.889 0.012 150.069);
  --muted-foreground: oklch(0.494 0.049 148.851);
  --popover: oklch(0.994 0.002 173.509);
  --popover-foreground: oklch(0.101 0.016 173.903);
  --card: oklch(0.994 0.002 173.509);
  --card-foreground: oklch(0.101 0.016 173.903);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.397 0.074 165.022);
  --primary-foreground: oklch(0.894 0.072 170.962);
  --secondary: oklch(0.39 0.107 145.438);
  --secondary-foreground: oklch(0.886 0.099 148.668);
  --accent: oklch(0.377 0.057 211.859);
  --accent-foreground: oklch(0.88 0.057 209.552);
  --destructive: oklch(0.456 0.174 31.401);
  --destructive-foreground: oklch(0.922 0.039 28.209);
  --ring: oklch(0.397 0.074 165.022);
  --chart-1: oklch(0.397 0.074 165.022);
  --chart-2: oklch(0.39 0.107 145.438);
  --chart-3: oklch(0.377 0.057 211.859);
  --chart-4: oklch(0.429 0.119 145.33);
  --chart-5: oklch(0.401 0.077 164.636);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.011 173.762);
  --foreground: oklch(0.987 0.005 173.439);
  --muted: oklch(0.276 0.016 149.461);
  --muted-foreground: oklch(0.733 0.045 149.412);
  --popover: oklch(0.122 0.011 173.762);
  --popover-foreground: oklch(0.987 0.005 173.439);
  --card: oklch(0.122 0.011 173.762);
  --card-foreground: oklch(0.987 0.005 173.439);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.397 0.074 165.022);
  --primary-foreground: oklch(0.894 0.072 170.962);
  --secondary: oklch(0.39 0.107 145.438);
  --secondary-foreground: oklch(0.886 0.099 148.668);
  --accent: oklch(0.377 0.057 211.859);
  --accent-foreground: oklch(0.88 0.057 209.552);
  --destructive: oklch(0.67 0.214 31.59);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.397 0.074 165.022);
  --chart-1: oklch(0.397 0.074 165.022);
  --chart-2: oklch(0.39 0.107 145.438);
  --chart-3: oklch(0.377 0.057 211.859);
  --chart-4: oklch(0.429 0.119 145.33);
  --chart-5: oklch(0.401 0.077 164.636);
}