Acetate for shadcn/ui

Acetate is a shadcn/ui theme built around a vivid light purple primary color (#f5ade1) with vivid light cyan accents (#ade1f5). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid light purple primary (#f5ade1) on a purple-tinted background (#10050d).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#10050dblack
Foreground
#040103black
#fdfcfdwhite
Card
#fcf8fbsnow
#10050dblack
Card foreground
#040103black
#fdfcfdwhite
Popover
#fcf8fbsnow
#10050dblack
Popover foreground
#040103black
#fdfcfdwhite
Primary
#f5ade1plum
#f5ade1plum
Primary foreground
#640c4bpurple
#640c4bpurple
Secondary
#e1f5adpalegoldenrod
#e1f5adpalegoldenrod
Secondary foreground
#070901black
#070901black
Muted
#eef2e3beige
#181c0dblack
Muted foreground
#41433ddarkslategray
#c1c2bcsilver
Accent
#ade1f5paleturquoise
#ade1f5paleturquoise
Accent foreground
#0c4b64darkslategray
#0c4b64darkslategray
Destructive
#78320dsaddlebrown
#e76118chocolate
Destructive foreground
#f8d3bepeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f5ade1plum
#f5ade1plum

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button7.04:1AAA
Secondary button17.07:1AAA
Muted text8.81:1AAA
Accent6.72:1AA
Destructive6.64:1AA
Dark mode
Text on background19.58:1AAA
Text on card19.58:1AAA
Primary button7.04:1AAA
Secondary button17.07:1AAA
Muted text9.68:1AAA
Accent6.72:1AA
Destructive6.09:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 335.303);
  --foreground: oklch(0.083 0.024 335.982);
  --muted: oklch(0.954 0.02 119.673);
  --muted-foreground: oklch(0.379 0.011 119.798);
  --popover: oklch(0.983 0.006 335.303);
  --popover-foreground: oklch(0.083 0.024 335.982);
  --card: oklch(0.983 0.006 335.303);
  --card-foreground: oklch(0.083 0.024 335.982);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.831 0.107 337.384);
  --primary-foreground: oklch(0.345 0.136 343.037);
  --secondary: oklch(0.939 0.096 121.118);
  --secondary-foreground: oklch(0.133 0.026 119.27);
  --accent: oklch(0.88 0.06 224.141);
  --accent-foreground: oklch(0.389 0.073 230.754);
  --destructive: oklch(0.409 0.108 44.467);
  --destructive-foreground: oklch(0.892 0.05 49.986);
  --ring: oklch(0.831 0.107 337.384);
  --chart-1: oklch(0.831 0.107 337.384);
  --chart-2: oklch(0.939 0.096 121.118);
  --chart-3: oklch(0.88 0.06 224.141);
  --chart-4: oklch(0.949 0.08 120.792);
  --chart-5: oklch(0.831 0.111 337.465);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.028 337.314);
  --foreground: oklch(0.992 0.002 335.227);
  --muted: oklch(0.217 0.028 121.681);
  --muted-foreground: oklch(0.812 0.009 119.495);
  --popover: oklch(0.137 0.028 337.314);
  --popover-foreground: oklch(0.992 0.002 335.227);
  --card: oklch(0.137 0.028 337.314);
  --card-foreground: oklch(0.992 0.002 335.227);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.831 0.107 337.384);
  --primary-foreground: oklch(0.345 0.136 343.037);
  --secondary: oklch(0.939 0.096 121.118);
  --secondary-foreground: oklch(0.133 0.026 119.27);
  --accent: oklch(0.88 0.06 224.141);
  --accent-foreground: oklch(0.389 0.073 230.754);
  --destructive: oklch(0.652 0.183 43.304);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.831 0.107 337.384);
  --chart-1: oklch(0.831 0.107 337.384);
  --chart-2: oklch(0.939 0.096 121.118);
  --chart-3: oklch(0.88 0.06 224.141);
  --chart-4: oklch(0.949 0.08 120.792);
  --chart-5: oklch(0.831 0.111 337.465);
}