Generate feedback colors (success, warning, error, and info) for shadcn/ui

Go to generator

10000+Themes for shadcn/ui

Glaring for shadcn/ui

Glaring is a shadcn/ui theme built around a red primary color (#e2888b) with teal accents (#88e2df). The light mode uses a neutral background (#fbf8f8). Dark mode keeps the red primary (#e2888b) on a red-tinted background (#0c0304).

Color palette

TokenLightDark
Background
#fbf8f8snow
#0c0304black
Foreground
#100505black
#f9f6f6whitesmoke
Card
#fbf8f8snow
#0c0304black
Card foreground
#100505black
#f9f6f6whitesmoke
Popover
#fbf8f8snow
#0c0304black
Popover foreground
#100505black
#f9f6f6whitesmoke
Primary
#e2888blightcoral
#e2888blightcoral
Primary foreground
#2d0b0cblack
#2d0b0cblack
Secondary
#88e2dfskyblue
#88e2dfskyblue
Secondary foreground
#0b2d2cdarkslategray
#0b2d2cdarkslategray
Muted
#d7eae9gainsboro
#152827black
Muted foreground
#5b5d5ddimgray
#a2a4a4darkgray
Accent
#88e2dfskyblue
#88e2dfskyblue
Accent foreground
#0b2d2cdarkslategray
#0b2d2cdarkslategray
Destructive
#9c410dsaddlebrown
#f08242coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2888blightcoral
#e2888blightcoral

Contrast

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

Light mode
Text on background19.07:1AAA
Text on card19.07:1AAA
Primary button6.97:1AA
Secondary button9.82:1AAA
Muted text5.29:1AA
Accent9.82:1AAA
Destructive6.62:1AA
Dark mode
Text on background18.94:1AAA
Text on card18.94:1AAA
Primary button6.97:1AA
Secondary button9.82:1AAA
Muted text6.15:1AA
Accent9.82:1AAA
Destructive7.96:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.003 14.852);
  --foreground: oklch(0.133 0.022 17.562);
  --muted: oklch(0.922 0.019 194.398);
  --muted-foreground: oklch(0.476 0.002 194.698);
  --popover: oklch(0.983 0.003 14.852);
  --popover-foreground: oklch(0.133 0.022 17.562);
  --card: oklch(0.983 0.003 14.852);
  --card-foreground: oklch(0.133 0.022 17.562);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.722 0.111 18.029);
  --primary-foreground: oklch(0.209 0.056 21.463);
  --secondary: oklch(0.856 0.087 192.907);
  --secondary-foreground: oklch(0.273 0.039 192.012);
  --accent: oklch(0.856 0.087 192.907);
  --accent-foreground: oklch(0.273 0.039 192.012);
  --destructive: oklch(0.49 0.134 44.64);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.722 0.111 18.029);
  --chart-1: oklch(0.722 0.111 18.029);
  --chart-2: oklch(0.856 0.087 192.907);
  --chart-3: oklch(0.856 0.087 192.907);
  --chart-4: oklch(0.87 0.079 193.107);
  --chart-5: oklch(0.721 0.116 18.23);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.021 17.689);
  --foreground: oklch(0.975 0.003 14.853);
  --muted: oklch(0.26 0.024 193.067);
  --muted-foreground: oklch(0.718 0.002 194.735);
  --popover: oklch(0.119 0.021 17.689);
  --popover-foreground: oklch(0.975 0.003 14.853);
  --card: oklch(0.119 0.021 17.689);
  --card-foreground: oklch(0.975 0.003 14.853);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.722 0.111 18.029);
  --primary-foreground: oklch(0.209 0.056 21.463);
  --secondary: oklch(0.856 0.087 192.907);
  --secondary-foreground: oklch(0.273 0.039 192.012);
  --accent: oklch(0.856 0.087 192.907);
  --accent-foreground: oklch(0.273 0.039 192.012);
  --destructive: oklch(0.717 0.155 48.374);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.722 0.111 18.029);
  --chart-1: oklch(0.722 0.111 18.029);
  --chart-2: oklch(0.856 0.087 192.907);
  --chart-3: oklch(0.856 0.087 192.907);
  --chart-4: oklch(0.87 0.079 193.107);
  --chart-5: oklch(0.721 0.116 18.23);
}