Hygienic for shadcn/ui

Hygienic is a shadcn/ui theme built around a vivid red primary color (#d00b3c) with vivid orange accents (#d03c0b). The light mode uses a neutral background (#fefbfc). Dark mode keeps the vivid red primary (#d00b3c) on a red-tinted background (#100507).

Color palette

TokenLightDark
Background
#fefbfcsnow
#100507black
Foreground
#080204black
#ffffffwhite
Card
#fdf7f8snow
#140609black
Card foreground
#040102black
#ffffffwhite
Popover
#fefbfcsnow
#100507black
Popover foreground
#080204black
#ffffffwhite
Primary
#d00b3ccrimson
#d00b3ccrimson
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d00b9fmediumvioletred
#d00b9fmediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eacde2gainsboro
#32152bdarkslategray
Muted foreground
#4c3e48darkslategray
#c1b3besilver
Accent
#d03c0bfirebrick
#d03c0bfirebrick
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#913e0dsaddlebrown
#db5d14chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d00b3ccrimson
#d00b3ccrimson

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.60:1AAA
Primary button5.51:1AA
Secondary button4.95:1AA
Muted text6.85:1AA
Accent4.82:1AA
Destructive7.28:1AAA
Dark mode
Text on background20.09:1AAA
Text on card19.84:1AAA
Primary button5.51:1AA
Secondary button4.95:1AA
Muted text8.16:1AAA
Accent4.82:1AA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 359.968);
  --foreground: oklch(0.104 0.02 359.783);
  --muted: oklch(0.879 0.043 334.671);
  --muted-foreground: oklch(0.382 0.025 334.951);
  --popover: oklch(0.99 0.004 359.968);
  --popover-foreground: oklch(0.104 0.02 359.783);
  --card: oklch(0.981 0.007 0.072);
  --card-foreground: oklch(0.083 0.016 359.783);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.547 0.215 18.41);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.578 0.244 342.755);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.573 0.192 35.824);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.467 0.125 45.126);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.547 0.215 18.41);
  --chart-1: oklch(0.547 0.215 18.41);
  --chart-2: oklch(0.578 0.244 342.755);
  --chart-3: oklch(0.573 0.192 35.824);
  --chart-4: oklch(0.608 0.257 342.814);
  --chart-5: oklch(0.552 0.219 19.092);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.024 1.261);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.248 0.057 337.426);
  --muted-foreground: oklch(0.782 0.021 334.325);
  --popover: oklch(0.134 0.024 1.261);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.146 0.028 2.927);
  --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.547 0.215 18.41);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.578 0.244 342.755);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.573 0.192 35.824);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.631 0.175 44.337);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.547 0.215 18.41);
  --chart-1: oklch(0.547 0.215 18.41);
  --chart-2: oklch(0.578 0.244 342.755);
  --chart-3: oklch(0.573 0.192 35.824);
  --chart-4: oklch(0.608 0.257 342.814);
  --chart-5: oklch(0.552 0.219 19.092);
}