Alarming is a shadcn/ui theme built around a deep teal primary color (#11413d) with deep blue accents (#112d41). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#11413d) on a teal-tinted background (#030c0b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030c0bblack |
| Foreground | #04100fblack | #ffffffwhite |
| Card | #ffffffwhite | #030c0bblack |
| Card foreground | #04100fblack | #ffffffwhite |
| Popover | #ffffffwhite | #030c0bblack |
| Popover foreground | #04100fblack | #ffffffwhite |
| Primary | #11413ddarkslategray | #11413ddarkslategray |
| Primary foreground | #4dd1c6mediumturquoise | #4dd1c6mediumturquoise |
| Secondary | #114125darkslategray | #114125darkslategray |
| Secondary foreground | #9ee6bcpalegreen | #9ee6bcpalegreen |
| Muted | #e7e9e8lavender | #161817black |
| Muted foreground | #4f695adimgray | #96b0a1darkgray |
| Accent | #112d41darkslategray | #112d41darkslategray |
| Accent foreground | #9ec8e6lightsteelblue | #9ec8e6lightsteelblue |
| Destructive | #941010darkred | #e21818crimson |
| Destructive foreground | #fbdadamistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #11413ddarkslategray | #11413ddarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 4.92:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 4.79:1 | AA |
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.161 0.019 189.175);
--muted: oklch(0.932 0.003 160.936);
--muted-foreground: oklch(0.494 0.039 159.011);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.161 0.019 189.175);
--card: oklch(1 0 180);
--card-foreground: oklch(0.161 0.019 189.175);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.342 0.051 187.173);
--primary-foreground: oklch(0.786 0.115 187.297);
--secondary: oklch(0.334 0.071 153.916);
--secondary-foreground: oklch(0.866 0.093 158.147);
--accent: oklch(0.285 0.05 242.452);
--accent-foreground: oklch(0.812 0.062 239.584);
--destructive: oklch(0.425 0.164 27.975);
--destructive-foreground: oklch(0.916 0.037 17.844);
--ring: oklch(0.342 0.051 187.173);
--chart-1: oklch(0.342 0.051 187.173);
--chart-2: oklch(0.334 0.071 153.916);
--chart-3: oklch(0.285 0.05 242.452);
--chart-4: oklch(0.374 0.082 153.639);
--chart-5: oklch(0.345 0.053 187.011);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.016 189.924);
--foreground: oklch(1 0 180);
--muted: oklch(0.206 0.004 160.503);
--muted-foreground: oklch(0.733 0.036 159.819);
--popover: oklch(0.144 0.016 189.924);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.016 189.924);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.342 0.051 187.173);
--primary-foreground: oklch(0.786 0.115 187.297);
--secondary: oklch(0.334 0.071 153.916);
--secondary-foreground: oklch(0.866 0.093 158.147);
--accent: oklch(0.285 0.05 242.452);
--accent-foreground: oklch(0.812 0.062 239.584);
--destructive: oklch(0.58 0.228 28.328);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.342 0.051 187.173);
--chart-1: oklch(0.342 0.051 187.173);
--chart-2: oklch(0.334 0.071 153.916);
--chart-3: oklch(0.285 0.05 242.452);
--chart-4: oklch(0.374 0.082 153.639);
--chart-5: oklch(0.345 0.053 187.011);
}