Applicable Sugar High for shadcn/ui

Applicable Sugar High is a shadcn/ui theme built around a light purple primary color (#ebc6e6) with near-white accents (#ebeaeb). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the light purple primary (#ebc6e6) on a purple-tinted background (#10050e).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#10050eblack
Foreground
#000000black
#f9f6f8whitesmoke
Card
#fcf8fbsnow
#10050eblack
Card foreground
#000000black
#f9f6f8whitesmoke
Popover
#fcf8fbsnow
#10050eblack
Popover foreground
#000000black
#f9f6f8whitesmoke
Primary
#ebc6e6thistle
#ebc6e6thistle
Primary foreground
#5e2156indigo
#5e2156indigo
Secondary
#ebeaeblavender
#261c25black
Secondary foreground
#554e54darkslategray
#c4b0c2silver
Muted
#e0d1degainsboro
#2e1f2cdarkslategray
Muted foreground
#634f60dimgray
#b09caddarkgray
Accent
#ebeaeblavender
#261c25black
Accent foreground
#554e54darkslategray
#c4b0c2silver
Destructive
#de2b02orangered
#f72f02orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#efebefwhitesmoke
#2a2229darkslategray
Input
#efebefwhitesmoke
#2a2229darkslategray
Ring
#ebc6e6thistle
#ebc6e6thistle

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button7.54:1AAA
Secondary button6.71:1AA
Muted text5.10:1AA
Accent6.71:1AA
Destructive4.71:1AA
Dark mode
Text on background18.65:1AAA
Text on card18.65:1AAA
Primary button7.54:1AAA
Secondary button8.09:1AAA
Muted text6.09:1AA
Accent8.09:1AAA
Destructive3.90:1AA Large

CSS variables

Paste this into your globals.css to use Applicable Sugar High in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 329.759);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.878 0.023 330.005);
  --muted-foreground: oklch(0.455 0.037 330.641);
  --popover: oklch(0.983 0.006 329.759);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.006 329.759);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.945 0.006 329.764);
  --input: oklch(0.945 0.006 329.764);
  --primary: oklch(0.869 0.059 330.488);
  --primary-foreground: oklch(0.361 0.113 333.209);
  --secondary: oklch(0.938 0.003 329.717);
  --secondary-foreground: oklch(0.433 0.012 330.032);
  --accent: oklch(0.938 0.003 329.717);
  --accent-foreground: oklch(0.433 0.012 330.032);
  --destructive: oklch(0.582 0.217 32.375);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.869 0.059 330.488);
  --chart-1: oklch(0.869 0.059 330.488);
  --chart-2: oklch(0.938 0.003 329.717);
  --chart-3: oklch(0.938 0.003 329.717);
  --chart-4: oklch(0.961 0.002 329.704);
  --chart-5: oklch(0.868 0.063 330.537);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.03 331.593);
  --foreground: oklch(0.976 0.004 329.732);
  --muted: oklch(0.262 0.031 331.067);
  --muted-foreground: oklch(0.715 0.033 330.239);
  --popover: oklch(0.138 0.03 331.593);
  --popover-foreground: oklch(0.976 0.004 329.732);
  --card: oklch(0.138 0.03 331.593);
  --card-foreground: oklch(0.976 0.004 329.732);
  --border: oklch(0.265 0.018 330.497);
  --input: oklch(0.265 0.018 330.497);
  --primary: oklch(0.869 0.059 330.488);
  --primary-foreground: oklch(0.361 0.113 333.209);
  --secondary: oklch(0.243 0.022 330.743);
  --secondary-foreground: oklch(0.78 0.034 330.209);
  --accent: oklch(0.243 0.022 330.743);
  --accent-foreground: oklch(0.78 0.034 330.209);
  --destructive: oklch(0.631 0.236 32.242);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.869 0.059 330.488);
  --chart-1: oklch(0.869 0.059 330.488);
  --chart-2: oklch(0.243 0.022 330.743);
  --chart-3: oklch(0.243 0.022 330.743);
  --chart-4: oklch(0.274 0.026 330.803);
  --chart-5: oklch(0.868 0.063 330.537);
}