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

Go to generator

10000+Themes for shadcn/ui

Impure for shadcn/ui

Impure is a shadcn/ui theme built around a near-white primary color (#ffffff) with near-white accents (#ffffff). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#0b0404).

Color palette

TokenLightDark
Background
#fcf8f8snow
#0b0404black
Foreground
#0d0303black
#fdfcfcsnow
Card
#fbf4f4lavenderblush
#0f0606black
Card foreground
#090202black
#ffffffwhite
Popover
#fcf8f8snow
#0b0404black
Popover foreground
#0d0303black
#fdfcfcsnow
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#ffffffwhite
#ffffffwhite
Secondary foreground
#333333darkslategray
#333333darkslategray
Muted
#f0e6e6linen
#1a0f0fblack
Muted foreground
#6f5d5ddimgray
#a29090rosybrown
Accent
#ffffffwhite
#ffffffwhite
Accent foreground
#333333darkslategray
#333333darkslategray
Destructive
#bc1a15firebrick
#ea443etomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background19.28:1AAA
Text on card18.94:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text5.02:1AA
Accent12.63:1AAA
Destructive6.35:1AA
Dark mode
Text on background19.81:1AAA
Text on card20.05:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text6.18:1AA
Accent12.63:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 17.235);
  --foreground: oklch(0.116 0.026 21.871);
  --muted: oklch(0.931 0.011 17.356);
  --muted-foreground: oklch(0.496 0.024 17.989);
  --popover: oklch(0.982 0.005 17.235);
  --popover-foreground: oklch(0.116 0.026 21.871);
  --card: oklch(0.973 0.007 17.275);
  --card-foreground: oklch(0.101 0.022 21.811);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.51 0.195 28.765);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.016 19.559);
  --foreground: oklch(0.991 0.002 17.185);
  --muted: oklch(0.184 0.017 18.875);
  --muted-foreground: oklch(0.669 0.022 17.715);
  --popover: oklch(0.122 0.016 19.559);
  --popover-foreground: oklch(0.991 0.002 17.185);
  --card: oklch(0.135 0.018 19.686);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.627 0.203 26.856);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}