Double for shadcn/ui

Double is a shadcn/ui theme built around a muted deep violet primary color (#493653) with muted deep green accents (#415336). The light mode uses a neutral background (#fbf7fc). Dark mode keeps the muted deep violet primary (#493653) on a violet-tinted background (#08050b).

Color palette

TokenLightDark
Background
#fbf7fcghostwhite
#08050bblack
Foreground
#0f0515black
#ffffffwhite
Card
#f8f4fbghostwhite
#0b060eblack
Card foreground
#0c0410black
#ffffffwhite
Popover
#fbf7fcghostwhite
#08050bblack
Popover foreground
#0f0515black
#ffffffwhite
Primary
#493653darkslategray
#493653darkslategray
Primary foreground
#e0d7e5gainsboro
#e0d7e5gainsboro
Secondary
#415336darkslategray
#415336darkslategray
Secondary foreground
#dce5d7gainsboro
#dce5d7gainsboro
Muted
#d5e6ccgainsboro
#233319darkslategray
Muted foreground
#5d635adimgray
#9fa59cdarkgray
Accent
#415336darkslategray
#415336darkslategray
Accent foreground
#dce5d7gainsboro
#dce5d7gainsboro
Destructive
#651306maroon
#f3462btomato
Destructive foreground
#faafa3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#493653darkslategray
#493653darkslategray

Contrast

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

Light mode
Text on background18.84:1AAA
Text on card18.53:1AAA
Primary button7.73:1AAA
Secondary button6.42:1AA
Muted text4.70:1AA
Accent6.42:1AA
Destructive7.11:1AAA
Dark mode
Text on background20.27:1AAA
Text on card20.04:1AAA
Primary button7.73:1AAA
Secondary button6.42:1AA
Muted text5.33:1AA
Accent6.42:1AA
Destructive3.68: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.981 0.008 313.558);
  --foreground: oklch(0.142 0.038 312.815);
  --muted: oklch(0.905 0.039 133.881);
  --muted-foreground: oklch(0.492 0.017 133.819);
  --popover: oklch(0.981 0.008 313.558);
  --popover-foreground: oklch(0.142 0.038 312.815);
  --card: oklch(0.972 0.011 313.534);
  --card-foreground: oklch(0.13 0.033 313.83);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.367 0.054 312.684);
  --primary-foreground: oklch(0.89 0.021 313.46);
  --secondary: oklch(0.419 0.052 134.472);
  --secondary-foreground: oklch(0.911 0.021 133.75);
  --accent: oklch(0.419 0.052 134.472);
  --accent-foreground: oklch(0.911 0.021 133.75);
  --destructive: oklch(0.333 0.118 31.811);
  --destructive-foreground: oklch(0.822 0.09 28.881);
  --ring: oklch(0.367 0.054 312.684);
  --chart-1: oklch(0.367 0.054 312.684);
  --chart-2: oklch(0.419 0.052 134.472);
  --chart-3: oklch(0.419 0.052 134.472);
  --chart-4: oklch(0.451 0.056 134.488);
  --chart-5: oklch(0.364 0.061 312.534);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.018 314.86);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.3 0.049 134.87);
  --muted-foreground: oklch(0.716 0.015 133.738);
  --popover: oklch(0.123 0.018 314.86);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.021 313.645);
  --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.367 0.054 312.684);
  --primary-foreground: oklch(0.89 0.021 313.46);
  --secondary: oklch(0.419 0.052 134.472);
  --secondary-foreground: oklch(0.911 0.021 133.75);
  --accent: oklch(0.419 0.052 134.472);
  --accent-foreground: oklch(0.911 0.021 133.75);
  --destructive: oklch(0.642 0.214 31.651);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.367 0.054 312.684);
  --chart-1: oklch(0.367 0.054 312.684);
  --chart-2: oklch(0.419 0.052 134.472);
  --chart-3: oklch(0.419 0.052 134.472);
  --chart-4: oklch(0.451 0.056 134.488);
  --chart-5: oklch(0.364 0.061 312.534);
}