Homonym for shadcn/ui

Homonym is a shadcn/ui theme built around a teal primary color (#60dadc) with red accents (#dc6260). The light mode uses a neutral background (#f8fcfc). Dark mode keeps the teal primary (#60dadc) on a teal-tinted background (#030c0c).

Color palette

TokenLightDark
Background
#f8fcfcmintcream
#030c0cblack
Foreground
#051515black
#fcfdfdwhite
Card
#f8fcfcmintcream
#030c0cblack
Card foreground
#051515black
#fcfdfdwhite
Popover
#f8fcfcmintcream
#030c0cblack
Popover foreground
#051515black
#fcfdfdwhite
Primary
#60dadcmediumturquoise
#60dadcmediumturquoise
Primary foreground
#020808black
#020808black
Secondary
#dc6260indianred
#dc6260indianred
Secondary foreground
#000000black
#000000black
Muted
#eee3e2mistyrose
#1d1111black
Muted foreground
#473939darkslategray
#c6b8b8silver
Accent
#dc6260indianred
#dc6260indianred
Accent foreground
#000000black
#000000black
Destructive
#a40c04darkred
#f9170bred
Destructive foreground
#fededcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#60dadcmediumturquoise
#60dadcmediumturquoise

Contrast

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

Light mode
Text on background18.02:1AAA
Text on card18.02:1AAA
Primary button12.07:1AAA
Secondary button5.96:1AA
Muted text8.71:1AAA
Accent5.96:1AA
Destructive6.33:1AA
Dark mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button12.07:1AAA
Secondary button5.96:1AA
Muted text9.58:1AAA
Accent5.96:1AA
Destructive4.07:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 198.309);
  --foreground: oklch(0.179 0.023 196.724);
  --muted: oklch(0.923 0.012 18.568);
  --muted-foreground: oklch(0.359 0.02 19.247);
  --popover: oklch(0.987 0.004 198.309);
  --popover-foreground: oklch(0.179 0.023 196.724);
  --card: oklch(0.987 0.004 198.309);
  --card-foreground: oklch(0.179 0.023 196.724);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.821 0.108 196.78);
  --primary-foreground: oklch(0.126 0.015 196.418);
  --secondary: oklch(0.647 0.154 23.304);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.647 0.154 23.304);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.456 0.181 29.628);
  --destructive-foreground: oklch(0.926 0.036 21.411);
  --ring: oklch(0.821 0.108 196.78);
  --chart-1: oklch(0.821 0.108 196.78);
  --chart-2: oklch(0.647 0.154 23.304);
  --chart-3: oklch(0.647 0.154 23.304);
  --chart-4: oklch(0.671 0.141 22.555);
  --chart-5: oklch(0.827 0.112 196.758);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.017 196.614);
  --foreground: oklch(0.994 0.002 198.334);
  --muted: oklch(0.195 0.019 20.041);
  --muted-foreground: oklch(0.795 0.016 18.669);
  --popover: oklch(0.144 0.017 196.614);
  --popover-foreground: oklch(0.994 0.002 198.334);
  --card: oklch(0.144 0.017 196.614);
  --card-foreground: oklch(0.994 0.002 198.334);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.821 0.108 196.78);
  --primary-foreground: oklch(0.126 0.015 196.418);
  --secondary: oklch(0.647 0.154 23.304);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.647 0.154 23.304);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.622 0.248 29.498);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.821 0.108 196.78);
  --chart-1: oklch(0.821 0.108 196.78);
  --chart-2: oklch(0.647 0.154 23.304);
  --chart-3: oklch(0.647 0.154 23.304);
  --chart-4: oklch(0.671 0.141 22.555);
  --chart-5: oklch(0.827 0.112 196.758);
}