Euphonium for shadcn/ui

Euphonium is a shadcn/ui theme built around a light cyan primary color (#f5f9fa) with light orange accents (#faf6f5). The light mode uses a neutral background (#ffffff). Dark mode keeps the light cyan primary (#f5f9fa) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#ffffffwhite
#010304black
Foreground
#020708black
#f9fbfbghostwhite
Card
#ffffffwhite
#010304black
Card foreground
#020708black
#f9fbfbghostwhite
Popover
#ffffffwhite
#010304black
Popover foreground
#020708black
#f9fbfbghostwhite
Primary
#f5f9faghostwhite
#f5f9faghostwhite
Primary foreground
#1c323bdarkslategray
#1c323bdarkslategray
Secondary
#faf6f5whitesmoke
#faf6f5whitesmoke
Secondary foreground
#7f4f3dsienna
#7f4f3dsienna
Muted
#e1dcdagainsboro
#251f1eblack
Muted foreground
#4b3e3adarkslategray
#c5b9b4silver
Accent
#faf6f5whitesmoke
#faf6f5whitesmoke
Accent foreground
#7f4f3dsienna
#7f4f3dsienna
Destructive
#d13f05orangered
#f9591aorangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f5f9faghostwhite
#f5f9faghostwhite

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button12.59:1AAA
Secondary button6.33:1AA
Muted text7.55:1AAA
Accent6.33:1AA
Destructive4.75:1AA
Dark mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button12.59:1AAA
Secondary button6.33:1AA
Muted text8.46:1AAA
Accent6.33:1AA
Destructive6.49:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.119 0.014 215.57);
  --muted: oklch(0.899 0.006 41.248);
  --muted-foreground: oklch(0.377 0.019 41.001);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.119 0.014 215.57);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.119 0.014 215.57);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.978 0.005 221.345);
  --primary-foreground: oklch(0.304 0.032 223.178);
  --secondary: oklch(0.976 0.005 41.267);
  --secondary-foreground: oklch(0.478 0.071 40.706);
  --accent: oklch(0.976 0.005 41.267);
  --accent-foreground: oklch(0.478 0.071 40.706);
  --destructive: oklch(0.576 0.191 36.958);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.978 0.005 221.345);
  --chart-1: oklch(0.978 0.005 221.345);
  --chart-2: oklch(0.976 0.005 41.267);
  --chart-3: oklch(0.976 0.005 41.267);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.978 0.005 221.349);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.094 0.009 216.468);
  --foreground: oklch(0.985 0.002 221.325);
  --muted: oklch(0.247 0.009 41.067);
  --muted-foreground: oklch(0.794 0.016 41.161);
  --popover: oklch(0.094 0.009 216.468);
  --popover-foreground: oklch(0.985 0.002 221.325);
  --card: oklch(0.094 0.009 216.468);
  --card-foreground: oklch(0.985 0.002 221.325);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.978 0.005 221.345);
  --primary-foreground: oklch(0.304 0.032 223.178);
  --secondary: oklch(0.976 0.005 41.267);
  --secondary-foreground: oklch(0.478 0.071 40.706);
  --accent: oklch(0.976 0.005 41.267);
  --accent-foreground: oklch(0.478 0.071 40.706);
  --destructive: oklch(0.672 0.206 38.606);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.978 0.005 221.345);
  --chart-1: oklch(0.978 0.005 221.345);
  --chart-2: oklch(0.976 0.005 41.267);
  --chart-3: oklch(0.976 0.005 41.267);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.978 0.005 221.349);
}