Stance is a shadcn/ui theme built around a muted deep orange primary color (#272221) with muted light orange accents (#d9d1ce). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the muted deep orange primary (#272221) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf9f8snow | #000000black |
| Foreground | #0c0603black | #ffffffwhite |
| Card | #fbf6f4whitesmoke | #030303black |
| Card foreground | #080402black | #ffffffwhite |
| Popover | #fcf9f8snow | #000000black |
| Popover foreground | #0c0603black | #ffffffwhite |
| Primary | #272221black | #272221black |
| Primary foreground | #c2bab7silver | #c2bab7silver |
| Secondary | #d9d1celightgrey | #1d1b1bblack |
| Secondary foreground | #423733darkslategray | #b9b3b1darkgray |
| Muted | #f5f1f0whitesmoke | #0f0c0ablack |
| Muted foreground | #616161dimgray | #9e9e9edarkgray |
| Accent | #d9d1celightgrey | #1d1b1bblack |
| Accent foreground | #423733darkslategray | #b9b3b1darkgray |
| Destructive | #9d370bsaddlebrown | #db4c0fchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #272221black | #272221black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.20:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 8.20:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 5.52:1 | AA |
| Accent | 7.66:1 | AAA |
| Destructive | 7.02:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.20:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 7.28:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Stance in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.004 43.093);
--foreground: oklch(0.129 0.016 50.877);
--muted: oklch(0.961 0.004 43.088);
--muted-foreground: oklch(0.492 0 180);
--popover: oklch(0.984 0.004 43.093);
--popover-foreground: oklch(0.129 0.016 50.877);
--card: oklch(0.976 0.006 43.073);
--card-foreground: oklch(0.113 0.014 51.285);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.258 0.007 42.909);
--primary-foreground: oklch(0.796 0.01 43.022);
--secondary: oklch(0.867 0.01 43.027);
--secondary-foreground: oklch(0.348 0.017 42.763);
--accent: oklch(0.867 0.01 43.027);
--accent-foreground: oklch(0.348 0.017 42.763);
--destructive: oklch(0.479 0.145 39.48);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.258 0.007 42.909);
--chart-1: oklch(0.258 0.007 42.909);
--chart-2: oklch(0.867 0.01 43.027);
--chart-3: oklch(0.867 0.01 43.027);
--chart-4: oklch(0.891 0.008 43.047);
--chart-5: oklch(0.257 0.01 42.839);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.157 0.007 42.767);
--muted-foreground: oklch(0.7 0 180);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.258 0.007 42.909);
--primary-foreground: oklch(0.796 0.01 43.022);
--secondary: oklch(0.226 0.003 42.995);
--secondary-foreground: oklch(0.772 0.007 43.051);
--accent: oklch(0.226 0.003 42.995);
--accent-foreground: oklch(0.772 0.007 43.051);
--destructive: oklch(0.609 0.189 38.949);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.258 0.007 42.909);
--chart-1: oklch(0.258 0.007 42.909);
--chart-2: oklch(0.226 0.003 42.995);
--chart-3: oklch(0.226 0.003 42.995);
--chart-4: oklch(0.258 0.004 42.985);
--chart-5: oklch(0.257 0.01 42.839);
}