Highland for shadcn/ui

Highland is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#d3c5c5). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-black primary (#000000) on a red-tinted background (#0a0505).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0a0505black
Foreground
#000000black
#ffffffwhite
Card
#fefbfbsnow
#0a0505black
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfbsnow
#0a0505black
Popover foreground
#000000black
#ffffffwhite
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#d3c5c5lightgrey
#2b2626darkslategray
Secondary foreground
#3a2c2cdarkslategray
#c5bebesilver
Muted
#f7ededlinen
#120808black
Muted foreground
#615c5cdimgray
#a39e9edarkgray
Accent
#d3c5c5lightgrey
#2b2626darkslategray
Accent foreground
#3a2c2cdarkslategray
#c5bebesilver
Destructive
#621d04maroon
#e14309orangered
Destructive foreground
#fbb69dlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000000black
#000000black

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card20.38:1AAA
Primary button7.37:1AAA
Secondary button7.98:1AAA
Muted text5.73:1AA
Accent7.98:1AAA
Destructive7.23:1AAA
Dark mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button7.37:1AAA
Secondary button8.12:1AAA
Muted text7.47:1AAA
Accent8.12:1AAA
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 17.217);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.955 0.011 17.35);
  --muted-foreground: oklch(0.478 0.007 17.412);
  --popover: oklch(0.99 0.004 17.217);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.004 17.217);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.835 0.015 17.455);
  --secondary-foreground: oklch(0.31 0.02 18.266);
  --accent: oklch(0.835 0.015 17.455);
  --accent-foreground: oklch(0.31 0.02 18.266);
  --destructive: oklch(0.338 0.105 38.203);
  --destructive-foreground: oklch(0.835 0.088 40.836);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.835 0.015 17.455);
  --chart-3: oklch(0.835 0.015 17.455);
  --chart-4: oklch(0.861 0.013 17.4);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.011 18.664);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.148 0.019 19.557);
  --muted-foreground: oklch(0.703 0.007 17.313);
  --popover: oklch(0.125 0.011 18.664);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.011 18.664);
  --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 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.275 0.007 17.604);
  --secondary-foreground: oklch(0.808 0.008 17.328);
  --accent: oklch(0.275 0.007 17.604);
  --accent-foreground: oklch(0.808 0.008 17.328);
  --destructive: oklch(0.608 0.203 36.322);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.275 0.007 17.604);
  --chart-3: oklch(0.275 0.007 17.604);
  --chart-4: oklch(0.306 0.008 17.624);
  --chart-5: oklch(0 0 0);
}