Alarmed is a shadcn/ui theme built around a neutral gray primary color (#c4c1bf) with muted light orange accents (#e5e0dc). The light mode uses a neutral background (#fefcfb). Dark mode keeps the neutral gray primary (#c4c1bf) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #040201black |
| Foreground | #150c04black | #fdfcfcsnow |
| Card | #fefcfbsnow | #040201black |
| Card foreground | #150c04black | #fdfcfcsnow |
| Popover | #fefcfbsnow | #040201black |
| Popover foreground | #150c04black | #fdfcfcsnow |
| Primary | #c4c1bfsilver | #c4c1bfsilver |
| Primary foreground | #2a2927darkslategray | #2a2927darkslategray |
| Secondary | #e5e0dcgainsboro | #26201cblack |
| Secondary foreground | #52463ddarkolivegreen | #c5b9afsilver |
| Muted | #e8ddd4gainsboro | #2b2017black |
| Muted foreground | #6f5f52dimgray | #ad9c90rosybrown |
| Accent | #e5e0dcgainsboro | #26201cblack |
| Accent foreground | #52463ddarkolivegreen | #c5b9afsilver |
| Destructive | #631509maroon | #ee563ftomato |
| Destructive foreground | #f7b1a6lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c4c1bfsilver | #c4c1bfsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.92:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 8.15:1 | AAA |
| Secondary button | 6.95:1 | AA |
| Muted text | 4.56:1 | AA |
| Accent | 6.95:1 | AA |
| Destructive | 7.22:1 | AAA |
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 8.15:1 | AAA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 8.33:1 | AAA |
| Destructive | 6.04:1 | AA |
Paste this into your globals.css to use Alarmed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 60.247);
--foreground: oklch(0.164 0.024 62.575);
--muted: oklch(0.903 0.017 60.024);
--muted-foreground: oklch(0.498 0.029 59.453);
--popover: oklch(0.993 0.003 60.247);
--popover-foreground: oklch(0.164 0.024 62.575);
--card: oklch(0.993 0.003 60.247);
--card-foreground: oklch(0.164 0.024 62.575);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.814 0.004 60.211);
--primary-foreground: oklch(0.281 0.004 60.101);
--secondary: oklch(0.909 0.008 60.165);
--secondary-foreground: oklch(0.404 0.022 59.491);
--accent: oklch(0.909 0.008 60.165);
--accent-foreground: oklch(0.404 0.022 59.491);
--destructive: oklch(0.329 0.113 31.684);
--destructive-foreground: oklch(0.823 0.085 28.805);
--ring: oklch(0.814 0.004 60.211);
--chart-1: oklch(0.814 0.004 60.211);
--chart-2: oklch(0.909 0.008 60.165);
--chart-3: oklch(0.909 0.008 60.165);
--chart-4: oklch(0.932 0.006 60.197);
--chart-5: oklch(0.814 0.008 60.157);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.093 0.01 68.787);
--foreground: oklch(0.993 0.001 60.272);
--muted: oklch(0.254 0.023 58.862);
--muted-foreground: oklch(0.704 0.027 59.759);
--popover: oklch(0.093 0.01 68.787);
--popover-foreground: oklch(0.993 0.001 60.272);
--card: oklch(0.093 0.01 68.787);
--card-foreground: oklch(0.993 0.001 60.272);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.814 0.004 60.211);
--primary-foreground: oklch(0.281 0.004 60.101);
--secondary: oklch(0.251 0.013 59.578);
--secondary-foreground: oklch(0.792 0.02 59.944);
--accent: oklch(0.251 0.013 59.578);
--accent-foreground: oklch(0.792 0.02 59.944);
--destructive: oklch(0.654 0.192 31.362);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.814 0.004 60.211);
--chart-1: oklch(0.814 0.004 60.211);
--chart-2: oklch(0.251 0.013 59.578);
--chart-3: oklch(0.251 0.013 59.578);
--chart-4: oklch(0.283 0.015 59.534);
--chart-5: oklch(0.814 0.008 60.157);
}