Aunt for shadcn/ui

Aunt is a shadcn/ui theme built around a vivid blue primary color (#0420af) with vivid green accents (#20af04). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#0420af) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#ffffffwhite
#010204black
Foreground
#050814black
#f9f9fbghostwhite
Card
#fcfcfcsnow
#020308black
Card foreground
#040610black
#fcfcfdwhite
Popover
#fcfcfcsnow
#020308black
Popover foreground
#040610black
#fcfcfdwhite
Primary
#0420afmediumblue
#0420afmediumblue
Primary foreground
#e6eafelavender
#e6eafelavender
Secondary
#af0420firebrick
#af0420firebrick
Secondary foreground
#fee6eamistyrose
#fee6eamistyrose
Muted
#f3ecedlinen
#130c0dblack
Muted foreground
#50494adarkslategray
#b6afb0darkgray
Accent
#20af04forestgreen
#20af04forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c2290afirebrick
#f4502ftomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0420afmediumblue
#0420afmediumblue

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card19.78:1AAA
Primary button9.59:1AAA
Secondary button6.20:1AA
Muted text7.54:1AAA
Accent2.92:1Fail
Destructive5.82:1AA
Dark mode
Text on background19.77:1AAA
Text on card20.08:1AAA
Primary button9.59:1AAA
Secondary button6.20:1AA
Muted text8.98:1AAA
Accent2.92:1Fail
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.137 0.029 271.21);
  --muted: oklch(0.949 0.008 5.66);
  --muted-foreground: oklch(0.412 0.01 6.101);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.126 0.025 270.587);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.126 0.025 270.587);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.367 0.218 264.574);
  --primary-foreground: oklch(0.94 0.028 276.834);
  --secondary: oklch(0.477 0.191 23.732);
  --secondary-foreground: oklch(0.946 0.027 6.188);
  --accent: oklch(0.656 0.218 141.58);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.529 0.192 32.395);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.367 0.218 264.574);
  --chart-1: oklch(0.367 0.218 264.574);
  --chart-2: oklch(0.477 0.191 23.732);
  --chart-3: oklch(0.656 0.218 141.58);
  --chart-4: oklch(0.506 0.203 23.94);
  --chart-5: oklch(0.368 0.223 264.268);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.079 0.014 269.895);
  --foreground: oklch(0.983 0.002 277.229);
  --muted: oklch(0.163 0.012 7.386);
  --muted-foreground: oklch(0.76 0.009 5.752);
  --popover: oklch(0.1 0.018 269.895);
  --popover-foreground: oklch(0.992 0.001 277.244);
  --card: oklch(0.1 0.018 269.895);
  --card-foreground: oklch(0.992 0.001 277.244);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.367 0.218 264.574);
  --primary-foreground: oklch(0.94 0.028 276.834);
  --secondary: oklch(0.477 0.191 23.732);
  --secondary-foreground: oklch(0.946 0.027 6.188);
  --accent: oklch(0.656 0.218 141.58);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.654 0.206 33.181);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.367 0.218 264.574);
  --chart-1: oklch(0.367 0.218 264.574);
  --chart-2: oklch(0.477 0.191 23.732);
  --chart-3: oklch(0.656 0.218 141.58);
  --chart-4: oklch(0.506 0.203 23.94);
  --chart-5: oklch(0.368 0.223 264.268);
}