Hoarse for shadcn/ui

Hoarse is a shadcn/ui theme built around a vivid light cyan primary color (#bfecfd) with vivid light blue accents (#bfcdfd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light cyan primary (#bfecfd) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#ffffffwhite
#030607black
Foreground
#031116black
#f6f8f9whitesmoke
Card
#ffffffwhite
#030607black
Card foreground
#031116black
#f6f8f9whitesmoke
Popover
#ffffffwhite
#030607black
Popover foreground
#031116black
#f6f8f9whitesmoke
Primary
#bfecfdpaleturquoise
#bfecfdpaleturquoise
Primary foreground
#011a22black
#011a22black
Secondary
#bffdeepaleturquoise
#bffdeepaleturquoise
Secondary foreground
#01221bblack
#01221bblack
Muted
#eff5f4whitesmoke
#0a100eblack
Muted foreground
#4e6a63dimgray
#95b1abdarkgray
Accent
#bfcdfdlightblue
#bfcdfdlightblue
Accent foreground
#052385midnightblue
#052385midnightblue
Destructive
#de0202red
#fc0303red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bfecfdpaleturquoise
#bfecfdpaleturquoise

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card19.16:1AAA
Primary button14.20:1AAA
Secondary button14.81:1AAA
Muted text5.35:1AA
Accent8.45:1AAA
Destructive5.09:1AA
Dark mode
Text on background19.07:1AAA
Text on card19.07:1AAA
Primary button14.20:1AAA
Secondary button14.81:1AAA
Muted text8.37:1AAA
Accent8.45:1AAA
Destructive4.06: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.167 0.023 221.688);
  --muted: oklch(0.966 0.007 180.755);
  --muted-foreground: oklch(0.499 0.034 178.875);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.167 0.023 221.688);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.167 0.023 221.688);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.917 0.052 222.003);
  --primary-foreground: oklch(0.201 0.036 224.436);
  --secondary: oklch(0.948 0.065 178.865);
  --secondary-foreground: oklch(0.227 0.042 173.978);
  --accent: oklch(0.855 0.068 271.673);
  --accent-foreground: oklch(0.32 0.165 264.313);
  --destructive: oklch(0.566 0.232 29.158);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.917 0.052 222.003);
  --chart-1: oklch(0.917 0.052 222.003);
  --chart-2: oklch(0.948 0.065 178.865);
  --chart-3: oklch(0.855 0.068 271.673);
  --chart-4: oklch(0.959 0.051 179.387);
  --chart-5: oklch(0.918 0.053 222.032);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.01 217.182);
  --foreground: oklch(0.978 0.003 221.331);
  --muted: oklch(0.165 0.01 179.055);
  --muted-foreground: oklch(0.738 0.032 179.699);
  --popover: oklch(0.118 0.01 217.182);
  --popover-foreground: oklch(0.978 0.003 221.331);
  --card: oklch(0.118 0.01 217.182);
  --card-foreground: oklch(0.978 0.003 221.331);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.917 0.052 222.003);
  --primary-foreground: oklch(0.201 0.036 224.436);
  --secondary: oklch(0.948 0.065 178.865);
  --secondary-foreground: oklch(0.227 0.042 173.978);
  --accent: oklch(0.855 0.068 271.673);
  --accent-foreground: oklch(0.32 0.165 264.313);
  --destructive: oklch(0.624 0.255 29.169);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.917 0.052 222.003);
  --chart-1: oklch(0.917 0.052 222.003);
  --chart-2: oklch(0.948 0.065 178.865);
  --chart-3: oklch(0.855 0.068 271.673);
  --chart-4: oklch(0.959 0.051 179.387);
  --chart-5: oklch(0.918 0.053 222.032);
}