Glaring for shadcn/ui

Glaring is a shadcn/ui theme built around a light green primary color (#b9e9c9) with light orange accents (#e9c9b9). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the light green primary (#b9e9c9) on a green-tinted background (#060f09).

Color palette

TokenLightDark
Background
#f8fcf9mintcream
#060f09black
Foreground
#010402black
#f5faf6whitesmoke
Card
#f8fcf9mintcream
#060f09black
Card foreground
#010402black
#f5faf6whitesmoke
Popover
#f8fcf9mintcream
#060f09black
Popover foreground
#010402black
#f5faf6whitesmoke
Primary
#b9e9c9powderblue
#b9e9c9powderblue
Primary foreground
#1b552edarkslategray
#1b552edarkslategray
Secondary
#c9b9e9thistle
#c9b9e9thistle
Secondary foreground
#2e1b55midnightblue
#2e1b55midnightblue
Muted
#e1dee8gainsboro
#1a1721black
Muted foreground
#554c67dimgray
#a198b3darkgray
Accent
#e9c9b9wheat
#e9c9b9wheat
Accent foreground
#552e1bsaddlebrown
#552e1bsaddlebrown
Destructive
#6d0a09maroon
#ed2521crimson
Destructive foreground
#f8b0aflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b9e9c9powderblue
#b9e9c9powderblue

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button6.52:1AA
Secondary button8.27:1AAA
Muted text6.05:1AA
Accent7.54:1AAA
Destructive6.98:1AA
Dark mode
Text on background18.45:1AAA
Text on card18.45:1AAA
Primary button6.52:1AA
Secondary button8.27:1AAA
Muted text6.42:1AA
Accent7.54:1AAA
Destructive4.29:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 157.173);
  --foreground: oklch(0.098 0.016 156.878);
  --muted: oklch(0.906 0.013 301.257);
  --muted-foreground: oklch(0.435 0.045 299.814);
  --popover: oklch(0.987 0.004 157.173);
  --popover-foreground: oklch(0.098 0.016 156.878);
  --card: oklch(0.987 0.004 157.173);
  --card-foreground: oklch(0.098 0.016 156.878);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.892 0.066 155.661);
  --primary-foreground: oklch(0.402 0.089 151.178);
  --secondary: oklch(0.815 0.068 300.133);
  --secondary-foreground: oklch(0.283 0.101 294.424);
  --accent: oklch(0.859 0.042 48.207);
  --accent-foreground: oklch(0.348 0.065 46.409);
  --destructive: oklch(0.342 0.13 28.268);
  --destructive-foreground: oklch(0.825 0.085 20.149);
  --ring: oklch(0.892 0.066 155.661);
  --chart-1: oklch(0.892 0.066 155.661);
  --chart-2: oklch(0.815 0.068 300.133);
  --chart-3: oklch(0.859 0.042 48.207);
  --chart-4: oklch(0.847 0.056 300.415);
  --chart-5: oklch(0.894 0.069 155.569);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.019 155.994);
  --foreground: oklch(0.98 0.008 157.108);
  --muted: oklch(0.214 0.019 300.044);
  --muted-foreground: oklch(0.697 0.04 300.57);
  --popover: oklch(0.155 0.019 155.994);
  --popover-foreground: oklch(0.98 0.008 157.108);
  --card: oklch(0.155 0.019 155.994);
  --card-foreground: oklch(0.98 0.008 157.108);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.892 0.066 155.661);
  --primary-foreground: oklch(0.402 0.089 151.178);
  --secondary: oklch(0.815 0.068 300.133);
  --secondary-foreground: oklch(0.283 0.101 294.424);
  --accent: oklch(0.859 0.042 48.207);
  --accent-foreground: oklch(0.348 0.065 46.409);
  --destructive: oklch(0.607 0.231 28.225);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.892 0.066 155.661);
  --chart-1: oklch(0.892 0.066 155.661);
  --chart-2: oklch(0.815 0.068 300.133);
  --chart-3: oklch(0.859 0.042 48.207);
  --chart-4: oklch(0.847 0.056 300.415);
  --chart-5: oklch(0.894 0.069 155.569);
}