Jovial for shadcn/ui

Jovial is a shadcn/ui theme built around a green primary color (#cada6c) with indigo accents (#7d6cda). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the green primary (#cada6c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfcf8snow
#000000black
Foreground
#0c0e02black
#fdfdfcwhite
Card
#f9faf5whitesmoke
#030303black
Card foreground
#080901black
#ffffffwhite
Popover
#fbfcf8snow
#000000black
Popover foreground
#0c0e02black
#fdfdfcwhite
Primary
#cada6cdarkkhaki
#cada6cdarkkhaki
Primary foreground
#0e1004black
#0e1004black
Secondary
#7d6cdamediumslateblue
#7d6cdamediumslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e9e7f3lavender
#0e0c18black
Muted foreground
#45454adarkslategray
#b6b5basilver
Accent
#7d6cdamediumslateblue
#7d6cdamediumslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c33613firebrick
#d53c15firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cada6cdarkkhaki
#cada6cdarkkhaki

Contrast

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

Light mode
Text on background18.85:1AAA
Text on card19.08:1AAA
Primary button12.58:1AAA
Secondary button4.17:1AA Large
Muted text7.82:1AAA
Accent4.17:1AA Large
Destructive5.43:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.67:1AAA
Primary button12.58:1AAA
Secondary button4.17:1AA Large
Muted text9.50:1AAA
Accent4.17:1AA Large
Destructive4.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 113.398);
  --foreground: oklch(0.155 0.029 115.163);
  --muted: oklch(0.934 0.015 292.995);
  --muted-foreground: oklch(0.392 0.01 292.844);
  --popover: oklch(0.989 0.005 113.398);
  --popover-foreground: oklch(0.155 0.029 115.163);
  --card: oklch(0.983 0.007 113.445);
  --card-foreground: oklch(0.134 0.025 114.506);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.854 0.137 116.437);
  --primary-foreground: oklch(0.168 0.026 115.489);
  --secondary: oklch(0.6 0.162 287.347);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.6 0.162 287.347);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.544 0.183 34.245);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.854 0.137 116.437);
  --chart-1: oklch(0.854 0.137 116.437);
  --chart-2: oklch(0.6 0.162 287.347);
  --chart-3: oklch(0.6 0.162 287.347);
  --chart-4: oklch(0.633 0.148 288.305);
  --chart-5: oklch(0.861 0.142 116.557);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.002 113.344);
  --muted: oklch(0.163 0.024 290.378);
  --muted-foreground: oklch(0.775 0.008 293.11);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.994 0.002 113.344);
  --card: oklch(0.092 0 180);
  --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.854 0.137 116.437);
  --primary-foreground: oklch(0.168 0.026 115.489);
  --secondary: oklch(0.6 0.162 287.347);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.6 0.162 287.347);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.581 0.196 34.184);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.854 0.137 116.437);
  --chart-1: oklch(0.854 0.137 116.437);
  --chart-2: oklch(0.6 0.162 287.347);
  --chart-3: oklch(0.6 0.162 287.347);
  --chart-4: oklch(0.633 0.148 288.305);
  --chart-5: oklch(0.861 0.142 116.557);
}