Urn is a shadcn/ui theme built around a muted deep blue primary color (#0e1216) with muted blue accents (#b0bfcf). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the muted deep blue primary (#0e1216) on a neutral background (#030507).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfdwhite | #030507black |
| Foreground | #03070dblack | #f8fafcghostwhite |
| Card | #f8fafcghostwhite | #04080bblack |
| Card foreground | #020508black | #fbfcfdwhite |
| Popover | #fbfcfdwhite | #030507black |
| Popover foreground | #03070dblack | #f8fafcghostwhite |
| Primary | #0e1216black | #0e1216black |
| Primary foreground | #99aabddarkgray | #99aabddarkgray |
| Secondary | #cbd1d8lightgrey | #1e2124black |
| Secondary foreground | #303840darkslategray | #b3bac1silver |
| Muted | #d0dbe6gainsboro | #19232fdarkslategray |
| Muted foreground | #394047darkslategray | #b8bfc6silver |
| Accent | #b0bfcflightsteelblue | #27303adarkslategray |
| Accent foreground | #1d262fdarkslategray | #bfc9d4lightsteelblue |
| Destructive | #d52c07firebrick | #f84c25orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0e1216black | #0e1216black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 7.48:1 | AAA |
| Accent | 8.15:1 | AAA |
| Destructive | 5.01:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 8.53:1 | AAA |
| Accent | 7.96:1 | AAA |
| Destructive | 3.46:1 | AA Large |
Paste this into your globals.css to use Urn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 249.667);
--foreground: oklch(0.127 0.017 241.193);
--muted: oklch(0.887 0.02 249.851);
--muted-foreground: oklch(0.366 0.015 250.022);
--popover: oklch(0.992 0.002 249.667);
--popover-foreground: oklch(0.127 0.017 241.193);
--card: oklch(0.984 0.004 249.684);
--card-foreground: oklch(0.111 0.014 240.304);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.179 0.01 250.13);
--primary-foreground: oklch(0.732 0.033 250.043);
--secondary: oklch(0.857 0.011 249.774);
--secondary-foreground: oklch(0.336 0.018 250.108);
--accent: oklch(0.797 0.028 249.96);
--accent-foreground: oklch(0.264 0.022 250.365);
--destructive: oklch(0.566 0.208 32.643);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.179 0.01 250.13);
--chart-1: oklch(0.179 0.01 250.13);
--chart-2: oklch(0.857 0.011 249.774);
--chart-3: oklch(0.797 0.028 249.96);
--chart-4: oklch(0.882 0.009 249.75);
--chart-5: oklch(0.179 0.011 250.197);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.113 0.009 243.675);
--foreground: oklch(0.984 0.004 249.684);
--muted: oklch(0.253 0.027 250.569);
--muted-foreground: oklch(0.802 0.013 249.796);
--popover: oklch(0.113 0.009 243.675);
--popover-foreground: oklch(0.984 0.004 249.684);
--card: oklch(0.129 0.011 243.811);
--card-foreground: oklch(0.992 0.002 249.667);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.179 0.01 250.13);
--primary-foreground: oklch(0.732 0.033 250.043);
--secondary: oklch(0.246 0.008 249.943);
--secondary-foreground: oklch(0.786 0.013 249.797);
--accent: oklch(0.305 0.021 250.249);
--accent-foreground: oklch(0.832 0.018 249.85);
--destructive: oklch(0.657 0.215 33.813);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.179 0.01 250.13);
--chart-1: oklch(0.179 0.01 250.13);
--chart-2: oklch(0.246 0.008 249.943);
--chart-3: oklch(0.305 0.021 250.249);
--chart-4: oklch(0.277 0.01 249.959);
--chart-5: oklch(0.179 0.011 250.197);
}