Harsh for shadcn/ui

Harsh is a shadcn/ui theme built around a red primary color (#a14f3a) with yellow accents (#a1823a). The light mode uses a neutral background (#fdfcfb). Dark mode keeps the red primary (#a14f3a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcfbsnow
#000000black
Foreground
#150805black
#fbf9f9snow
Card
#fcf9f8snow
#030303black
Card foreground
#110604black
#fdfcfcsnow
Popover
#fdfcfbsnow
#000000black
Popover foreground
#150805black
#fbf9f9snow
Primary
#a14f3asienna
#a14f3asienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a13a59brown
#a13a59brown
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3dddfgainsboro
#221c1dblack
Muted foreground
#47393ddarkslategray
#c6b8bcsilver
Accent
#a1823aperu
#a1823aperu
Accent foreground
#000000black
#000000black
Destructive
#8b380esaddlebrown
#ec7a41coral
Destructive foreground
#fadfd1antiquewhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a14f3asienna
#a14f3asienna

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card19.02:1AAA
Primary button5.68:1AA
Secondary button6.41:1AA
Muted text8.18:1AAA
Accent5.78:1AA
Destructive6.20:1AA
Dark mode
Text on background20.02:1AAA
Text on card20.19:1AAA
Primary button5.68:1AA
Secondary button6.41:1AA
Muted text8.80:1AAA
Accent5.78:1AA
Destructive7.42:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 34.314);
  --foreground: oklch(0.153 0.026 38.984);
  --muted: oklch(0.904 0.007 356.884);
  --muted-foreground: oklch(0.36 0.021 358.273);
  --popover: oklch(0.992 0.002 34.314);
  --popover-foreground: oklch(0.153 0.026 38.984);
  --card: oklch(0.983 0.003 34.311);
  --card-foreground: oklch(0.14 0.022 40.615);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.525 0.114 35.149);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.502 0.139 5.06);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.622 0.098 85.928);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.449 0.125 42.724);
  --destructive-foreground: oklch(0.921 0.036 48.307);
  --ring: oklch(0.525 0.114 35.149);
  --chart-1: oklch(0.525 0.114 35.149);
  --chart-2: oklch(0.502 0.139 5.06);
  --chart-3: oklch(0.622 0.098 85.928);
  --chart-4: oklch(0.527 0.146 5.134);
  --chart-5: oklch(0.526 0.121 35.187);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 34.313);
  --muted: oklch(0.232 0.01 357.88);
  --muted-foreground: oklch(0.796 0.017 357.262);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 34.313);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 34.315);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.525 0.114 35.149);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.502 0.139 5.06);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.622 0.098 85.928);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.7 0.158 45.311);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.525 0.114 35.149);
  --chart-1: oklch(0.525 0.114 35.149);
  --chart-2: oklch(0.502 0.139 5.06);
  --chart-3: oklch(0.622 0.098 85.928);
  --chart-4: oklch(0.527 0.146 5.134);
  --chart-5: oklch(0.526 0.121 35.187);
}