Laryngitis for shadcn/ui

Laryngitis is a shadcn/ui theme built around a muted light orange primary color (#ebe7e5) with neutral gray accents (#e6e6e6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light orange primary (#ebe7e5) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#100805black
#fdfcfcsnow
Card
#fcfcfcsnow
#030303black
Card foreground
#0c0604black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#0c0604black
#ffffffwhite
Primary
#ebe7e5linen
#ebe7e5linen
Primary foreground
#5b4a43darkolivegreen
#5b4a43darkolivegreen
Secondary
#e6e6e6gainsboro
#362b26darkslategray
Secondary foreground
#4d4d4ddarkslategray
#d0c3bdsilver
Muted
#e6dbdbgainsboro
#241c19black
Muted foreground
#605757dimgray
#a8a19fdarkgray
Accent
#e6e6e6gainsboro
#362b26darkslategray
Accent foreground
#4d4d4ddarkslategray
#d0c3bdsilver
Destructive
#a73801saddlebrown
#fe742ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ebe7e5linen
#ebe7e5linen

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.69:1AAA
Primary button6.81:1AA
Secondary button6.74:1AA
Muted text5.16:1AA
Accent6.74:1AA
Destructive6.50:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button6.81:1AA
Secondary button8.01:1AAA
Muted text6.56:1AA
Accent8.01:1AAA
Destructive7.74:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.016 49.781);
  --muted: oklch(0.899 0.013 17.394);
  --muted-foreground: oklch(0.466 0.012 17.59);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.13 0.014 51.968);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.13 0.014 51.968);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.93 0.006 44.916);
  --primary-foreground: oklch(0.425 0.025 44.477);
  --secondary: oklch(0.923 0 153.435);
  --secondary-foreground: oklch(0.418 0 173.29);
  --accent: oklch(0.923 0 153.435);
  --accent-foreground: oklch(0.418 0 173.29);
  --destructive: oklch(0.498 0.156 40.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.93 0.006 44.916);
  --chart-1: oklch(0.93 0.006 44.916);
  --chart-2: oklch(0.923 0 153.435);
  --chart-3: oklch(0.923 0 153.435);
  --chart-4: oklch(0.947 0 180);
  --chart-5: oklch(0.93 0.007 44.903);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 44.967);
  --muted: oklch(0.236 0.014 44.467);
  --muted-foreground: oklch(0.715 0.008 44.862);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.93 0.006 44.916);
  --primary-foreground: oklch(0.425 0.025 44.477);
  --secondary: oklch(0.299 0.018 44.468);
  --secondary-foreground: oklch(0.827 0.017 44.781);
  --accent: oklch(0.299 0.018 44.468);
  --accent-foreground: oklch(0.827 0.017 44.781);
  --destructive: oklch(0.715 0.186 43.794);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.93 0.006 44.916);
  --chart-1: oklch(0.93 0.006 44.916);
  --chart-2: oklch(0.299 0.018 44.468);
  --chart-3: oklch(0.299 0.018 44.468);
  --chart-4: oklch(0.329 0.021 44.453);
  --chart-5: oklch(0.93 0.007 44.903);
}