Lighthearted for shadcn/ui

Lighthearted is a shadcn/ui theme built around a cyan primary color (#2daec8) with blue accents (#2d61c8). The light mode uses a neutral background (#fbfefe). Dark mode keeps the cyan primary (#2daec8) on a neutral background (#010404).

Color palette

TokenLightDark
Background
#fbfefewhite
#010404black
Foreground
#040e10black
#f6f8f9whitesmoke
Card
#fbfefewhite
#010404black
Card foreground
#040e10black
#f6f8f9whitesmoke
Popover
#fbfefewhite
#010404black
Popover foreground
#040e10black
#f6f8f9whitesmoke
Primary
#2daec8lightseagreen
#2daec8lightseagreen
Primary foreground
#081d21black
#081d21black
Secondary
#2dc894lightseagreen
#2dc894lightseagreen
Secondary foreground
#082119black
#082119black
Muted
#ecf4f1whitesmoke
#0b1311black
Muted foreground
#41534ddarkslategray
#acbeb8silver
Accent
#2d61c8royalblue
#2d61c8royalblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#812f08saddlebrown
#f0560forangered
Destructive foreground
#fbd3c1peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2daec8lightseagreen
#2daec8lightseagreen

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button6.60:1AA
Secondary button7.85:1AAA
Muted text7.29:1AAA
Accent5.76:1AA
Destructive6.47:1AA
Dark mode
Text on background19.35:1AAA
Text on card19.35:1AAA
Primary button6.60:1AA
Secondary button7.85:1AAA
Muted text9.66:1AAA
Accent5.76:1AA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 211.041);
  --foreground: oklch(0.155 0.017 210.005);
  --muted: oklch(0.96 0.009 174.297);
  --muted-foreground: oklch(0.425 0.024 172.807);
  --popover: oklch(0.994 0.003 211.041);
  --popover-foreground: oklch(0.155 0.017 210.005);
  --card: oklch(0.994 0.003 211.041);
  --card-foreground: oklch(0.155 0.017 210.005);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.694 0.112 214.73);
  --primary-foreground: oklch(0.215 0.028 212.566);
  --secondary: oklch(0.741 0.145 164.974);
  --secondary-foreground: oklch(0.226 0.036 168.227);
  --accent: oklch(0.516 0.17 262.231);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.419 0.123 40.865);
  --destructive-foreground: oklch(0.896 0.051 46.296);
  --ring: oklch(0.694 0.112 214.73);
  --chart-1: oklch(0.694 0.112 214.73);
  --chart-2: oklch(0.741 0.145 164.974);
  --chart-3: oklch(0.516 0.17 262.231);
  --chart-4: oklch(0.768 0.148 165.275);
  --chart-5: oklch(0.701 0.115 215.062);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.01 207.388);
  --foreground: oklch(0.978 0.003 211.042);
  --muted: oklch(0.179 0.014 172.109);
  --muted-foreground: oklch(0.786 0.021 173.78);
  --popover: oklch(0.096 0.01 207.388);
  --popover-foreground: oklch(0.978 0.003 211.042);
  --card: oklch(0.096 0.01 207.388);
  --card-foreground: oklch(0.978 0.003 211.042);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.694 0.112 214.73);
  --primary-foreground: oklch(0.215 0.028 212.566);
  --secondary: oklch(0.741 0.145 164.974);
  --secondary-foreground: oklch(0.226 0.036 168.227);
  --accent: oklch(0.516 0.17 262.231);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.653 0.201 39.727);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.694 0.112 214.73);
  --chart-1: oklch(0.694 0.112 214.73);
  --chart-2: oklch(0.741 0.145 164.974);
  --chart-3: oklch(0.516 0.17 262.231);
  --chart-4: oklch(0.768 0.148 165.275);
  --chart-5: oklch(0.701 0.115 215.062);
}