Tag is a shadcn/ui theme built around a neutral gray primary color (#808185) with muted blue accents (#a3b0c8). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#808185) on a neutral background (#030507).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030507black |
| Foreground | #030812black | #f8f9fbghostwhite |
| Card | #fcfcfcsnow | #05070ablack |
| Card foreground | #02060dblack | #fcfcfdwhite |
| Popover | #ffffffwhite | #030507black |
| Popover foreground | #030812black | #f8f9fbghostwhite |
| Primary | #808185gray | #808185gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #c4cad4lightgrey | #1d2025black |
| Secondary foreground | #2b313bdarkslategray | #b2b8c2silver |
| Muted | #eef1f7whitesmoke | #080b11black |
| Muted foreground | #575a60dimgray | #9fa2a8darkgray |
| Accent | #a3b0c8darkgray | #252b37darkslategray |
| Accent foreground | #151a23black | #bcc4d2lightsteelblue |
| Destructive | #a23901saddlebrown | #fe6716orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #808185gray | #808185gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.05:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 5.40:1 | AA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 6.10:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 6.69:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 5.40:1 | AA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 7.67:1 | AAA |
| Accent | 8.06:1 | AAA |
| Destructive | 7.15:1 | AAA |
Paste this into your globals.css to use Tag in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.132 0.026 254.741);
--muted: oklch(0.957 0.008 263.038);
--muted-foreground: oklch(0.468 0.01 263.001);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.132 0.026 254.741);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.12 0.022 252.561);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.604 0.005 263.037);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.836 0.016 263.01);
--secondary-foreground: oklch(0.31 0.021 262.806);
--accent: oklch(0.753 0.038 262.892);
--accent-foreground: oklch(0.217 0.02 262.672);
--destructive: oklch(0.49 0.15 41.257);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.604 0.005 263.037);
--chart-1: oklch(0.604 0.005 263.037);
--chart-2: oklch(0.836 0.016 263.01);
--chart-3: oklch(0.753 0.038 262.892);
--chart-4: oklch(0.861 0.014 263.02);
--chart-5: oklch(0.599 0.013 263.001);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.009 258.02);
--foreground: oklch(0.983 0.003 263.049);
--muted: oklch(0.151 0.013 262.19);
--muted-foreground: oklch(0.711 0.009 263.027);
--popover: oklch(0.11 0.009 258.02);
--popover-foreground: oklch(0.983 0.003 263.049);
--card: oklch(0.126 0.01 258.039);
--card-foreground: oklch(0.992 0.001 263.051);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.604 0.005 263.037);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.243 0.011 262.918);
--secondary-foreground: oklch(0.78 0.017 263.004);
--accent: oklch(0.289 0.023 262.743);
--accent-foreground: oklch(0.818 0.021 262.99);
--destructive: oklch(0.696 0.201 42.587);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.604 0.005 263.037);
--chart-1: oklch(0.604 0.005 263.037);
--chart-2: oklch(0.243 0.011 262.918);
--chart-3: oklch(0.289 0.023 262.743);
--chart-4: oklch(0.273 0.013 262.906);
--chart-5: oklch(0.599 0.013 263.001);
}