Urn is a shadcn/ui theme built around a muted teal primary color (#9bb5b1) with muted light teal accents (#d3dedd). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#9bb5b1) on a teal-tinted background (#040b0a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b0ablack |
| Foreground | #03120fblack | #ffffffwhite |
| Card | #ffffffwhite | #040b0ablack |
| Card foreground | #03120fblack | #ffffffwhite |
| Popover | #ffffffwhite | #040b0ablack |
| Popover foreground | #03120fblack | #ffffffwhite |
| Primary | #9bb5b1darkgray | #9bb5b1darkgray |
| Primary foreground | #0d1211black | #0d1211black |
| Secondary | #d3deddgainsboro | #1f2827darkslategray |
| Secondary foreground | #364946darkslategray | #b4c5c2silver |
| Muted | #e2eeeclavender | #111d1bblack |
| Muted foreground | #415854darkslategray | #a7bebasilver |
| Accent | #d3deddgainsboro | #1f2827darkslategray |
| Accent foreground | #364946darkslategray | #b4c5c2silver |
| Destructive | #b62c11firebrick | #ed5d40tomato |
| Destructive foreground | #fffbfasnow | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9bb5b1darkgray | #9bb5b1darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.13:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 8.69:1 | AAA |
| Secondary button | 6.96:1 | AA |
| Muted text | 6.44:1 | AA |
| Accent | 6.96:1 | AA |
| Destructive | 6.07:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 8.69:1 | AAA |
| Secondary button | 8.38:1 | AAA |
| Muted text | 8.79:1 | AAA |
| Accent | 8.38:1 | AAA |
| Destructive | 6.23:1 | AA |
Paste this into your globals.css to use Urn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.165 0.024 182.511);
--muted: oklch(0.94 0.014 185.06);
--muted-foreground: oklch(0.44 0.029 183.641);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.165 0.024 182.511);
--card: oklch(1 0 180);
--card-foreground: oklch(0.165 0.024 182.511);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.753 0.029 184.408);
--primary-foreground: oklch(0.175 0.007 184.31);
--secondary: oklch(0.893 0.013 185.078);
--secondary-foreground: oklch(0.389 0.025 183.693);
--accent: oklch(0.893 0.013 185.078);
--accent-foreground: oklch(0.389 0.025 183.693);
--destructive: oklch(0.511 0.178 32.802);
--destructive-foreground: oklch(0.991 0.004 31.05);
--ring: oklch(0.753 0.029 184.408);
--chart-1: oklch(0.753 0.029 184.408);
--chart-2: oklch(0.893 0.013 185.078);
--chart-3: oklch(0.893 0.013 185.078);
--chart-4: oklch(0.914 0.01 185.161);
--chart-5: oklch(0.758 0.035 184.207);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.012 185.041);
--foreground: oklch(1 0 180);
--muted: oklch(0.22 0.019 183.014);
--muted-foreground: oklch(0.783 0.026 184.574);
--popover: oklch(0.14 0.012 185.041);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.14 0.012 185.041);
--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.753 0.029 184.408);
--primary-foreground: oklch(0.175 0.007 184.31);
--secondary: oklch(0.269 0.013 184.1);
--secondary-foreground: oklch(0.81 0.019 184.82);
--accent: oklch(0.269 0.013 184.1);
--accent-foreground: oklch(0.81 0.019 184.82);
--destructive: oklch(0.66 0.185 33.166);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.753 0.029 184.408);
--chart-1: oklch(0.753 0.029 184.408);
--chart-2: oklch(0.269 0.013 184.1);
--chart-3: oklch(0.269 0.013 184.1);
--chart-4: oklch(0.302 0.016 184.032);
--chart-5: oklch(0.758 0.035 184.207);
}