Alarming is a shadcn/ui theme built around a near-black primary color (#0a0a0a) with near-black accents (#0a0a0a). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0a0a0a) on a green-tinted background (#091005).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #091005black |
| Foreground | #0a1504black | #f7f9f5whitesmoke |
| Card | #ffffffwhite | #091005black |
| Card foreground | #0a1504black | #f7f9f5whitesmoke |
| Popover | #ffffffwhite | #091005black |
| Popover foreground | #0a1504black | #f7f9f5whitesmoke |
| Primary | #0a0a0ablack | #0a0a0ablack |
| Primary foreground | #a3a4a2darkgray | #a3a4a2darkgray |
| Secondary | #0a0a0ablack | #0a0a0ablack |
| Secondary foreground | #a3a2a4darkgray | #a3a2a4darkgray |
| Muted | #f0eff0whitesmoke | #100f10black |
| Muted foreground | #4d3f55darkslategray | #b8aac0silver |
| Accent | #0a0a0ablack | #0a0a0ablack |
| Accent foreground | #a3a2a4darkgray | #a3a2a4darkgray |
| Destructive | #721b04maroon | #f85325tomato |
| Destructive foreground | #fcbdablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a0a0ablack | #0a0a0ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.71:1 | AAA |
| Text on card | 18.71:1 | AAA |
| Primary button | 7.89:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 8.48:1 | AAA |
| Accent | 7.78:1 | AAA |
| Destructive | 6.93:1 | AA |
| Text on background | 18.27:1 | AAA |
| Text on card | 18.27:1 | AAA |
| Primary button | 7.89:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 8.72:1 | AAA |
| Accent | 7.78:1 | AAA |
| Destructive | 3.35:1 | AA Large |
Paste this into your globals.css to use Alarming in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.181 0.038 134.015);
--muted: oklch(0.953 0.002 313.591);
--muted-foreground: oklch(0.391 0.041 312.959);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.181 0.038 134.015);
--card: oklch(1 0 180);
--card-foreground: oklch(0.181 0.038 134.015);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.146 0 133.576);
--primary-foreground: oklch(0.718 0.003 133.631);
--secondary: oklch(0.146 0 313.636);
--secondary-foreground: oklch(0.715 0.003 313.58);
--accent: oklch(0.146 0 313.636);
--accent-foreground: oklch(0.715 0.003 313.58);
--destructive: oklch(0.366 0.124 35.076);
--destructive-foreground: oklch(0.851 0.078 36.029);
--ring: oklch(0.146 0 133.576);
--chart-1: oklch(0.146 0 133.576);
--chart-2: oklch(0.146 0 313.636);
--chart-3: oklch(0.146 0 313.636);
--chart-4: oklch(0.181 0.001 313.578);
--chart-5: oklch(0.147 0.002 133.611);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.026 133.133);
--foreground: oklch(0.98 0.006 133.642);
--muted: oklch(0.168 0.004 313.477);
--muted-foreground: oklch(0.757 0.035 313.323);
--popover: oklch(0.16 0.026 133.133);
--popover-foreground: oklch(0.98 0.006 133.642);
--card: oklch(0.16 0.026 133.133);
--card-foreground: oklch(0.98 0.006 133.642);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.146 0 133.576);
--primary-foreground: oklch(0.718 0.003 133.631);
--secondary: oklch(0.146 0 313.636);
--secondary-foreground: oklch(0.715 0.003 313.58);
--accent: oklch(0.146 0 313.636);
--accent-foreground: oklch(0.715 0.003 313.58);
--destructive: oklch(0.664 0.209 35.494);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.146 0 133.576);
--chart-1: oklch(0.146 0 133.576);
--chart-2: oklch(0.146 0 313.636);
--chart-3: oklch(0.146 0 313.636);
--chart-4: oklch(0.181 0.001 313.578);
--chart-5: oklch(0.147 0.002 133.611);
}