Digestion for shadcn/ui

Digestion is a shadcn/ui theme built around a deep pink primary color (#581943) with deep blue accents (#194358). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#581943) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0c0309black
#fbf9fasnow
Card
#fcfcfcsnow
#030303black
Card foreground
#080206black
#fdfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#0c0309black
#fbf9fasnow
Primary
#581943darkslategray
#581943darkslategray
Primary foreground
#ebb7dathistle
#ebb7dathistle
Secondary
#435819darkolivegreen
#435819darkolivegreen
Secondary foreground
#daebb7palegoldenrod
#daebb7palegoldenrod
Muted
#f3f4f0whitesmoke
#0d0f0bblack
Muted foreground
#555851dimgray
#acaea7darkgray
Accent
#194358darkslategray
#194358darkslategray
Accent foreground
#b7daebpowderblue
#b7daebpowderblue
Destructive
#7e0907maroon
#df0f0cred
Destructive foreground
#fbbcbblightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#581943darkslategray
#581943darkslategray

Contrast

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

Light mode
Text on background20.33:1AAA
Text on card20.11:1AAA
Primary button7.57:1AAA
Secondary button6.29:1AA
Muted text6.55:1AA
Accent7.21:1AAA
Destructive6.75:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.20:1AAA
Primary button7.57:1AAA
Secondary button6.29:1AA
Muted text8.60:1AAA
Accent7.21:1AAA
Destructive4.99:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.028 338.15);
  --muted: oklch(0.965 0.005 121.574);
  --muted-foreground: oklch(0.454 0.011 121.887);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.028 338.15);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.106 0.025 337.711);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.329 0.105 343.558);
  --primary-foreground: oklch(0.837 0.074 338.957);
  --secondary: oklch(0.427 0.091 125.916);
  --secondary-foreground: oklch(0.914 0.07 122.758);
  --accent: oklch(0.362 0.059 233.462);
  --accent-foreground: oklch(0.868 0.043 229.52);
  --destructive: oklch(0.377 0.148 28.778);
  --destructive-foreground: oklch(0.853 0.073 19.815);
  --ring: oklch(0.329 0.105 343.558);
  --chart-1: oklch(0.329 0.105 343.558);
  --chart-2: oklch(0.427 0.091 125.916);
  --chart-3: oklch(0.362 0.059 233.462);
  --chart-4: oklch(0.466 0.101 126.016);
  --chart-5: oklch(0.33 0.11 343.881);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 337.305);
  --muted: oklch(0.163 0.008 122.245);
  --muted-foreground: oklch(0.748 0.01 121.704);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 337.305);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 337.285);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.329 0.105 343.558);
  --primary-foreground: oklch(0.837 0.074 338.957);
  --secondary: oklch(0.427 0.091 125.916);
  --secondary-foreground: oklch(0.914 0.07 122.758);
  --accent: oklch(0.362 0.059 233.462);
  --accent-foreground: oklch(0.868 0.043 229.52);
  --destructive: oklch(0.571 0.229 29.021);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.329 0.105 343.558);
  --chart-1: oklch(0.329 0.105 343.558);
  --chart-2: oklch(0.427 0.091 125.916);
  --chart-3: oklch(0.362 0.059 233.462);
  --chart-4: oklch(0.466 0.101 126.016);
  --chart-5: oklch(0.33 0.11 343.881);
}