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

Go to generator

10000+Themes for shadcn/ui

Special for shadcn/ui

Special is a shadcn/ui theme built around a deep blue primary color (#101a56) with muted light blue accents (#c2c5d6). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#101a56) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020308black
#f5f5fawhitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#010104black
#f8f9fcghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#020308black
#f5f5fawhitesmoke
Primary
#101a56midnightblue
#101a56midnightblue
Primary foreground
#a9b3eflightsteelblue
#a9b3eflightsteelblue
Secondary
#c2c5d6lightsteelblue
#313235darkslategray
Secondary foreground
#292c3ddarkslategray
#cacbcelightgrey
Muted
#dedee3gainsboro
#1c1d21black
Muted foreground
#54586ddimgray
#9295abdarkgray
Accent
#c2c5d6lightsteelblue
#313235darkslategray
Accent foreground
#292c3ddarkslategray
#cacbcelightgrey
Destructive
#722a09saddlebrown
#f17941coral
Destructive foreground
#f9c9b3peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#101a56midnightblue
#101a56midnightblue

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.39:1AAA
Primary button7.93:1AAA
Secondary button8.06:1AAA
Muted text5.24:1AA
Accent8.06:1AAA
Destructive6.85:1AA
Dark mode
Text on background19.32:1AAA
Text on card19.64:1AAA
Primary button7.93:1AAA
Secondary button7.90:1AAA
Muted text5.71:1AA
Accent7.90:1AAA
Destructive7.53:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.02 270.577);
  --muted: oklch(0.903 0.006 278.215);
  --muted-foreground: oklch(0.466 0.035 277.11);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.02 270.577);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.078 0.016 270.577);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.256 0.108 269.227);
  --primary-foreground: oklch(0.781 0.086 276.468);
  --secondary: oklch(0.827 0.023 277.898);
  --secondary-foreground: oklch(0.299 0.03 276.642);
  --accent: oklch(0.827 0.023 277.898);
  --accent-foreground: oklch(0.299 0.03 276.642);
  --destructive: oklch(0.385 0.11 41.399);
  --destructive-foreground: oklch(0.873 0.063 46.177);
  --ring: oklch(0.256 0.108 269.227);
  --chart-1: oklch(0.256 0.108 269.227);
  --chart-2: oklch(0.827 0.023 277.898);
  --chart-3: oklch(0.827 0.023 277.898);
  --chart-4: oklch(0.853 0.02 277.978);
  --chart-5: oklch(0.255 0.112 268.743);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.972 0.006 278.224);
  --muted: oklch(0.23 0.009 277.717);
  --muted-foreground: oklch(0.675 0.032 277.591);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.972 0.006 278.224);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.981 0.004 278.256);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.256 0.108 269.227);
  --primary-foreground: oklch(0.781 0.086 276.468);
  --secondary: oklch(0.317 0.005 278.104);
  --secondary-foreground: oklch(0.842 0.004 278.256);
  --accent: oklch(0.317 0.005 278.104);
  --accent-foreground: oklch(0.842 0.004 278.256);
  --destructive: oklch(0.705 0.163 43.826);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.256 0.108 269.227);
  --chart-1: oklch(0.256 0.108 269.227);
  --chart-2: oklch(0.317 0.005 278.104);
  --chart-3: oklch(0.317 0.005 278.104);
  --chart-4: oklch(0.347 0.005 278.097);
  --chart-5: oklch(0.255 0.112 268.743);
}