Crooked for shadcn/ui

Crooked is a shadcn/ui theme built around a vivid light green primary color (#adf5c9) with vivid light teal accents (#adf5ed). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid light green primary (#adf5c9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefcwhite
#000000black
Foreground
#040c07black
#ffffffwhite
Card
#fbfefcwhite
#000000black
Card foreground
#040c07black
#ffffffwhite
Popover
#fbfefcwhite
#000000black
Popover foreground
#040c07black
#ffffffwhite
Primary
#adf5c9powderblue
#adf5c9powderblue
Primary foreground
#010904black
#010904black
Secondary
#b5f5adpalegreen
#b5f5adpalegreen
Secondary foreground
#020901black
#020901black
Muted
#f0f5f0whitesmoke
#0b0f0ablack
Muted foreground
#474e46darkslategray
#b2b9b1darkgray
Accent
#adf5edpaleturquoise
#adf5edpaleturquoise
Accent foreground
#010908black
#010908black
Destructive
#640d02maroon
#fc371dorangered
Destructive foreground
#fda69blightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#adf5c9powderblue
#adf5c9powderblue

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button16.04:1AAA
Secondary button16.00:1AAA
Muted text7.76:1AAA
Accent16.38:1AAA
Destructive6.91:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button16.04:1AAA
Secondary button16.00:1AAA
Muted text9.62:1AAA
Accent16.38:1AAA
Destructive3.69:1AA Large

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.005 159.366);
  --foreground: oklch(0.141 0.019 159.121);
  --muted: oklch(0.964 0.007 142.086);
  --muted-foreground: oklch(0.414 0.015 141.99);
  --popover: oklch(0.994 0.005 159.366);
  --popover-foreground: oklch(0.141 0.019 159.121);
  --card: oklch(0.994 0.005 159.366);
  --card-foreground: oklch(0.141 0.019 159.121);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.912 0.095 156.878);
  --primary-foreground: oklch(0.126 0.024 159.232);
  --secondary: oklch(0.91 0.116 141.675);
  --secondary-foreground: oklch(0.126 0.032 139.664);
  --accent: oklch(0.921 0.073 186.91);
  --accent-foreground: oklch(0.128 0.019 188.087);
  --destructive: oklch(0.326 0.122 31.796);
  --destructive-foreground: oklch(0.809 0.106 27.838);
  --ring: oklch(0.912 0.095 156.878);
  --chart-1: oklch(0.912 0.095 156.878);
  --chart-2: oklch(0.91 0.116 141.675);
  --chart-3: oklch(0.921 0.073 186.91);
  --chart-4: oklch(0.924 0.097 141.75);
  --chart-5: oklch(0.914 0.098 156.779);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.162 0.012 141.867);
  --muted-foreground: oklch(0.778 0.013 142.057);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.912 0.095 156.878);
  --primary-foreground: oklch(0.126 0.024 159.232);
  --secondary: oklch(0.91 0.116 141.675);
  --secondary-foreground: oklch(0.126 0.032 139.664);
  --accent: oklch(0.921 0.073 186.91);
  --accent-foreground: oklch(0.128 0.019 188.087);
  --destructive: oklch(0.644 0.234 31.029);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.912 0.095 156.878);
  --chart-1: oklch(0.912 0.095 156.878);
  --chart-2: oklch(0.91 0.116 141.675);
  --chart-3: oklch(0.921 0.073 186.91);
  --chart-4: oklch(0.924 0.097 141.75);
  --chart-5: oklch(0.914 0.098 156.779);
}