Alert is a shadcn/ui theme built around a vivid light red primary color (#fef2f1) with vivid light cyan accents (#f1fdfe). The light mode uses a neutral background (#fbf9f8). Dark mode keeps the vivid light red primary (#fef2f1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf9f8snow | #000000black |
| Foreground | #110403black | #fdfcfcsnow |
| Card | #fbf9f8snow | #000000black |
| Card foreground | #110403black | #fdfcfcsnow |
| Popover | #fbf9f8snow | #000000black |
| Popover foreground | #110403black | #fdfcfcsnow |
| Primary | #fef2f1seashell | #fef2f1seashell |
| Primary foreground | #b01a0cfirebrick | #b01a0cfirebrick |
| Secondary | #f1fdfeazure | #f1fdfeazure |
| Secondary foreground | #064b51darkslategray | #064b51darkslategray |
| Muted | #ebf4f4whitesmoke | #0b1314black |
| Muted foreground | #52696bdimgray | #94abaddarkgray |
| Accent | #f1fdfeazure | #f1fdfeazure |
| Accent foreground | #064b51darkslategray | #064b51darkslategray |
| Destructive | #6c1b09maroon | #ee5f3ftomato |
| Destructive foreground | #f8bdaflightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fef2f1seashell | #fef2f1seashell |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.16:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 6.38:1 | AA |
| Secondary button | 9.46:1 | AAA |
| Muted text | 5.21:1 | AA |
| Accent | 9.46:1 | AAA |
| Destructive | 7.15:1 | AAA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.38:1 | AA |
| Secondary button | 9.46:1 | AAA |
| Muted text | 7.77:1 | AAA |
| Accent | 9.46:1 | AAA |
| Destructive | 6.34:1 | AA |
Paste this into your globals.css to use Alert in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.003 23.612);
--foreground: oklch(0.133 0.028 29.905);
--muted: oklch(0.96 0.009 203.496);
--muted-foreground: oklch(0.502 0.027 203.195);
--popover: oklch(0.983 0.003 23.612);
--popover-foreground: oklch(0.133 0.028 29.905);
--card: oklch(0.983 0.003 23.612);
--card-foreground: oklch(0.133 0.028 29.905);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.97 0.013 23.718);
--primary-foreground: oklch(0.487 0.185 30.089);
--secondary: oklch(0.985 0.013 203.464);
--secondary-foreground: oklch(0.377 0.062 204.843);
--accent: oklch(0.985 0.013 203.464);
--accent-foreground: oklch(0.377 0.062 204.843);
--destructive: oklch(0.355 0.117 33.789);
--destructive-foreground: oklch(0.848 0.072 32.934);
--ring: oklch(0.97 0.013 23.718);
--chart-1: oklch(0.97 0.013 23.718);
--chart-2: oklch(0.985 0.013 203.464);
--chart-3: oklch(0.985 0.013 203.464);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.97 0.014 23.723);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 23.597);
--muted: oklch(0.179 0.013 203.136);
--muted-foreground: oklch(0.724 0.025 203.3);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.002 23.597);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.002 23.597);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.97 0.013 23.718);
--primary-foreground: oklch(0.487 0.185 30.089);
--secondary: oklch(0.985 0.013 203.464);
--secondary-foreground: oklch(0.377 0.062 204.843);
--accent: oklch(0.985 0.013 203.464);
--accent-foreground: oklch(0.377 0.062 204.843);
--destructive: oklch(0.665 0.184 34.153);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.97 0.013 23.718);
--chart-1: oklch(0.97 0.013 23.718);
--chart-2: oklch(0.985 0.013 203.464);
--chart-3: oklch(0.985 0.013 203.464);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.97 0.014 23.723);
}