Softdrink for shadcn/ui

Softdrink is a shadcn/ui theme built around a light purple primary color (#e2c0d8) with light cyan accents (#c0d8e2). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the light purple primary (#e2c0d8) on a neutral background (#040203).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#040203black
Foreground
#10050cblack
#ffffffwhite
Card
#fdfcfdwhite
#040203black
Card foreground
#10050cblack
#ffffffwhite
Popover
#fdfcfdwhite
#040203black
Popover foreground
#10050cblack
#ffffffwhite
Primary
#e2c0d8thistle
#e2c0d8thistle
Primary foreground
#4d2341darkslategray
#4d2341darkslategray
Secondary
#d8e2c0lightgrey
#d8e2c0lightgrey
Secondary foreground
#414d23darkolivegreen
#414d23darkolivegreen
Muted
#dee1d5gainsboro
#262a1edarkslategray
Muted foreground
#5a5a58dimgray
#a6a7a5darkgray
Accent
#c0d8e2powderblue
#c0d8e2powderblue
Accent foreground
#23414ddarkslategray
#23414ddarkslategray
Destructive
#b92a0efirebrick
#d53110firebrick
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2c0d8thistle
#e2c0d8thistle

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button7.83:1AAA
Secondary button6.74:1AA
Muted text5.22:1AA
Accent7.34:1AAA
Destructive5.99:1AA
Dark mode
Text on background20.73:1AAA
Text on card20.73:1AAA
Primary button7.83:1AAA
Secondary button6.74:1AA
Muted text6.07:1AA
Accent7.34:1AAA
Destructive4.89:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 335.235);
  --foreground: oklch(0.137 0.027 337.278);
  --muted: oklch(0.905 0.017 119.621);
  --muted-foreground: oklch(0.467 0.003 119.411);
  --popover: oklch(0.992 0.002 335.235);
  --popover-foreground: oklch(0.137 0.027 337.278);
  --card: oklch(0.992 0.002 335.235);
  --card-foreground: oklch(0.137 0.027 337.278);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.844 0.05 336.233);
  --primary-foreground: oklch(0.326 0.076 339.08);
  --secondary: oklch(0.897 0.046 120.199);
  --secondary-foreground: oklch(0.399 0.065 122.407);
  --accent: oklch(0.869 0.029 223.526);
  --accent-foreground: oklch(0.358 0.041 225.48);
  --destructive: oklch(0.515 0.183 32.649);
  --destructive-foreground: oklch(0.991 0.004 31.051);
  --ring: oklch(0.844 0.05 336.233);
  --chart-1: oklch(0.844 0.05 336.233);
  --chart-2: oklch(0.897 0.046 120.199);
  --chart-3: oklch(0.869 0.029 223.526);
  --chart-4: oklch(0.914 0.039 120.033);
  --chart-5: oklch(0.843 0.054 336.317);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.012 335.597);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.277 0.022 120.699);
  --muted-foreground: oklch(0.726 0.003 119.366);
  --popover: oklch(0.087 0.012 335.597);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.087 0.012 335.597);
  --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.844 0.05 336.233);
  --primary-foreground: oklch(0.326 0.076 339.08);
  --secondary: oklch(0.897 0.046 120.199);
  --secondary-foreground: oklch(0.399 0.065 122.407);
  --accent: oklch(0.869 0.029 223.526);
  --accent-foreground: oklch(0.358 0.041 225.48);
  --destructive: oklch(0.572 0.204 32.568);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.844 0.05 336.233);
  --chart-1: oklch(0.844 0.05 336.233);
  --chart-2: oklch(0.897 0.046 120.199);
  --chart-3: oklch(0.869 0.029 223.526);
  --chart-4: oklch(0.914 0.039 120.033);
  --chart-5: oklch(0.843 0.054 336.317);
}