Advancement for shadcn/ui

Advancement is a shadcn/ui theme built around a red primary color (#b73843) with indigo accents (#3843b7). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#b73843) on a red-tinted background (#0e0607).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0607black
Foreground
#000000black
#f8f7f7whitesmoke
Card
#ffffffwhite
#0e0607black
Card foreground
#000000black
#f8f7f7whitesmoke
Popover
#ffffffwhite
#0e0607black
Popover foreground
#000000black
#f8f7f7whitesmoke
Primary
#b73843brown
#b73843brown
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#43b738limegreen
#43b738limegreen
Secondary foreground
#0a1b08black
#0a1b08black
Muted
#e8ede8linen
#121712black
Muted foreground
#445143darkslategray
#afbcaedarkgray
Accent
#3843b7darkslateblue
#3843b7darkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7f0701maroon
#ef0d01red
Destructive foreground
#ffb7b3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b73843brown
#b73843brown

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button5.71:1AA
Secondary button6.90:1AA
Muted text7.08:1AAA
Accent7.90:1AAA
Destructive6.56:1AA
Dark mode
Text on background18.72:1AAA
Text on card18.72:1AAA
Primary button5.71:1AA
Secondary button6.90:1AA
Muted text9.18:1AAA
Accent7.90:1AAA
Destructive4.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.942 0.009 143.091);
  --muted-foreground: oklch(0.42 0.03 142.8);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.531 0.163 20.066);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.689 0.195 141.928);
  --secondary-foreground: oklch(0.202 0.043 142.055);
  --accent: oklch(0.45 0.182 272.663);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.378 0.15 30.071);
  --destructive-foreground: oklch(0.845 0.084 22.391);
  --ring: oklch(0.531 0.163 20.066);
  --chart-1: oklch(0.531 0.163 20.066);
  --chart-2: oklch(0.689 0.195 141.928);
  --chart-3: oklch(0.45 0.182 272.663);
  --chart-4: oklch(0.722 0.205 141.927);
  --chart-5: oklch(0.533 0.17 20.692);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.016 12.757);
  --foreground: oklch(0.976 0.002 11.29);
  --muted: oklch(0.198 0.013 142.827);
  --muted-foreground: oklch(0.782 0.025 142.981);
  --popover: oklch(0.137 0.016 12.757);
  --popover-foreground: oklch(0.976 0.002 11.29);
  --card: oklch(0.137 0.016 12.757);
  --card-foreground: oklch(0.976 0.002 11.29);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.531 0.163 20.066);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.689 0.195 141.928);
  --secondary-foreground: oklch(0.202 0.043 142.055);
  --accent: oklch(0.45 0.182 272.663);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.6 0.242 29.63);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.531 0.163 20.066);
  --chart-1: oklch(0.531 0.163 20.066);
  --chart-2: oklch(0.689 0.195 141.928);
  --chart-3: oklch(0.45 0.182 272.663);
  --chart-4: oklch(0.722 0.205 141.927);
  --chart-5: oklch(0.533 0.17 20.692);
}