Double for shadcn/ui

Double is a shadcn/ui theme built around a vivid deep yellow primary color (#68650d) with vivid deep purple accents (#650d68). The light mode uses a neutral background (#fdfdf6). Dark mode keeps the vivid deep yellow primary (#68650d) on a yellow-tinted background (#0b0b04).

Color palette

TokenLightDark
Background
#fdfdf6snow
#0b0b04black
Foreground
#000000black
#fdfdfcwhite
Card
#fdfdf6snow
#0b0b04black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fdfdf6snow
#0b0b04black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#68650dolive
#68650dolive
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#0d6865teal
#0d6865teal
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d4deddgainsboro
#212b2bdarkslategray
Muted foreground
#536e6edimgray
#91acabdarkgray
Accent
#650d68purple
#650d68purple
Accent foreground
#f3b2f5plum
#f3b2f5plum
Destructive
#682a08saddlebrown
#d45511chocolate
Destructive foreground
#f8c5aanavajowhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#68650dolive
#68650dolive

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button6.04:1AA
Secondary button6.55:1AA
Muted text3.99:1AA Large
Accent6.88:1AA
Destructive7.06:1AAA
Dark mode
Text on background19.37:1AAA
Text on card19.37:1AAA
Primary button6.04:1AA
Secondary button6.55:1AA
Muted text5.99:1AA
Accent6.88:1AA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.009 104.96);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.892 0.011 194.566);
  --muted-foreground: oklch(0.518 0.032 193.664);
  --popover: oklch(0.993 0.009 104.96);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.993 0.009 104.96);
  --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.495 0.102 107.432);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.47 0.078 191.205);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.365 0.157 326.642);
  --accent-foreground: oklch(0.845 0.116 325.435);
  --destructive: oklch(0.368 0.099 44.283);
  --destructive-foreground: oklch(0.863 0.069 49.721);
  --ring: oklch(0.495 0.102 107.432);
  --chart-1: oklch(0.495 0.102 107.432);
  --chart-2: oklch(0.47 0.078 191.205);
  --chart-3: oklch(0.365 0.157 326.642);
  --chart-4: oklch(0.513 0.085 191.16);
  --chart-5: oklch(0.501 0.104 107.421);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.018 106.992);
  --foreground: oklch(0.993 0.001 104.825);
  --muted: oklch(0.28 0.014 193.885);
  --muted-foreground: oklch(0.723 0.03 194.026);
  --popover: oklch(0.147 0.018 106.992);
  --popover-foreground: oklch(0.993 0.001 104.825);
  --card: oklch(0.147 0.018 106.992);
  --card-foreground: oklch(0.993 0.001 104.825);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.495 0.102 107.432);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.47 0.078 191.205);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.365 0.157 326.642);
  --accent-foreground: oklch(0.845 0.116 325.435);
  --destructive: oklch(0.609 0.175 42.749);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.495 0.102 107.432);
  --chart-1: oklch(0.495 0.102 107.432);
  --chart-2: oklch(0.47 0.078 191.205);
  --chart-3: oklch(0.365 0.157 326.642);
  --chart-4: oklch(0.513 0.085 191.16);
  --chart-5: oklch(0.501 0.104 107.421);
}