Warning for shadcn/ui

Warning is a shadcn/ui theme built around a light green primary color (#c6debf) with light green accents (#bfdec7). The light mode uses a neutral background (#fcfefb). Dark mode keeps the light green primary (#c6debf) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfefbwhite
#000000black
Foreground
#091306black
#fcfdfcwhite
Card
#f8fdf7mintcream
#030303black
Card foreground
#070f05black
#ffffffwhite
Popover
#f8fdf7mintcream
#030303black
Popover foreground
#070f05black
#ffffffwhite
Primary
#c6debflightgrey
#c6debflightgrey
Primary foreground
#2c4724darkslategray
#2c4724darkslategray
Secondary
#d6debflightgrey
#d6debflightgrey
Secondary foreground
#3e4724darkolivegreen
#3e4724darkolivegreen
Muted
#f2f5ealinen
#12150ablack
Muted foreground
#585c4ddarkolivegreen
#aeb2a3darkgray
Accent
#bfdec7lightgrey
#bfdec7lightgrey
Accent foreground
#24472edarkslategray
#24472edarkslategray
Destructive
#d83803orangered
#ec3e04orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c6debflightgrey
#c6debflightgrey

Contrast

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

Light mode
Text on background18.67:1AAA
Text on card18.86:1AAA
Primary button7.18:1AAA
Secondary button7.06:1AAA
Muted text6.23:1AA
Accent7.19:1AAA
Destructive4.67:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.67:1AAA
Primary button7.18:1AAA
Secondary button7.06:1AAA
Muted text8.55:1AAA
Accent7.19:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 138.335);
  --foreground: oklch(0.173 0.031 137.915);
  --muted: oklch(0.965 0.014 118.821);
  --muted-foreground: oklch(0.465 0.024 119.484);
  --popover: oklch(0.988 0.009 138.339);
  --popover-foreground: oklch(0.158 0.026 137.306);
  --card: oklch(0.988 0.009 138.339);
  --card-foreground: oklch(0.158 0.026 137.306);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.875 0.049 138.393);
  --primary-foreground: oklch(0.366 0.065 138.669);
  --secondary: oklch(0.886 0.042 119.406);
  --secondary-foreground: oklch(0.379 0.055 121.287);
  --accent: oklch(0.872 0.045 153.575);
  --accent-foreground: oklch(0.363 0.059 151.11);
  --destructive: oklch(0.582 0.202 35.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.875 0.049 138.393);
  --chart-1: oklch(0.875 0.049 138.393);
  --chart-2: oklch(0.886 0.042 119.406);
  --chart-3: oklch(0.872 0.045 153.575);
  --chart-4: oklch(0.904 0.036 119.256);
  --chart-5: oklch(0.877 0.054 138.4);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 138.332);
  --muted: oklch(0.187 0.02 120.549);
  --muted-foreground: oklch(0.757 0.022 119.066);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.875 0.049 138.393);
  --primary-foreground: oklch(0.366 0.065 138.669);
  --secondary: oklch(0.886 0.042 119.406);
  --secondary-foreground: oklch(0.379 0.055 121.287);
  --accent: oklch(0.872 0.045 153.575);
  --accent-foreground: oklch(0.363 0.059 151.11);
  --destructive: oklch(0.622 0.217 34.888);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.875 0.049 138.393);
  --chart-1: oklch(0.875 0.049 138.393);
  --chart-2: oklch(0.886 0.042 119.406);
  --chart-3: oklch(0.872 0.045 153.575);
  --chart-4: oklch(0.904 0.036 119.256);
  --chart-5: oklch(0.877 0.054 138.4);
}