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.
Anesthesiology is a shadcn/ui theme built around a vivid deep teal primary color (#05664c) with neutral gray accents (#e2e4e4). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid deep teal primary (#05664c) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #030706black |
| Foreground | #010403black | #f5faf8mintcream |
| Card | #fbfefdwhite | #030706black |
| Card foreground | #010403black | #f5faf8mintcream |
| Popover | #fbfefdwhite | #030706black |
| Popover foreground | #010403black | #f5faf8mintcream |
| Primary | #05664cdarkslategray | #05664cdarkslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e2e4e4gainsboro | #212c29darkslategray |
| Secondary foreground | #464e4cdarkslategray | #b6c9c4silver |
| Muted | #e0f0eclavender | #0f1f1bblack |
| Muted foreground | #49504edarkslategray | #afb6b4darkgray |
| Accent | #e2e4e4gainsboro | #212c29darkslategray |
| Accent foreground | #464e4cdarkslategray | #b6c9c4silver |
| Destructive | #c04b07chocolate | #dd5608chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #05664cdarkslategray | #05664cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 6.94:1 | AA |
| Secondary button | 6.71:1 | AA |
| Muted text | 7.01:1 | AAA |
| Accent | 6.71:1 | AA |
| Destructive | 4.94:1 | AA |
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 6.94:1 | AA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 8.27:1 | AAA |
| Accent | 8.34:1 | AAA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Anesthesiology in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 178.689);
--foreground: oklch(0.1 0.013 178.897);
--muted: oklch(0.942 0.017 178.244);
--muted-foreground: oklch(0.425 0.01 178.066);
--popover: oklch(0.994 0.003 178.689);
--popover-foreground: oklch(0.1 0.013 178.897);
--card: oklch(0.994 0.003 178.689);
--card-foreground: oklch(0.1 0.013 178.897);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.455 0.091 167.605);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.918 0.003 178.684);
--secondary-foreground: oklch(0.415 0.01 178.07);
--accent: oklch(0.918 0.003 178.684);
--accent-foreground: oklch(0.415 0.01 178.07);
--destructive: oklch(0.562 0.164 42.8);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.455 0.091 167.605);
--chart-1: oklch(0.455 0.091 167.605);
--chart-2: oklch(0.918 0.003 178.684);
--chart-3: oklch(0.918 0.003 178.684);
--chart-4: oklch(0.94 0.002 178.713);
--chart-5: oklch(0.459 0.093 167.307);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.01 178.855);
--foreground: oklch(0.98 0.005 178.623);
--muted: oklch(0.223 0.023 175.3);
--muted-foreground: oklch(0.771 0.009 178.444);
--popover: oklch(0.122 0.01 178.855);
--popover-foreground: oklch(0.98 0.005 178.623);
--card: oklch(0.122 0.01 178.855);
--card-foreground: oklch(0.98 0.005 178.623);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.455 0.091 167.605);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.281 0.017 176.944);
--secondary-foreground: oklch(0.819 0.022 177.993);
--accent: oklch(0.281 0.017 176.944);
--accent-foreground: oklch(0.819 0.022 177.993);
--destructive: oklch(0.624 0.184 42.479);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.455 0.091 167.605);
--chart-1: oklch(0.455 0.091 167.605);
--chart-2: oklch(0.281 0.017 176.944);
--chart-3: oklch(0.281 0.017 176.944);
--chart-4: oklch(0.314 0.019 176.859);
--chart-5: oklch(0.459 0.093 167.307);
}