Laryngitis for shadcn/ui

Laryngitis is a shadcn/ui theme built around a vivid orange primary color (#f57214) with vivid violet accents (#7214f5). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid orange primary (#f57214) on an orange-tinted background (#100905).

Color palette

TokenLightDark
Background
#fefcfbsnow
#100905black
Foreground
#040201black
#fdfcfcsnow
Card
#fefcfbsnow
#100905black
Card foreground
#040201black
#fdfcfcsnow
Popover
#fefcfbsnow
#100905black
Popover foreground
#040201black
#fdfcfcsnow
Primary
#f57214darkorange
#f57214darkorange
Primary foreground
#000000black
#000000black
Secondary
#14f572springgreen
#14f572springgreen
Secondary foreground
#023b1adarkgreen
#023b1adarkgreen
Muted
#d1e0d8gainsboro
#1f2e25darkslategray
Muted foreground
#4b6255darkslategray
#9db4a6darkgray
Accent
#7214f5blueviolet
#7214f5blueviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9e120adarkred
#eb1a0fred
Destructive foreground
#fddfddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f57214darkorange
#f57214darkorange

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button7.29:1AAA
Secondary button8.73:1AAA
Muted text4.83:1AA
Accent6.70:1AA
Destructive6.58:1AA
Dark mode
Text on background19.27:1AAA
Text on card19.27:1AAA
Primary button7.29:1AAA
Secondary button8.73:1AAA
Muted text6.47:1AA
Accent6.70:1AA
Destructive4.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 58.321);
  --foreground: oklch(0.093 0.012 68.252);
  --muted: oklch(0.893 0.019 160.496);
  --muted-foreground: oklch(0.473 0.034 159.169);
  --popover: oklch(0.993 0.003 58.321);
  --popover-foreground: oklch(0.093 0.012 68.252);
  --card: oklch(0.993 0.003 58.321);
  --card-foreground: oklch(0.093 0.012 68.252);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.698 0.184 48.014);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.849 0.234 149.518);
  --secondary-foreground: oklch(0.308 0.08 151.569);
  --accent: oklch(0.511 0.279 290.424);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.447 0.173 29.357);
  --destructive-foreground: oklch(0.928 0.033 21.368);
  --ring: oklch(0.698 0.184 48.014);
  --chart-1: oklch(0.698 0.184 48.014);
  --chart-2: oklch(0.849 0.234 149.518);
  --chart-3: oklch(0.511 0.279 290.424);
  --chart-4: oklch(0.853 0.225 150.521);
  --chart-5: oklch(0.702 0.189 47.401);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.148 0.016 62.771);
  --foreground: oklch(0.992 0 58.357);
  --muted: oklch(0.283 0.025 158.72);
  --muted-foreground: oklch(0.747 0.031 159.996);
  --popover: oklch(0.148 0.016 62.771);
  --popover-foreground: oklch(0.992 0 58.357);
  --card: oklch(0.148 0.016 62.771);
  --card-foreground: oklch(0.992 0 58.357);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.698 0.184 48.014);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.849 0.234 149.518);
  --secondary-foreground: oklch(0.308 0.08 151.569);
  --accent: oklch(0.511 0.279 290.424);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.597 0.235 29.454);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.698 0.184 48.014);
  --chart-1: oklch(0.698 0.184 48.014);
  --chart-2: oklch(0.849 0.234 149.518);
  --chart-3: oklch(0.511 0.279 290.424);
  --chart-4: oklch(0.853 0.225 150.521);
  --chart-5: oklch(0.702 0.189 47.401);
}