Warped for shadcn/ui

Warped is a shadcn/ui theme built around a deep yellow primary color (#393214) with muted light yellow accents (#e7e6de). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#393214) on a neutral background (#080702).

Color palette

TokenLightDark
Background
#ffffffwhite
#080702black
Foreground
#0b0a04black
#fafaf9snow
Card
#fcfcfcsnow
#0c0b03black
Card foreground
#080703black
#fdfdfcwhite
Popover
#fcfcfcsnow
#0c0b03black
Popover foreground
#080703black
#fdfdfcwhite
Primary
#393214darkslategray
#393214darkslategray
Primary foreground
#ded3a0palegoldenrod
#ded3a0palegoldenrod
Secondary
#e7e6degainsboro
#1c1b17black
Secondary foreground
#56513edarkolivegreen
#bbb8aadarkgray
Muted
#f1efe4linen
#1b190eblack
Muted foreground
#6c6751dimgray
#aea993darkgray
Accent
#e7e6degainsboro
#1c1b17black
Accent foreground
#56513edarkolivegreen
#bbb8aadarkgray
Destructive
#a50b03darkred
#fb372dorangered
Destructive foreground
#fededcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#393214darkslategray
#393214darkslategray

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.71:1AAA
Primary button8.48:1AAA
Secondary button6.34:1AA
Muted text4.91:1AA
Accent6.34:1AA
Destructive6.30:1AA
Dark mode
Text on background19.30:1AAA
Text on card19.41:1AAA
Primary button8.48:1AAA
Secondary button8.63:1AAA
Muted text7.48:1AAA
Accent8.63:1AAA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.016 99.532);
  --muted: oklch(0.95 0.014 96.352);
  --muted-foreground: oklch(0.511 0.033 96.843);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.126 0.014 99.876);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.126 0.014 99.876);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.317 0.048 96.862);
  --primary-foreground: oklch(0.864 0.068 96.939);
  --secondary: oklch(0.924 0.01 96.3);
  --secondary-foreground: oklch(0.435 0.031 96.887);
  --accent: oklch(0.924 0.01 96.3);
  --accent-foreground: oklch(0.435 0.031 96.887);
  --destructive: oklch(0.457 0.182 29.677);
  --destructive-foreground: oklch(0.926 0.036 21.418);
  --ring: oklch(0.317 0.048 96.862);
  --chart-1: oklch(0.317 0.048 96.862);
  --chart-2: oklch(0.924 0.01 96.3);
  --chart-3: oklch(0.924 0.01 96.3);
  --chart-4: oklch(0.945 0.007 96.261);
  --chart-5: oklch(0.32 0.05 96.784);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.017 100.421);
  --foreground: oklch(0.986 0.001 96.18);
  --muted: oklch(0.211 0.02 97.017);
  --muted-foreground: oklch(0.733 0.031 96.642);
  --popover: oklch(0.146 0.019 99.819);
  --popover-foreground: oklch(0.993 0.001 96.172);
  --card: oklch(0.146 0.019 99.819);
  --card-foreground: oklch(0.993 0.001 96.172);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.317 0.048 96.862);
  --primary-foreground: oklch(0.864 0.068 96.939);
  --secondary: oklch(0.223 0.009 96.618);
  --secondary-foreground: oklch(0.781 0.019 96.463);
  --accent: oklch(0.223 0.009 96.618);
  --accent-foreground: oklch(0.781 0.019 96.463);
  --destructive: oklch(0.644 0.231 28.647);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.317 0.048 96.862);
  --chart-1: oklch(0.317 0.048 96.862);
  --chart-2: oklch(0.223 0.009 96.618);
  --chart-3: oklch(0.223 0.009 96.618);
  --chart-4: oklch(0.257 0.011 96.65);
  --chart-5: oklch(0.32 0.05 96.784);
}