Western is a shadcn/ui theme built around a green primary color (#cfe486) with indigo accents (#9b86e4). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#cfe486) on a neutral background (#070802).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070802black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #070802black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #070802black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #cfe486khaki | #cfe486khaki |
| Primary foreground | #262e0ablack | #262e0ablack |
| Secondary | #9b86e4mediumpurple | #9b86e4mediumpurple |
| Secondary foreground | #120a2eblack | #120a2eblack |
| Muted | #d8d5e1gainsboro | #201e2ablack |
| Muted foreground | #3a3649darkslategray | #bab6c9silver |
| Accent | #9b86e4mediumpurple | #9b86e4mediumpurple |
| Accent foreground | #120a2eblack | #120a2eblack |
| Destructive | #631f08maroon | #e24612orangered |
| Destructive foreground | #f8baa5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cfe486khaki | #cfe486khaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 10.19:1 | AAA |
| Secondary button | 6.25:1 | AA |
| Muted text | 8.06:1 | AAA |
| Accent | 6.25:1 | AA |
| Destructive | 7.26:1 | AAA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 10.19:1 | AAA |
| Secondary button | 6.25:1 | AA |
| Muted text | 8.31:1 | AAA |
| Accent | 6.25:1 | AA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Western in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.879 0.017 295.983);
--muted-foreground: oklch(0.346 0.033 294.526);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.882 0.12 118.926);
--primary-foreground: oklch(0.284 0.056 120.486);
--secondary: oklch(0.678 0.136 292.359);
--secondary-foreground: oklch(0.183 0.067 287.776);
--accent: oklch(0.678 0.136 292.359);
--accent-foreground: oklch(0.183 0.067 287.776);
--destructive: oklch(0.343 0.104 37.416);
--destructive-foreground: oklch(0.84 0.077 39.221);
--ring: oklch(0.882 0.12 118.926);
--chart-1: oklch(0.882 0.12 118.926);
--chart-2: oklch(0.678 0.136 292.359);
--chart-3: oklch(0.678 0.136 292.359);
--chart-4: oklch(0.712 0.121 293.026);
--chart-5: oklch(0.887 0.125 119.031);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.019 116.781);
--foreground: oklch(1 0 180);
--muted: oklch(0.242 0.023 294.541);
--muted-foreground: oklch(0.785 0.027 295.697);
--popover: oklch(0.13 0.019 116.781);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.13 0.019 116.781);
--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.882 0.12 118.926);
--primary-foreground: oklch(0.284 0.056 120.486);
--secondary: oklch(0.678 0.136 292.359);
--secondary-foreground: oklch(0.183 0.067 287.776);
--accent: oklch(0.678 0.136 292.359);
--accent-foreground: oklch(0.183 0.067 287.776);
--destructive: oklch(0.614 0.201 36.302);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.882 0.12 118.926);
--chart-1: oklch(0.882 0.12 118.926);
--chart-2: oklch(0.678 0.136 292.359);
--chart-3: oklch(0.678 0.136 292.359);
--chart-4: oklch(0.712 0.121 293.026);
--chart-5: oklch(0.887 0.125 119.031);
}