Upset is a shadcn/ui theme built around a green primary color (#249216) with green accents (#169246). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#249216) on a green-tinted background (#070f06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070f06black |
| Foreground | #000000black | #f9fbf9mintcream |
| Card | #ffffffwhite | #070f06black |
| Card foreground | #000000black | #f9fbf9mintcream |
| Popover | #ffffffwhite | #070f06black |
| Popover foreground | #000000black | #f9fbf9mintcream |
| Primary | #249216forestgreen | #249216forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #639216olivedrab | #639216olivedrab |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9eee2beige | #181d11black |
| Muted foreground | #41453adarkslategray | #c1c5basilver |
| Accent | #169246seagreen | #169246seagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #811f0emaroon | #e84326orangered |
| Destructive foreground | #f9cfc8pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #249216forestgreen | #249216forestgreen |
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 | 4.01:1 | AA Large |
| Secondary button | 3.69:1 | AA Large |
| Muted text | 8.33:1 | AAA |
| Accent | 3.99:1 | AA Large |
| Destructive | 6.91:1 | AA |
| Text on background | 18.72:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 4.01:1 | AA Large |
| Secondary button | 3.69:1 | AA Large |
| Muted text | 9.78:1 | AAA |
| Accent | 3.99:1 | AA Large |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Upset in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.942 0.017 123.901);
--muted-foreground: oklch(0.384 0.02 124.415);
--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.578 0.182 141.621);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.605 0.154 129.633);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.581 0.153 150.009);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.4 0.136 32.32);
--destructive-foreground: oklch(0.889 0.049 29.763);
--ring: oklch(0.578 0.182 141.621);
--chart-1: oklch(0.578 0.182 141.621);
--chart-2: oklch(0.605 0.154 129.633);
--chart-3: oklch(0.581 0.153 150.009);
--chart-4: oklch(0.644 0.165 129.702);
--chart-5: oklch(0.585 0.187 141.666);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.025 140.895);
--foreground: oklch(0.986 0.004 142.1);
--muted: oklch(0.222 0.023 125.278);
--muted-foreground: oklch(0.817 0.017 123.94);
--popover: oklch(0.155 0.025 140.895);
--popover-foreground: oklch(0.986 0.004 142.1);
--card: oklch(0.155 0.025 140.895);
--card-foreground: oklch(0.986 0.004 142.1);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.578 0.182 141.621);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.605 0.154 129.633);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.581 0.153 150.009);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.622 0.206 32.364);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.578 0.182 141.621);
--chart-1: oklch(0.578 0.182 141.621);
--chart-2: oklch(0.605 0.154 129.633);
--chart-3: oklch(0.581 0.153 150.009);
--chart-4: oklch(0.644 0.165 129.702);
--chart-5: oklch(0.585 0.187 141.666);
}