Alarmed is a shadcn/ui theme built around a muted light red primary color (#d0c3c6) with muted light teal accents (#c3d0cd). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light red primary (#d0c3c6) on a red-tinted background (#0b0506).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0506black |
| Foreground | #000000black | #faf4f6whitesmoke |
| Card | #fcfcfcsnow | #0e0608black |
| Card foreground | #000000black | #fcf8f9snow |
| Popover | #fcfcfcsnow | #0e0608black |
| Popover foreground | #000000black | #fcf8f9snow |
| Primary | #d0c3c6silver | #d0c3c6silver |
| Primary foreground | #362b2ddarkslategray | #362b2ddarkslategray |
| Secondary | #c3d0cdlightgrey | #c3d0cdlightgrey |
| Secondary foreground | #2b3634darkslategray | #2b3634darkslategray |
| Muted | #e5ebealavender | #141a19black |
| Muted foreground | #616b69dimgray | #949e9cdarkgray |
| Accent | #c3d0cdlightgrey | #c3d0cdlightgrey |
| Accent foreground | #2b3634darkslategray | #2b3634darkslategray |
| Destructive | #5c160amaroon | #e9543atomato |
| Destructive foreground | #f5afa3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d0c3c6silver | #d0c3c6silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 4.57:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 7.32:1 | AAA |
| Text on background | 18.64:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 6.39:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 3.62:1 | AA Large |
Paste this into your globals.css to use Alarmed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.936 0.008 182.963);
--muted-foreground: oklch(0.519 0.013 182.496);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.829 0.015 3.665);
--primary-foreground: oklch(0.302 0.018 4.728);
--secondary: oklch(0.847 0.014 182.715);
--secondary-foreground: oklch(0.322 0.016 181.752);
--accent: oklch(0.847 0.014 182.715);
--accent-foreground: oklch(0.322 0.016 181.752);
--destructive: oklch(0.318 0.103 32.381);
--destructive-foreground: oklch(0.818 0.084 30.18);
--ring: oklch(0.829 0.015 3.665);
--chart-1: oklch(0.829 0.015 3.665);
--chart-2: oklch(0.847 0.014 182.715);
--chart-3: oklch(0.847 0.014 182.715);
--chart-4: oklch(0.869 0.012 182.795);
--chart-5: oklch(0.826 0.019 3.787);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.013 3.359);
--foreground: oklch(0.973 0.006 3.362);
--muted: oklch(0.212 0.011 181.752);
--muted-foreground: oklch(0.691 0.012 182.704);
--popover: oklch(0.137 0.016 4.215);
--popover-foreground: oklch(0.982 0.004 3.301);
--card: oklch(0.137 0.016 4.215);
--card-foreground: oklch(0.982 0.004 3.301);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.829 0.015 3.665);
--primary-foreground: oklch(0.302 0.018 4.728);
--secondary: oklch(0.847 0.014 182.715);
--secondary-foreground: oklch(0.322 0.016 181.752);
--accent: oklch(0.847 0.014 182.715);
--accent-foreground: oklch(0.322 0.016 181.752);
--destructive: oklch(0.643 0.189 32.294);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.829 0.015 3.665);
--chart-1: oklch(0.829 0.015 3.665);
--chart-2: oklch(0.847 0.014 182.715);
--chart-3: oklch(0.847 0.014 182.715);
--chart-4: oklch(0.869 0.012 182.795);
--chart-5: oklch(0.826 0.019 3.787);
}