Glaring for shadcn/ui

Glaring is a shadcn/ui theme built around a near-black primary color (#010609) with near-black accents (#090401). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#010609) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#030c12black
#f6f8f9whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#02090dblack
#f9fafbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#030c12black
#f6f8f9whitesmoke
Primary
#010609black
#010609black
Primary foreground
#4faeeecornflowerblue
#4faeeecornflowerblue
Secondary
#090401black
#090401black
Secondary foreground
#ee8e4fcoral
#ee8e4fcoral
Muted
#e3ddd8gainsboro
#27201cblack
Muted foreground
#575757dimgray
#a8a8a8darkgray
Accent
#090401black
#090401black
Accent foreground
#ee8e4fcoral
#ee8e4fcoral
Destructive
#883007saddlebrown
#f46625chocolate
Destructive foreground
#fcd6c5peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#010609black
#010609black

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.61:1AAA
Primary button8.36:1AAA
Secondary button8.35:1AAA
Muted text5.36:1AA
Accent8.35:1AAA
Destructive6.31:1AA
Dark mode
Text on background19.71:1AAA
Text on card19.78:1AAA
Primary button8.36:1AAA
Secondary button8.35:1AAA
Muted text6.74:1AA
Accent8.35:1AAA
Destructive6.77:1AA

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.146 0.022 232.926);
  --muted: oklch(0.901 0.01 56.286);
  --muted-foreground: oklch(0.456 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.146 0.022 232.926);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.131 0.019 228.885);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.115 0.018 226.524);
  --primary-foreground: oklch(0.721 0.129 241.039);
  --secondary: oklch(0.117 0.019 69.464);
  --secondary-foreground: oklch(0.736 0.14 52.478);
  --accent: oklch(0.117 0.019 69.464);
  --accent-foreground: oklch(0.736 0.14 52.478);
  --destructive: oklch(0.432 0.129 40.519);
  --destructive-foreground: oklch(0.904 0.048 46.329);
  --ring: oklch(0.115 0.018 226.524);
  --chart-1: oklch(0.115 0.018 226.524);
  --chart-2: oklch(0.117 0.019 69.464);
  --chart-3: oklch(0.117 0.019 69.464);
  --chart-4: oklch(0.164 0.03 60.913);
  --chart-5: oklch(0.115 0.018 226.2);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.977 0.002 236.465);
  --muted: oklch(0.25 0.013 55.695);
  --muted-foreground: oklch(0.733 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.977 0.002 236.465);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.985 0.001 236.455);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.115 0.018 226.524);
  --primary-foreground: oklch(0.721 0.129 241.039);
  --secondary: oklch(0.117 0.019 69.464);
  --secondary-foreground: oklch(0.736 0.14 52.478);
  --accent: oklch(0.117 0.019 69.464);
  --accent-foreground: oklch(0.736 0.14 52.478);
  --destructive: oklch(0.68 0.188 41.874);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.115 0.018 226.524);
  --chart-1: oklch(0.115 0.018 226.524);
  --chart-2: oklch(0.117 0.019 69.464);
  --chart-3: oklch(0.117 0.019 69.464);
  --chart-4: oklch(0.164 0.03 60.913);
  --chart-5: oklch(0.115 0.018 226.2);
}