Harsh for shadcn/ui

Harsh is a shadcn/ui theme built around an orange primary color (#ac5d2f) with yellow accents (#ac9b2f). The light mode uses a neutral background (#fefcfb). Dark mode keeps the orange primary (#ac5d2f) on an orange-tinted background (#0a0705).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0a0705black
Foreground
#120803black
#f8f7f7whitesmoke
Card
#fdf9f6snow
#0e0907black
Card foreground
#0d0602black
#fafaf9snow
Popover
#fdf9f6snow
#0e0907black
Popover foreground
#0d0602black
#fafaf9snow
Primary
#ac5d2fsienna
#ac5d2fsienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ac2f40brown
#ac2f40brown
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4e6e8linen
#190b0dblack
Muted foreground
#5d5657dimgray
#a9a2a3darkgray
Accent
#ac9b2fperu
#ac9b2fperu
Accent foreground
#0c0b03black
#0c0b03black
Destructive
#9f1b09firebrick
#f23118orangered
Destructive foreground
#fde1ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ac5d2fsienna
#ac5d2fsienna

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.22:1AAA
Primary button4.81:1AA
Secondary button6.48:1AA
Muted text5.92:1AA
Accent7.06:1AAA
Destructive6.45:1AA
Dark mode
Text on background18.78:1AAA
Text on card18.94:1AAA
Primary button4.81:1AA
Secondary button6.48:1AA
Muted text7.66:1AAA
Accent7.06:1AAA
Destructive4.02:1AA Large

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.003 52.539);
  --foreground: oklch(0.147 0.023 59.916);
  --muted: oklch(0.937 0.015 8.138);
  --muted-foreground: oklch(0.459 0.009 8.249);
  --popover: oklch(0.985 0.006 52.497);
  --popover-foreground: oklch(0.132 0.02 62.994);
  --card: oklch(0.985 0.006 52.497);
  --card-foreground: oklch(0.132 0.02 62.994);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.563 0.119 48.568);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.502 0.16 17.856);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.686 0.126 100.288);
  --accent-foreground: oklch(0.147 0.019 102.46);
  --destructive: oklch(0.454 0.169 30.962);
  --destructive-foreground: oklch(0.932 0.031 26.7);
  --ring: oklch(0.563 0.119 48.568);
  --chart-1: oklch(0.563 0.119 48.568);
  --chart-2: oklch(0.502 0.16 17.856);
  --chart-3: oklch(0.686 0.126 100.288);
  --chart-4: oklch(0.527 0.169 17.951);
  --chart-5: oklch(0.565 0.125 48.187);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.009 57.378);
  --foreground: oklch(0.977 0.001 52.562);
  --muted: oklch(0.171 0.024 11.248);
  --muted-foreground: oklch(0.719 0.008 8.034);
  --popover: oklch(0.146 0.01 55.228);
  --popover-foreground: oklch(0.985 0.001 52.568);
  --card: oklch(0.146 0.01 55.228);
  --card-foreground: oklch(0.985 0.001 52.568);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.563 0.119 48.568);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.502 0.16 17.856);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.686 0.126 100.288);
  --accent-foreground: oklch(0.147 0.019 102.46);
  --destructive: oklch(0.622 0.229 31.001);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.563 0.119 48.568);
  --chart-1: oklch(0.563 0.119 48.568);
  --chart-2: oklch(0.502 0.16 17.856);
  --chart-3: oklch(0.686 0.126 100.288);
  --chart-4: oklch(0.527 0.169 17.951);
  --chart-5: oklch(0.565 0.125 48.187);
}