Astolfo Theme\ for shadcn/ui

Astolfo Theme\ is a shadcn/ui theme built around a vivid purple primary color (#ff00e6) with muted light purple accents (#d3c0d1). The light mode uses a neutral background (#fefbfd). Dark mode switches to a vivid pink primary (#990057) on a pink-tinted background (#5d0534).

Color palette

TokenLightDark
Background
#fefbfdsnow
#5d0534maroon
Foreground
#0d020cblack
#ff006adeeppink
Card
#fefbfdsnow
#521239darkslategray
Card foreground
#0d020cblack
#fd4886deeppink
Popover
#fefbfdsnow
#43003cindigo
Popover foreground
#0d020cblack
#c20067mediumvioletred
Primary
#ff00e6magenta
#990057purple
Primary foreground
#ffffffwhite
#ff007ddeeppink
Secondary
#e1dbe0gainsboro
#4c0044indigo
Secondary foreground
#4b3f4adarkslategray
#c5c4c5silver
Muted
#e7cae4thistle
#7e0071purple
Muted foreground
#5c515bdimgray
#aea3acdarkgray
Accent
#d3c0d1thistle
#a0008bdarkmagenta
Accent foreground
#392837darkslategray
#d7d0d6lightgrey
Destructive
#b61207firebrick
#881d86darkmagenta
Destructive foreground
#fef1f0seashell
#ff0a5dcrimson
Border
#ece9eclavender
#ff00e6magenta
Input
#ece9eclavender
#f84b86palevioletred
Ring
#ff00e6magenta
#ff00e6magenta

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button3.28:1AA Large
Secondary button7.29:1AAA
Muted text5.03:1AA
Accent7.98:1AAA
Destructive6.18:1AA
Dark mode
Text on background3.54:1AA Large
Text on card4.26:1AA Large
Primary button2.22:1Fail
Secondary button8.70:1AAA
Muted text4.07:1AA Large
Accent4.84:1AA
Destructive2.12:1Fail

CSS variables

Paste this into your globals.css to use Astolfo Theme\ in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 328.636);
  --foreground: oklch(0.121 0.038 330.678);
  --muted: oklch(0.872 0.048 329.179);
  --muted-foreground: oklch(0.45 0.02 329.075);
  --popover: oklch(0.991 0.004 328.636);
  --popover-foreground: oklch(0.121 0.038 330.678);
  --card: oklch(0.991 0.004 328.636);
  --card-foreground: oklch(0.121 0.038 330.678);
  --border: oklch(0.937 0.005 328.647);
  --input: oklch(0.937 0.005 328.647);
  --primary: oklch(0.687 0.307 334.075);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.897 0.01 328.712);
  --secondary-foreground: oklch(0.383 0.025 329.287);
  --accent: oklch(0.829 0.03 328.988);
  --accent-foreground: oklch(0.303 0.035 329.796);
  --destructive: oklch(0.494 0.194 29.795);
  --destructive-foreground: oklch(0.969 0.014 22.385);
  --ring: oklch(0.687 0.307 334.075);
  --chart-1: oklch(0.687 0.307 334.075);
  --chart-2: oklch(0.897 0.01 328.712);
  --chart-3: oklch(0.829 0.03 328.988);
  --chart-4: oklch(0.921 0.007 328.681);
  --chart-5: oklch(0.694 0.311 334.165);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.316 0.123 356.091);
  --foreground: oklch(0.64 0.256 9.335);
  --muted: oklch(0.407 0.182 333.77);
  --muted-foreground: oklch(0.727 0.018 328.86);
  --popover: oklch(0.263 0.118 333.311);
  --popover-foreground: oklch(0.528 0.214 359.772);
  --card: oklch(0.308 0.104 347.803);
  --card-foreground: oklch(0.677 0.219 4.809);
  --border: oklch(0.687 0.307 334.075);
  --input: oklch(0.672 0.212 4.326);
  --primary: oklch(0.445 0.182 356.257);
  --primary-foreground: oklch(0.645 0.26 3.384);
  --secondary: oklch(0.286 0.128 333.418);
  --secondary-foreground: oklch(0.821 0.002 328.619);
  --accent: oklch(0.482 0.214 335.778);
  --accent-foreground: oklch(0.866 0.011 328.737);
  --destructive: oklch(0.453 0.183 328.934);
  --destructive-foreground: oklch(0.639 0.253 13.371);
  --ring: oklch(0.687 0.307 334.075);
  --chart-1: oklch(0.445 0.182 356.257);
  --chart-2: oklch(0.286 0.128 333.418);
  --chart-3: oklch(0.482 0.214 335.778);
  --chart-4: oklch(0.324 0.145 333.561);
  --chart-5: oklch(0.449 0.185 356.672);
}