Glaring for shadcn/ui

Glaring is a shadcn/ui theme built around a near-black primary color (#1d1c1b) with muted light orange accents (#d8d2ca). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#1d1c1b) on a neutral background (#040302).

Color palette

TokenLightDark
Background
#ffffffwhite
#040302black
Foreground
#160d04black
#fdfdfcwhite
Card
#fcfcfcsnow
#070503black
Card foreground
#110b03black
#ffffffwhite
Popover
#ffffffwhite
#040302black
Popover foreground
#160d04black
#fdfdfcwhite
Primary
#1d1c1bblack
#1d1c1bblack
Primary foreground
#b7b5b3silver
#b7b5b3silver
Secondary
#eae8e6linen
#201f1dblack
Secondary foreground
#575047darkolivegreen
#bcb8b3silver
Muted
#efe9e1linen
#1e1710black
Muted foreground
#40403fdarkslategray
#c0bfbfsilver
Accent
#d8d2calightgrey
#3d362fdarkslategray
Accent foreground
#413930darkslategray
#d5cfc8lightgrey
Destructive
#a22d06firebrick
#f86a3atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d1c1bblack
#1d1c1bblack

Contrast

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

Light mode
Text on background19.20:1AAA
Text on card19.14:1AAA
Primary button8.31:1AAA
Secondary button6.51:1AA
Muted text8.57:1AAA
Accent7.52:1AAA
Destructive7.18:1AAA
Dark mode
Text on background20.29:1AAA
Text on card20.32:1AAA
Primary button8.31:1AAA
Secondary button8.35:1AAA
Muted text9.63:1AAA
Accent7.70:1AAA
Destructive7.09:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.169 0.025 73.062);
  --muted: oklch(0.936 0.012 71.336);
  --muted-foreground: oklch(0.371 0.001 71.418);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.169 0.025 73.062);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.154 0.022 76.124);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.227 0.002 71.37);
  --primary-foreground: oklch(0.775 0.004 71.405);
  --secondary: oklch(0.933 0.004 71.413);
  --secondary-foreground: oklch(0.434 0.017 71.069);
  --accent: oklch(0.865 0.012 71.324);
  --accent-foreground: oklch(0.349 0.019 70.875);
  --destructive: oklch(0.476 0.159 35.906);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.227 0.002 71.37);
  --chart-1: oklch(0.227 0.002 71.37);
  --chart-2: oklch(0.933 0.004 71.413);
  --chart-3: oklch(0.865 0.012 71.324);
  --chart-4: oklch(0.955 0.003 71.426);
  --chart-5: oklch(0.228 0.004 71.284);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.094 0.007 76.657);
  --foreground: oklch(0.993 0.001 71.438);
  --muted: oklch(0.212 0.017 70.429);
  --muted-foreground: oklch(0.806 0.001 71.438);
  --popover: oklch(0.094 0.007 76.657);
  --popover-foreground: oklch(0.993 0.001 71.438);
  --card: oklch(0.119 0.009 76.657);
  --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.227 0.002 71.37);
  --primary-foreground: oklch(0.775 0.004 71.405);
  --secondary: oklch(0.239 0.005 71.279);
  --secondary-foreground: oklch(0.784 0.008 71.363);
  --accent: oklch(0.337 0.016 70.972);
  --accent-foreground: oklch(0.857 0.011 71.334);
  --destructive: oklch(0.692 0.185 38.315);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.227 0.002 71.37);
  --chart-1: oklch(0.227 0.002 71.37);
  --chart-2: oklch(0.239 0.005 71.279);
  --chart-3: oklch(0.337 0.016 70.972);
  --chart-4: oklch(0.272 0.005 71.267);
  --chart-5: oklch(0.228 0.004 71.284);
}