Jubilant for shadcn/ui

Jubilant is a shadcn/ui theme built around a blue primary color (#7691d0) with green accents (#91d076). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#7691d0) on a blue-tinted background (#03060c).

Color palette

TokenLightDark
Background
#fbfcfewhite
#03060cblack
Foreground
#010205black
#f8f9fcghostwhite
Card
#f7f9fdghostwhite
#040810black
Card foreground
#000000black
#fcfcfdwhite
Popover
#fbfcfewhite
#03060cblack
Popover foreground
#010205black
#f8f9fcghostwhite
Primary
#7691d0cornflowerblue
#7691d0cornflowerblue
Primary foreground
#05080fblack
#05080fblack
Secondary
#d07691palevioletred
#d07691palevioletred
Secondary foreground
#0f0508black
#0f0508black
Muted
#ebe0e3gainsboro
#1f1417black
Muted foreground
#444042darkslategray
#bfbbbcsilver
Accent
#91d076darkseagreen
#91d076darkseagreen
Accent foreground
#080f05black
#080f05black
Destructive
#a73602saddlebrown
#ed4d02orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7691d0cornflowerblue
#7691d0cornflowerblue

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card19.89:1AAA
Primary button6.43:1AA
Secondary button6.40:1AA
Muted text7.93:1AAA
Accent10.64:1AAA
Destructive6.64:1AA
Dark mode
Text on background19.27:1AAA
Text on card19.56:1AAA
Primary button6.43:1AA
Secondary button6.40:1AA
Muted text9.42:1AAA
Accent10.64:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 267.404);
  --foreground: oklch(0.08 0.016 255.661);
  --muted: oklch(0.917 0.012 357.027);
  --muted-foreground: oklch(0.377 0.006 357.095);
  --popover: oklch(0.991 0.003 267.404);
  --popover-foreground: oklch(0.08 0.016 255.661);
  --card: oklch(0.981 0.006 267.387);
  --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.662 0.099 266.005);
  --primary-foreground: oklch(0.135 0.017 262.445);
  --secondary: oklch(0.673 0.116 1.444);
  --secondary-foreground: oklch(0.136 0.021 357.885);
  --accent: oklch(0.794 0.137 136.858);
  --accent-foreground: oklch(0.158 0.025 135.284);
  --destructive: oklch(0.493 0.157 39.099);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.662 0.099 266.005);
  --chart-1: oklch(0.662 0.099 266.005);
  --chart-2: oklch(0.673 0.116 1.444);
  --chart-3: oklch(0.794 0.137 136.858);
  --chart-4: oklch(0.699 0.106 0.817);
  --chart-5: oklch(0.659 0.105 265.888);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.018 259.273);
  --foreground: oklch(0.983 0.004 267.399);
  --muted: oklch(0.207 0.018 358.994);
  --muted-foreground: oklch(0.795 0.005 356.831);
  --popover: oklch(0.12 0.018 259.273);
  --popover-foreground: oklch(0.983 0.004 267.399);
  --card: oklch(0.133 0.021 260.875);
  --card-foreground: oklch(0.991 0.002 267.41);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.662 0.099 266.005);
  --primary-foreground: oklch(0.135 0.017 262.445);
  --secondary: oklch(0.673 0.116 1.444);
  --secondary-foreground: oklch(0.136 0.021 357.885);
  --accent: oklch(0.794 0.137 136.858);
  --accent-foreground: oklch(0.158 0.025 135.284);
  --destructive: oklch(0.638 0.207 38.216);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.662 0.099 266.005);
  --chart-1: oklch(0.662 0.099 266.005);
  --chart-2: oklch(0.673 0.116 1.444);
  --chart-3: oklch(0.794 0.137 136.858);
  --chart-4: oklch(0.699 0.106 0.817);
  --chart-5: oklch(0.659 0.105 265.888);
}