Jovial for shadcn/ui

Jovial is a shadcn/ui theme built around a deep red primary color (#603438) with deep blue accents (#343860). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#603438) on a red-tinted background (#100506).

Color palette

TokenLightDark
Background
#ffffffwhite
#100506black
Foreground
#040101black
#fcf8f8snow
Card
#ffffffwhite
#100506black
Card foreground
#040101black
#fcf8f8snow
Popover
#ffffffwhite
#100506black
Popover foreground
#040101black
#fcf8f8snow
Primary
#603438darkolivegreen
#603438darkolivegreen
Primary foreground
#ebdbdcgainsboro
#ebdbdcgainsboro
Secondary
#386034darkolivegreen
#386034darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dcecdagainsboro
#152513black
Muted foreground
#404540darkslategray
#bbbfbasilver
Accent
#343860darkslategray
#343860darkslategray
Accent foreground
#dbdcebgainsboro
#dbdcebgainsboro
Destructive
#990b0bdarkred
#db0f0fred
Destructive foreground
#fcd9d9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#603438darkolivegreen
#603438darkolivegreen

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.79:1AAA
Primary button7.68:1AAA
Secondary button7.24:1AAA
Muted text7.93:1AAA
Accent8.20:1AAA
Destructive6.70:1AA
Dark mode
Text on background19.06:1AAA
Text on card19.06:1AAA
Primary button7.68:1AAA
Secondary button7.24:1AAA
Muted text8.65:1AAA
Accent8.20:1AAA
Destructive5.12:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.08 0.019 12.245);
  --muted: oklch(0.926 0.029 142.501);
  --muted-foreground: oklch(0.384 0.011 142.512);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.08 0.019 12.245);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.08 0.019 12.245);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.382 0.064 14.158);
  --primary-foreground: oklch(0.904 0.019 10.547);
  --secondary: oklch(0.448 0.083 141.881);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.357 0.069 277.478);
  --accent-foreground: oklch(0.898 0.021 280.907);
  --destructive: oklch(0.433 0.171 28.445);
  --destructive-foreground: oklch(0.914 0.04 17.9);
  --ring: oklch(0.382 0.064 14.158);
  --chart-1: oklch(0.382 0.064 14.158);
  --chart-2: oklch(0.448 0.083 141.881);
  --chart-3: oklch(0.357 0.069 277.478);
  --chart-4: oklch(0.479 0.09 141.873);
  --chart-5: oklch(0.38 0.07 14.661);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.022 12.123);
  --foreground: oklch(0.982 0.004 10.179);
  --muted: oklch(0.244 0.039 141.982);
  --muted-foreground: oklch(0.8 0.009 142.581);
  --popover: oklch(0.134 0.022 12.123);
  --popover-foreground: oklch(0.982 0.004 10.179);
  --card: oklch(0.134 0.022 12.123);
  --card-foreground: oklch(0.982 0.004 10.179);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.382 0.064 14.158);
  --primary-foreground: oklch(0.904 0.019 10.547);
  --secondary: oklch(0.448 0.083 141.881);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.357 0.069 277.478);
  --accent-foreground: oklch(0.898 0.021 280.907);
  --destructive: oklch(0.564 0.226 28.692);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.382 0.064 14.158);
  --chart-1: oklch(0.382 0.064 14.158);
  --chart-2: oklch(0.448 0.083 141.881);
  --chart-3: oklch(0.357 0.069 277.478);
  --chart-4: oklch(0.479 0.09 141.873);
  --chart-5: oklch(0.38 0.07 14.661);
}