Hoarse for shadcn/ui

Hoarse is a shadcn/ui theme built around a light green primary color (#dbf0e4) with light pink accents (#f0dbe7). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#dbf0e4) on a green-tinted background (#030c07).

Color palette

TokenLightDark
Background
#ffffffwhite
#030c07black
Foreground
#000000black
#fbfdfcwhite
Card
#ffffffwhite
#030c07black
Card foreground
#000000black
#fbfdfcwhite
Popover
#ffffffwhite
#030c07black
Popover foreground
#000000black
#fbfdfcwhite
Primary
#dbf0e4gainsboro
#dbf0e4gainsboro
Primary foreground
#0f2418black
#0f2418black
Secondary
#f0dbe7mistyrose
#f0dbe7mistyrose
Secondary foreground
#6b2e52dimgray
#6b2e52dimgray
Muted
#ece9eblinen
#161315black
Muted foreground
#67515edimgray
#ae98a5darkgray
Accent
#f0dbe7mistyrose
#f0dbe7mistyrose
Accent foreground
#6b2e52dimgray
#6b2e52dimgray
Destructive
#a81b05firebrick
#f94a2ftomato
Destructive foreground
#fee5e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dbf0e4gainsboro
#dbf0e4gainsboro

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button13.66:1AAA
Secondary button7.49:1AAA
Muted text5.97:1AA
Accent7.49:1AAA
Destructive6.19:1AA
Dark mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button13.66:1AAA
Secondary button7.49:1AAA
Muted text6.89:1AA
Accent7.49:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.937 0.005 341.134);
  --muted-foreground: oklch(0.461 0.035 342.706);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.936 0.027 160.325);
  --primary-foreground: oklch(0.238 0.035 156.765);
  --secondary: oklch(0.912 0.027 341.697);
  --secondary-foreground: oklch(0.397 0.098 346.442);
  --accent: oklch(0.912 0.027 341.697);
  --accent-foreground: oklch(0.397 0.098 346.442);
  --destructive: oklch(0.471 0.178 31.342);
  --destructive-foreground: oklch(0.942 0.028 28.11);
  --ring: oklch(0.936 0.027 160.325);
  --chart-1: oklch(0.936 0.027 160.325);
  --chart-2: oklch(0.912 0.027 341.697);
  --chart-3: oklch(0.912 0.027 341.697);
  --chart-4: oklch(0.939 0.019 341.478);
  --chart-5: oklch(0.937 0.029 160.273);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.021 160.62);
  --foreground: oklch(0.994 0.003 160.952);
  --muted: oklch(0.19 0.007 341.884);
  --muted-foreground: oklch(0.704 0.032 342.027);
  --popover: oklch(0.142 0.021 160.62);
  --popover-foreground: oklch(0.994 0.003 160.952);
  --card: oklch(0.142 0.021 160.62);
  --card-foreground: oklch(0.994 0.003 160.952);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.936 0.027 160.325);
  --primary-foreground: oklch(0.238 0.035 156.765);
  --secondary: oklch(0.912 0.027 341.697);
  --secondary-foreground: oklch(0.397 0.098 346.442);
  --accent: oklch(0.912 0.027 341.697);
  --accent-foreground: oklch(0.397 0.098 346.442);
  --destructive: oklch(0.656 0.215 31.634);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.936 0.027 160.325);
  --chart-1: oklch(0.936 0.027 160.325);
  --chart-2: oklch(0.912 0.027 341.697);
  --chart-3: oklch(0.912 0.027 341.697);
  --chart-4: oklch(0.939 0.019 341.478);
  --chart-5: oklch(0.937 0.029 160.273);
}