Jaunty for shadcn/ui

Jaunty is a shadcn/ui theme built around a vivid deep green primary color (#162c02) with vivid deep violet accents (#18022c). The light mode uses a neutral background (#fafcf8). Dark mode keeps the vivid deep green primary (#162c02) on a green-tinted background (#0a0f05).

Color palette

TokenLightDark
Background
#fafcf8snow
#0a0f05black
Foreground
#000000black
#fcfdfcwhite
Card
#fafcf8snow
#0a0f05black
Card foreground
#000000black
#fcfdfcwhite
Popover
#fafcf8snow
#0a0f05black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#162c02black
#162c02black
Primary foreground
#79f109lawngreen
#79f109lawngreen
Secondary
#18022cblack
#18022cblack
Secondary foreground
#e4c9fdlavender
#e4c9fdlavender
Muted
#e3dfe7gainsboro
#1c1820black
Muted foreground
#574a64dimgray
#a99bb5darkgray
Accent
#18022cblack
#18022cblack
Accent foreground
#e4c9fdlavender
#e4c9fdlavender
Destructive
#850f05maroon
#f73322orangered
Destructive foreground
#fdc4bfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#162c02black
#162c02black

Contrast

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

Light mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button10.28:1AAA
Secondary button13.00:1AAA
Muted text6.23:1AA
Accent13.00:1AAA
Destructive6.68:1AA
Dark mode
Text on background18.96:1AAA
Text on card18.96:1AAA
Primary button10.28:1AAA
Secondary button13.00:1AAA
Muted text6.67:1AA
Accent13.00:1AAA
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 129.177);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.91 0.011 309.003);
  --muted-foreground: oklch(0.432 0.045 308.02);
  --popover: oklch(0.988 0.005 129.177);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.005 129.177);
  --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.266 0.072 133.087);
  --primary-foreground: oklch(0.854 0.252 135.938);
  --secondary: oklch(0.171 0.083 303.082);
  --secondary-foreground: oklch(0.875 0.076 308.209);
  --accent: oklch(0.171 0.083 303.082);
  --accent-foreground: oklch(0.875 0.076 308.209);
  --destructive: oklch(0.395 0.151 30.268);
  --destructive-foreground: oklch(0.87 0.065 24.475);
  --ring: oklch(0.266 0.072 133.087);
  --chart-1: oklch(0.266 0.072 133.087);
  --chart-2: oklch(0.171 0.083 303.082);
  --chart-3: oklch(0.171 0.083 303.082);
  --chart-4: oklch(0.201 0.101 301.391);
  --chart-5: oklch(0.268 0.074 133.158);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.161 0.024 129.333);
  --foreground: oklch(0.994 0.003 129.154);
  --muted: oklch(0.218 0.015 308.401);
  --muted-foreground: oklch(0.71 0.04 308.533);
  --popover: oklch(0.161 0.024 129.333);
  --popover-foreground: oklch(0.994 0.003 129.154);
  --card: oklch(0.161 0.024 129.333);
  --card-foreground: oklch(0.994 0.003 129.154);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.266 0.072 133.087);
  --primary-foreground: oklch(0.854 0.252 135.938);
  --secondary: oklch(0.171 0.083 303.082);
  --secondary-foreground: oklch(0.875 0.076 308.209);
  --accent: oklch(0.171 0.083 303.082);
  --accent-foreground: oklch(0.875 0.076 308.209);
  --destructive: oklch(0.634 0.232 29.971);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.266 0.072 133.087);
  --chart-1: oklch(0.266 0.072 133.087);
  --chart-2: oklch(0.171 0.083 303.082);
  --chart-3: oklch(0.171 0.083 303.082);
  --chart-4: oklch(0.201 0.101 301.391);
  --chart-5: oklch(0.268 0.074 133.158);
}