Softdrink for shadcn/ui

Softdrink is a shadcn/ui theme built around a muted deep pink primary color (#2c1b22) with muted deep red accents (#2c1d1b). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the muted deep pink primary (#2c1b22) on a pink-tinted background (#0f0609).

Color palette

TokenLightDark
Background
#fcf8f9snow
#0f0609black
Foreground
#110409black
#fdfcfcsnow
Card
#fcf8f9snow
#0f0609black
Card foreground
#110409black
#fdfcfcsnow
Popover
#fcf8f9snow
#0f0609black
Popover foreground
#110409black
#fdfcfcsnow
Primary
#2c1b22black
#2c1b22black
Primary foreground
#ccadb9silver
#ccadb9silver
Secondary
#2c1b2adarkslategray
#2c1b2adarkslategray
Secondary foreground
#ccadc8silver
#ccadc8silver
Muted
#e8d9e6gainsboro
#261724black
Muted foreground
#635f62dimgray
#a09ca0darkgray
Accent
#2c1d1bblack
#2c1d1bblack
Accent foreground
#ccb1adsilver
#ccb1adsilver
Destructive
#a63d0csaddlebrown
#f17941coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2c1b22black
#2c1b22black

Contrast

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

Light mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button7.93:1AAA
Secondary button7.97:1AAA
Muted text4.62:1AA
Accent8.02:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button7.93:1AAA
Secondary button7.97:1AAA
Muted text6.29:1AA
Accent8.02:1AAA
Destructive7.53:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 351.731);
  --foreground: oklch(0.133 0.03 353.275);
  --muted: oklch(0.901 0.025 329.447);
  --muted-foreground: oklch(0.49 0.007 329.304);
  --popover: oklch(0.982 0.005 351.731);
  --popover-foreground: oklch(0.133 0.03 353.275);
  --card: oklch(0.982 0.005 351.731);
  --card-foreground: oklch(0.133 0.03 353.275);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.248 0.028 354.627);
  --primary-foreground: oklch(0.779 0.039 352.957);
  --secondary: oklch(0.251 0.036 330.692);
  --secondary-foreground: oklch(0.784 0.051 329.862);
  --accent: oklch(0.25 0.023 27.338);
  --accent-foreground: oklch(0.783 0.032 26.761);
  --destructive: oklch(0.502 0.149 40.631);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.248 0.028 354.627);
  --chart-1: oklch(0.248 0.028 354.627);
  --chart-2: oklch(0.251 0.036 330.692);
  --chart-3: oklch(0.25 0.023 27.338);
  --chart-4: oklch(0.282 0.042 330.769);
  --chart-5: oklch(0.247 0.032 355.036);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.02 352.846);
  --foreground: oklch(0.991 0.002 351.654);
  --muted: oklch(0.23 0.034 330.748);
  --muted-foreground: oklch(0.698 0.007 329.243);
  --popover: oklch(0.137 0.02 352.846);
  --popover-foreground: oklch(0.991 0.002 351.654);
  --card: oklch(0.137 0.02 352.846);
  --card-foreground: oklch(0.991 0.002 351.654);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.248 0.028 354.627);
  --primary-foreground: oklch(0.779 0.039 352.957);
  --secondary: oklch(0.251 0.036 330.692);
  --secondary-foreground: oklch(0.784 0.051 329.862);
  --accent: oklch(0.25 0.023 27.338);
  --accent-foreground: oklch(0.783 0.032 26.761);
  --destructive: oklch(0.705 0.163 43.826);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.248 0.028 354.627);
  --chart-1: oklch(0.248 0.028 354.627);
  --chart-2: oklch(0.251 0.036 330.692);
  --chart-3: oklch(0.25 0.023 27.338);
  --chart-4: oklch(0.282 0.042 330.769);
  --chart-5: oklch(0.247 0.032 355.036);
}