Hoarse for shadcn/ui

Hoarse is a shadcn/ui theme built around a deep pink primary color (#12080c) with deep teal accents (#08120e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#12080c) on a neutral background (#070305).

Color palette

TokenLightDark
Background
#ffffffwhite
#070305black
Foreground
#0c0407black
#fdfbfcsnow
Card
#fcfcfcsnow
#0a0507black
Card foreground
#080205black
#ffffffwhite
Popover
#ffffffwhite
#070305black
Popover foreground
#0c0407black
#fdfbfcsnow
Primary
#12080cblack
#12080cblack
Primary foreground
#c884a0rosybrown
#c884a0rosybrown
Secondary
#08120eblack
#08120eblack
Secondary foreground
#84c8abmediumaquamarine
#84c8abmediumaquamarine
Muted
#e1efe9lavender
#101e18black
Muted foreground
#486056darkslategray
#9fb7addarkgray
Accent
#08120eblack
#08120eblack
Accent foreground
#84c8abmediumaquamarine
#84c8abmediumaquamarine
Destructive
#b64102firebrick
#fd5d08orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#12080cblack
#12080cblack

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.12:1AAA
Primary button6.82:1AA
Secondary button9.84:1AAA
Muted text5.75:1AA
Accent9.84:1AAA
Destructive5.62:1AA
Dark mode
Text on background19.87:1AAA
Text on card20.22:1AAA
Primary button6.82:1AA
Secondary button9.84:1AAA
Muted text8.06:1AAA
Accent9.84:1AAA
Destructive6.73:1AA

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.122 0.021 349.561);
  --muted: oklch(0.94 0.017 169.15);
  --muted-foreground: oklch(0.466 0.033 167.517);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.021 349.561);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.106 0.019 349.334);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.15 0.019 352.541);
  --primary-foreground: oklch(0.69 0.091 353.121);
  --secondary: oklch(0.169 0.017 166.718);
  --secondary-foreground: oklch(0.778 0.08 166.29);
  --accent: oklch(0.169 0.017 166.718);
  --accent-foreground: oklch(0.778 0.08 166.29);
  --destructive: oklch(0.532 0.163 41.015);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.15 0.019 352.541);
  --chart-1: oklch(0.15 0.019 352.541);
  --chart-2: oklch(0.169 0.017 166.718);
  --chart-3: oklch(0.169 0.017 166.718);
  --chart-4: oklch(0.211 0.025 165.639);
  --chart-5: oklch(0.15 0.021 352.675);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.011 349.475);
  --foreground: oklch(0.991 0.002 349.738);
  --muted: oklch(0.22 0.023 166.223);
  --muted-foreground: oklch(0.757 0.029 168.525);
  --popover: oklch(0.11 0.011 349.475);
  --popover-foreground: oklch(0.991 0.002 349.738);
  --card: oklch(0.126 0.013 349.475);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.15 0.019 352.541);
  --primary-foreground: oklch(0.69 0.091 353.121);
  --secondary: oklch(0.169 0.017 166.718);
  --secondary-foreground: oklch(0.778 0.08 166.29);
  --accent: oklch(0.169 0.017 166.718);
  --accent-foreground: oklch(0.778 0.08 166.29);
  --destructive: oklch(0.681 0.208 40.82);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.15 0.019 352.541);
  --chart-1: oklch(0.15 0.019 352.541);
  --chart-2: oklch(0.169 0.017 166.718);
  --chart-3: oklch(0.169 0.017 166.718);
  --chart-4: oklch(0.211 0.025 165.639);
  --chart-5: oklch(0.15 0.021 352.675);
}