Generate feedback colors (success, warning, error, and info) for shadcn/ui
Go to generatorUsed by 4k+ developers. Want me to build your product next? Let's work together.
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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.60:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 5.24:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 5.71:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 7.53:1 | AAA |
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);
}