Joyous for shadcn/ui

Joyous is a shadcn/ui theme built around a vivid teal primary color (#6ae8f1) with muted light teal accents (#e3e7e8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#6ae8f1) on a teal-tinted background (#040a0b).

Color palette

TokenLightDark
Background
#ffffffwhite
#040a0bblack
Foreground
#031011black
#f8fbfbghostwhite
Card
#ffffffwhite
#040a0bblack
Card foreground
#031011black
#f8fbfbghostwhite
Popover
#ffffffwhite
#040a0bblack
Popover foreground
#031011black
#f8fbfbghostwhite
Primary
#6ae8f1skyblue
#6ae8f1skyblue
Primary foreground
#032325black
#032325black
Secondary
#e3e7e8gainsboro
#202627darkslategray
Secondary foreground
#465253darkslategray
#b7c2c3silver
Muted
#e9f1f1whitesmoke
#0e1516black
Muted foreground
#557072dimgray
#8da8aadarkgray
Accent
#e3e7e8gainsboro
#202627darkslategray
Accent foreground
#465253darkslategray
#b7c2c3silver
Destructive
#b50603firebrick
#f10804red
Destructive foreground
#ffebeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6ae8f1skyblue
#6ae8f1skyblue

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button11.35:1AAA
Secondary button6.52:1AA
Muted text4.62:1AA
Accent6.52:1AA
Destructive6.13:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button11.35:1AAA
Secondary button8.37:1AAA
Muted text7.29:1AAA
Accent8.37:1AAA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.162 0.021 200.724);
  --muted: oklch(0.951 0.008 202.126);
  --muted-foreground: oklch(0.525 0.033 201.679);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.162 0.021 200.724);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.162 0.021 200.724);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.863 0.112 201.687);
  --primary-foreground: oklch(0.235 0.037 201.803);
  --secondary: oklch(0.926 0.004 202.167);
  --secondary-foreground: oklch(0.428 0.015 201.882);
  --accent: oklch(0.926 0.004 202.167);
  --accent-foreground: oklch(0.428 0.015 201.882);
  --destructive: oklch(0.487 0.197 29.282);
  --destructive-foreground: oklch(0.956 0.021 18.708);
  --ring: oklch(0.863 0.112 201.687);
  --chart-1: oklch(0.863 0.112 201.687);
  --chart-2: oklch(0.926 0.004 202.167);
  --chart-3: oklch(0.926 0.004 202.167);
  --chart-4: oklch(0.948 0.003 202.182);
  --chart-5: oklch(0.868 0.115 201.715);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.012 200.554);
  --foreground: oklch(0.987 0.003 202.182);
  --muted: oklch(0.19 0.011 201.7);
  --muted-foreground: oklch(0.713 0.031 201.806);
  --popover: oklch(0.139 0.012 200.554);
  --popover-foreground: oklch(0.987 0.003 202.182);
  --card: oklch(0.139 0.012 200.554);
  --card-foreground: oklch(0.987 0.003 202.182);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.863 0.112 201.687);
  --primary-foreground: oklch(0.235 0.037 201.803);
  --secondary: oklch(0.265 0.009 201.894);
  --secondary-foreground: oklch(0.805 0.012 202.054);
  --accent: oklch(0.265 0.009 201.894);
  --accent-foreground: oklch(0.805 0.012 202.054);
  --destructive: oklch(0.603 0.245 29.267);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.863 0.112 201.687);
  --chart-1: oklch(0.863 0.112 201.687);
  --chart-2: oklch(0.265 0.009 201.894);
  --chart-3: oklch(0.265 0.009 201.894);
  --chart-4: oklch(0.297 0.01 201.88);
  --chart-5: oklch(0.868 0.115 201.715);
}