Western is a shadcn/ui theme built around a neutral gray primary color (#5e5c55) with neutral gray accents (#55575e). The light mode uses a neutral background (#fdfcf6). Dark mode keeps the neutral gray primary (#5e5c55) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf6snow | #000000black |
| Foreground | #161203black | #fdfdfcwhite |
| Card | #fdfcf6snow | #000000black |
| Card foreground | #161203black | #fdfdfcwhite |
| Popover | #fdfcf6snow | #000000black |
| Popover foreground | #161203black | #fdfdfcwhite |
| Primary | #5e5c55dimgray | #5e5c55dimgray |
| Primary foreground | #f3f3f2whitesmoke | #f3f3f2whitesmoke |
| Secondary | #55575edimgray | #55575edimgray |
| Secondary foreground | #f2f2f3whitesmoke | #f2f2f3whitesmoke |
| Muted | #d4daedgainsboro | #12182bblack |
| Muted foreground | #5c5d61dimgray | #9e9fa3darkgray |
| Accent | #55575edimgray | #55575edimgray |
| Accent foreground | #f2f2f3whitesmoke | #f2f2f3whitesmoke |
| Destructive | #942105darkred | #f73808orangered |
| Destructive foreground | #fdd7cebisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5e5c55dimgray | #5e5c55dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.20:1 | AAA |
| Text on card | 18.20:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 6.46:1 | AA |
| Muted text | 4.70:1 | AA |
| Accent | 6.46:1 | AA |
| Destructive | 6.33:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 6.46:1 | AA |
| Muted text | 6.66:1 | AA |
| Accent | 6.46:1 | AA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Western in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 92.729);
--foreground: oklch(0.182 0.029 94.478);
--muted: oklch(0.889 0.026 272.328);
--muted-foreground: oklch(0.478 0.007 272.499);
--popover: oklch(0.99 0.007 92.729);
--popover-foreground: oklch(0.182 0.029 94.478);
--card: oklch(0.99 0.007 92.729);
--card-foreground: oklch(0.182 0.029 94.478);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.473 0.011 92.872);
--primary-foreground: oklch(0.963 0.001 92.67);
--secondary: oklch(0.457 0.011 272.385);
--secondary-foreground: oklch(0.961 0.001 272.642);
--accent: oklch(0.457 0.011 272.385);
--accent-foreground: oklch(0.961 0.001 272.642);
--destructive: oklch(0.439 0.155 33.765);
--destructive-foreground: oklch(0.909 0.045 34.333);
--ring: oklch(0.473 0.011 92.872);
--chart-1: oklch(0.473 0.011 92.872);
--chart-2: oklch(0.457 0.011 272.385);
--chart-3: oklch(0.457 0.011 272.385);
--chart-4: oklch(0.484 0.012 272.382);
--chart-5: oklch(0.478 0.018 92.974);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 92.665);
--muted: oklch(0.214 0.038 270.102);
--muted-foreground: oklch(0.703 0.006 272.561);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 92.665);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 92.665);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.473 0.011 92.872);
--primary-foreground: oklch(0.963 0.001 92.67);
--secondary: oklch(0.457 0.011 272.385);
--secondary-foreground: oklch(0.961 0.001 272.642);
--accent: oklch(0.457 0.011 272.385);
--accent-foreground: oklch(0.961 0.001 272.642);
--destructive: oklch(0.636 0.231 33.076);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.473 0.011 92.872);
--chart-1: oklch(0.473 0.011 92.872);
--chart-2: oklch(0.457 0.011 272.385);
--chart-3: oklch(0.457 0.011 272.385);
--chart-4: oklch(0.484 0.012 272.382);
--chart-5: oklch(0.478 0.018 92.974);
}