Joyous for shadcn/ui

Joyous is a shadcn/ui theme built around a cyan primary color (#3699a6) with blue accents (#3661a6). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the cyan primary (#3699a6) on a cyan-tinted background (#030b0c).

Color palette

TokenLightDark
Background
#f6fdfdmintcream
#030b0cblack
Foreground
#031417black
#ffffffwhite
Card
#f6fdfdmintcream
#030b0cblack
Card foreground
#031417black
#ffffffwhite
Popover
#f6fdfdmintcream
#030b0cblack
Popover foreground
#031417black
#ffffffwhite
Primary
#3699a6steelblue
#3699a6steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#36a67bmediumseagreen
#36a67bmediumseagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5f0eclavender
#0f1a16black
Muted foreground
#4f635cdimgray
#9cb0a8darkgray
Accent
#3661a6steelblue
#3661a6steelblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a33900saddlebrown
#ff6d1ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3699a6steelblue
#3699a6steelblue

Contrast

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

Light mode
Text on background18.22:1AAA
Text on card18.22:1AAA
Primary button3.37:1AA Large
Secondary button3.05:1AA Large
Muted text5.51:1AA
Accent6.18:1AA
Destructive6.66:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button3.37:1AA Large
Secondary button3.05:1AA Large
Muted text7.78:1AAA
Accent6.18:1AA
Destructive7.46:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 206.402);
  --foreground: oklch(0.178 0.026 205.902);
  --muted: oklch(0.946 0.013 171.178);
  --muted-foreground: oklch(0.481 0.027 169.886);
  --popover: oklch(0.988 0.006 206.402);
  --popover-foreground: oklch(0.178 0.026 205.902);
  --card: oklch(0.988 0.006 206.402);
  --card-foreground: oklch(0.178 0.026 205.902);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.63 0.091 207.541);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.65 0.12 163.636);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.496 0.121 259.487);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.491 0.151 41.132);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.63 0.091 207.541);
  --chart-1: oklch(0.63 0.091 207.541);
  --chart-2: oklch(0.65 0.12 163.636);
  --chart-3: oklch(0.496 0.121 259.487);
  --chart-4: oklch(0.683 0.126 163.579);
  --chart-5: oklch(0.637 0.095 207.731);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.016 204.113);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.206 0.019 168.624);
  --muted-foreground: oklch(0.738 0.024 170.61);
  --popover: oklch(0.141 0.016 204.113);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.141 0.016 204.113);
  --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.63 0.091 207.541);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.65 0.12 163.636);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.496 0.121 259.487);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.706 0.195 43.584);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.63 0.091 207.541);
  --chart-1: oklch(0.63 0.091 207.541);
  --chart-2: oklch(0.65 0.12 163.636);
  --chart-3: oklch(0.496 0.121 259.487);
  --chart-4: oklch(0.683 0.126 163.579);
  --chart-5: oklch(0.637 0.095 207.731);
}