Town is a shadcn/ui theme built around a muted light blue primary color (#ccd9e0) with muted light blue accents (#c3d2da). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light blue primary (#ccd9e0) on a blue-tinted background (#04090c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04090cblack |
| Foreground | #060f14black | #fcfdfdwhite |
| Card | #fcfcfcsnow | #050c10black |
| Card foreground | #050c10black | #ffffffwhite |
| Popover | #ffffffwhite | #04090cblack |
| Popover foreground | #060f14black | #fcfdfdwhite |
| Primary | #ccd9e0lightgrey | #ccd9e0lightgrey |
| Primary foreground | #2e414ddarkslategray | #2e414ddarkslategray |
| Secondary | #dee4e7gainsboro | #303436darkslategray |
| Secondary foreground | #3e4d56darkslategray | #c9cdcflightgrey |
| Muted | #d6e0e5gainsboro | #1a2329black |
| Muted foreground | #3e4a51darkslategray | #aebac1silver |
| Accent | #c3d2dalightgrey | #3d4a52darkslategray |
| Accent foreground | #293942darkslategray | #dce2e5gainsboro |
| Destructive | #ab0e03darkred | #fc2c1dorangered |
| Destructive foreground | #ffe3e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ccd9e0lightgrey | #ccd9e0lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.33:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 7.35:1 | AAA |
| Secondary button | 6.82:1 | AA |
| Muted text | 6.79:1 | AA |
| Accent | 7.68:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 19.66:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 7.35:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 8.04:1 | AAA |
| Accent | 6.96:1 | AA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Town in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.16 0.018 232.949);
--muted: oklch(0.901 0.013 232.785);
--muted-foreground: oklch(0.401 0.019 233.329);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.16 0.018 232.949);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.147 0.016 230.56);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.877 0.017 232.867);
--primary-foreground: oklch(0.365 0.031 234.152);
--secondary: oklch(0.916 0.008 232.697);
--secondary-foreground: oklch(0.411 0.024 233.535);
--accent: oklch(0.854 0.019 232.907);
--accent-foreground: oklch(0.334 0.026 233.952);
--destructive: oklch(0.47 0.186 29.954);
--destructive-foreground: oklch(0.937 0.031 22.607);
--ring: oklch(0.877 0.017 232.867);
--chart-1: oklch(0.877 0.017 232.867);
--chart-2: oklch(0.916 0.008 232.697);
--chart-3: oklch(0.854 0.019 232.907);
--chart-4: oklch(0.939 0.006 232.662);
--chart-5: oklch(0.878 0.019 232.904);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.013 226.886);
--foreground: oklch(0.992 0.001 232.59);
--muted: oklch(0.25 0.017 233.766);
--muted-foreground: oklch(0.782 0.016 232.883);
--popover: oklch(0.133 0.013 226.886);
--popover-foreground: oklch(0.992 0.001 232.59);
--card: oklch(0.147 0.015 230.604);
--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.877 0.017 232.867);
--primary-foreground: oklch(0.365 0.031 234.152);
--secondary: oklch(0.321 0.007 232.883);
--secondary-foreground: oklch(0.845 0.005 232.668);
--accent: oklch(0.401 0.022 233.461);
--accent-foreground: oklch(0.908 0.008 232.701);
--destructive: oklch(0.637 0.24 29.616);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.877 0.017 232.867);
--chart-1: oklch(0.877 0.017 232.867);
--chart-2: oklch(0.321 0.007 232.883);
--chart-3: oklch(0.401 0.022 233.461);
--chart-4: oklch(0.351 0.008 232.893);
--chart-5: oklch(0.878 0.019 232.904);
}