Guard is a shadcn/ui theme built around a blue primary color (#87b3ed) with neutral gray accents (#cac4c4). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the blue primary (#87b3ed) on a blue-tinted background (#05070b).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f9fdghostwhite | #05070bblack |
| Foreground | #030911black | #f9fafbghostwhite |
| Card | #f7f9fdghostwhite | #05070bblack |
| Card foreground | #030911black | #f9fafbghostwhite |
| Popover | #f7f9fdghostwhite | #05070bblack |
| Popover foreground | #030911black | #f9fafbghostwhite |
| Primary | #87b3edskyblue | #87b3edskyblue |
| Primary foreground | #091e3amidnightblue | #091e3amidnightblue |
| Secondary | #d9d9d9gainsboro | #212830darkslategray |
| Secondary foreground | #404040darkslategray | #b7c0cdsilver |
| Muted | #f4f1f1whitesmoke | #0b0d0eblack |
| Muted foreground | #4f4f4fdarkslategray | #b0b0b0darkgray |
| Accent | #cac4c4silver | #313e4edarkslategray |
| Accent foreground | #312b2bdarkslategray | #d0d8e2gainsboro |
| Destructive | #d24314chocolate | #e54915orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #87b3edskyblue | #87b3edskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.00:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 7.28:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 4.60:1 | AA |
| Text on background | 19.28:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 8.99:1 | AAA |
| Accent | 7.57:1 | AAA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Guard in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 254.984);
--foreground: oklch(0.138 0.022 248.681);
--muted: oklch(0.96 0.003 17.21);
--muted-foreground: oklch(0.428 0 180);
--popover: oklch(0.983 0.005 254.984);
--popover-foreground: oklch(0.138 0.022 248.681);
--card: oklch(0.983 0.005 254.984);
--card-foreground: oklch(0.138 0.022 248.681);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.758 0.096 255.397);
--primary-foreground: oklch(0.235 0.06 256.245);
--secondary: oklch(0.885 0 180);
--secondary-foreground: oklch(0.371 0 168.69);
--accent: oklch(0.824 0.008 17.309);
--accent-foreground: oklch(0.296 0.008 17.618);
--destructive: oklch(0.583 0.187 36.599);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.758 0.096 255.397);
--chart-1: oklch(0.758 0.096 255.397);
--chart-2: oklch(0.885 0 180);
--chart-3: oklch(0.824 0.008 17.309);
--chart-4: oklch(0.908 0 180);
--chart-5: oklch(0.757 0.1 255.415);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.01 249.451);
--foreground: oklch(0.984 0.002 254.964);
--muted: oklch(0.156 0.004 255.076);
--muted-foreground: oklch(0.757 0 180);
--popover: oklch(0.128 0.01 249.451);
--popover-foreground: oklch(0.984 0.002 254.964);
--card: oklch(0.128 0.01 249.451);
--card-foreground: oklch(0.984 0.002 254.964);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.758 0.096 255.397);
--primary-foreground: oklch(0.235 0.06 256.245);
--secondary: oklch(0.274 0.018 255.216);
--secondary-foreground: oklch(0.805 0.021 255.078);
--accent: oklch(0.359 0.033 255.294);
--accent-foreground: oklch(0.878 0.016 255.046);
--destructive: oklch(0.621 0.2 36.515);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.758 0.096 255.397);
--chart-1: oklch(0.758 0.096 255.397);
--chart-2: oklch(0.274 0.018 255.216);
--chart-3: oklch(0.359 0.033 255.294);
--chart-4: oklch(0.303 0.021 255.224);
--chart-5: oklch(0.757 0.1 255.415);
}