Annual for shadcn/ui

Annual is a shadcn/ui theme built around a vivid light violet primary color (#e5d5fb) with near-white accents (#ebeaeb). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid light violet primary (#e5d5fb) on a neutral background (#020204).

Color palette

TokenLightDark
Background
#fcfbfewhite
#020204black
Foreground
#0b0317black
#faf9fbghostwhite
Card
#f9f7fdghostwhite
#050307black
Card foreground
#090212black
#fcfcfdwhite
Popover
#f9f7fdghostwhite
#050307black
Popover foreground
#090212black
#fcfcfdwhite
Primary
#e5d5fblavender
#e5d5fblavender
Primary foreground
#440d91indigo
#440d91indigo
Secondary
#ebeaeblavender
#262528darkslategray
Secondary foreground
#515152darkslategray
#bfbdc2silver
Muted
#ece7f4lavender
#110b18black
Muted foreground
#554f5fdimgray
#a7a0b0darkgray
Accent
#ebeaeblavender
#262528darkslategray
Accent foreground
#515152darkslategray
#bfbdc2silver
Destructive
#722509maroon
#df4811orangered
Destructive foreground
#f9c6b3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5d5fblavender
#e5d5fblavender

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.22:1AAA
Primary button8.90:1AAA
Secondary button6.61:1AA
Muted text6.46:1AA
Accent6.61:1AA
Destructive6.95:1AA
Dark mode
Text on background19.78:1AAA
Text on card20.02:1AAA
Primary button8.90:1AAA
Secondary button8.20:1AAA
Muted text7.64:1AAA
Accent8.20:1AAA
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 304.992);
  --foreground: oklch(0.13 0.049 302.498);
  --muted: oklch(0.935 0.019 304.77);
  --muted-foreground: oklch(0.439 0.027 304.211);
  --popover: oklch(0.98 0.008 304.937);
  --popover-foreground: oklch(0.119 0.043 304.488);
  --card: oklch(0.98 0.008 304.937);
  --card-foreground: oklch(0.119 0.043 304.488);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.898 0.054 304.211);
  --primary-foreground: oklch(0.353 0.185 292.17);
  --secondary: oklch(0.938 0.001 305.036);
  --secondary-foreground: oklch(0.435 0.003 304.957);
  --accent: oklch(0.938 0.001 305.036);
  --accent-foreground: oklch(0.435 0.003 304.957);
  --destructive: oklch(0.378 0.115 38.088);
  --destructive-foreground: oklch(0.867 0.064 40.92);
  --ring: oklch(0.898 0.054 304.211);
  --chart-1: oklch(0.898 0.054 304.211);
  --chart-2: oklch(0.938 0.001 305.036);
  --chart-3: oklch(0.938 0.001 305.036);
  --chart-4: oklch(0.962 0 305.04);
  --chart-5: oklch(0.896 0.056 304.18);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.011 305.77);
  --foreground: oklch(0.984 0.002 305.019);
  --muted: oklch(0.165 0.028 302.594);
  --muted-foreground: oklch(0.718 0.023 304.594);
  --popover: oklch(0.106 0.014 305.77);
  --popover-foreground: oklch(0.992 0.001 305.032);
  --card: oklch(0.106 0.014 305.77);
  --card-foreground: oklch(0.992 0.001 305.032);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.898 0.054 304.211);
  --primary-foreground: oklch(0.353 0.185 292.17);
  --secondary: oklch(0.266 0.006 304.739);
  --secondary-foreground: oklch(0.801 0.007 304.916);
  --accent: oklch(0.266 0.006 304.739);
  --accent-foreground: oklch(0.801 0.007 304.916);
  --destructive: oklch(0.61 0.196 37.102);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.898 0.054 304.211);
  --chart-1: oklch(0.898 0.054 304.211);
  --chart-2: oklch(0.266 0.006 304.739);
  --chart-3: oklch(0.266 0.006 304.739);
  --chart-4: oklch(0.296 0.007 304.724);
  --chart-5: oklch(0.896 0.056 304.18);
}