Jaunty for shadcn/ui

Jaunty is a shadcn/ui theme built around a deep red primary color (#240f0f) with deep indigo accents (#0f0f24). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the deep red primary (#240f0f) on a red-tinted background (#0e0707).

Color palette

TokenLightDark
Background
#fdf7f7snow
#0e0707black
Foreground
#000000black
#fdfcfcsnow
Card
#fcf3f3lavenderblush
#110808black
Card foreground
#000000black
#ffffffwhite
Popover
#fdf7f7snow
#0e0707black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#240f0fblack
#240f0fblack
Primary foreground
#d39292rosybrown
#d39292rosybrown
Secondary
#0f240fblack
#0f240fblack
Secondary foreground
#4ab54amediumseagreen
#4ab54amediumseagreen
Muted
#e6eae6gainsboro
#151915black
Muted foreground
#3a453adarkslategray
#bac5basilver
Accent
#0f0f24black
#0f0f24black
Accent foreground
#9292d3mediumpurple
#9292d3mediumpurple
Destructive
#a43f04saddlebrown
#f9620borangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#240f0fblack
#240f0fblack

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.20:1AAA
Primary button7.21:1AAA
Secondary button6.24:1AA
Muted text8.26:1AAA
Accent6.53:1AA
Destructive6.38:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.74:1AAA
Primary button7.21:1AAA
Secondary button6.24:1AA
Muted text9.97:1AAA
Accent6.53:1AA
Destructive6.78:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 17.272);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.933 0.007 145.519);
  --muted-foreground: oklch(0.378 0.024 145.074);
  --popover: oklch(0.98 0.007 17.272);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.97 0.01 17.332);
  --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.2 0.036 20.819);
  --primary-foreground: oklch(0.724 0.078 19.142);
  --secondary: oklch(0.237 0.048 143.858);
  --secondary-foreground: oklch(0.687 0.177 143.355);
  --accent: oklch(0.181 0.043 281.186);
  --accent-foreground: oklch(0.686 0.094 283.645);
  --destructive: oklch(0.5 0.146 42.923);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.2 0.036 20.819);
  --chart-1: oklch(0.2 0.036 20.819);
  --chart-2: oklch(0.237 0.048 143.858);
  --chart-3: oklch(0.181 0.043 281.186);
  --chart-4: oklch(0.275 0.06 143.733);
  --chart-5: oklch(0.199 0.039 21.164);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.014 19.072);
  --foreground: oklch(0.992 0.001 17.18);
  --muted: oklch(0.207 0.01 145.195);
  --muted-foreground: oklch(0.811 0.02 145.386);
  --popover: oklch(0.137 0.014 19.072);
  --popover-foreground: oklch(0.992 0.001 17.18);
  --card: oklch(0.149 0.017 19.244);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.2 0.036 20.819);
  --primary-foreground: oklch(0.724 0.078 19.142);
  --secondary: oklch(0.237 0.048 143.858);
  --secondary-foreground: oklch(0.687 0.177 143.355);
  --accent: oklch(0.181 0.043 281.186);
  --accent-foreground: oklch(0.686 0.094 283.645);
  --destructive: oklch(0.682 0.2 42.578);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.2 0.036 20.819);
  --chart-1: oklch(0.2 0.036 20.819);
  --chart-2: oklch(0.237 0.048 143.858);
  --chart-3: oklch(0.181 0.043 281.186);
  --chart-4: oklch(0.275 0.06 143.733);
  --chart-5: oklch(0.199 0.039 21.164);
}