Short is a shadcn/ui theme built around a vivid deep green primary color (#272a04) with vivid deep indigo accents (#07042a). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid deep green primary (#272a04) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #030302black |
| Foreground | #040401black | #fbfbf9snow |
| Card | #fdfdfcwhite | #030302black |
| Card foreground | #040401black | #fbfbf9snow |
| Popover | #fdfdfcwhite | #030302black |
| Popover foreground | #040401black | #fbfbf9snow |
| Primary | #272a04black | #272a04black |
| Primary foreground | #d3e515gold | #d3e515gold |
| Secondary | #07042ablack | #07042ablack |
| Secondary foreground | #d0ccfalavender | #d0ccfalavender |
| Muted | #ebeaf6lavender | #0a0915black |
| Muted foreground | #4f4e55darkslategray | #abaab1darkgray |
| Accent | #07042ablack | #07042ablack |
| Accent foreground | #d0ccfalavender | #d0ccfalavender |
| Destructive | #b20606firebrick | #e90707red |
| Destructive foreground | #feebeblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #272a04black | #272a04black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 10.56:1 | AAA |
| Secondary button | 12.93:1 | AAA |
| Muted text | 6.89:1 | AA |
| Accent | 12.93:1 | AAA |
| Destructive | 6.26:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 10.56:1 | AAA |
| Secondary button | 12.93:1 | AAA |
| Muted text | 8.55:1 | AAA |
| Accent | 12.93:1 | AAA |
| Destructive | 4.68:1 | AA |
Paste this into your globals.css to use Short in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 110.291);
--foreground: oklch(0.105 0.016 111.878);
--muted: oklch(0.941 0.016 289.933);
--muted-foreground: oklch(0.428 0.011 289.773);
--popover: oklch(0.994 0.002 110.291);
--popover-foreground: oklch(0.105 0.016 111.878);
--card: oklch(0.994 0.002 110.291);
--card-foreground: oklch(0.105 0.016 111.878);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.273 0.057 114.231);
--primary-foreground: oklch(0.878 0.196 115.213);
--secondary: oklch(0.152 0.075 277.613);
--secondary-foreground: oklch(0.863 0.064 288.794);
--accent: oklch(0.152 0.075 277.613);
--accent-foreground: oklch(0.863 0.064 288.794);
--destructive: oklch(0.482 0.195 28.932);
--destructive-foreground: oklch(0.956 0.021 17.524);
--ring: oklch(0.273 0.057 114.231);
--chart-1: oklch(0.273 0.057 114.231);
--chart-2: oklch(0.152 0.075 277.613);
--chart-3: oklch(0.152 0.075 277.613);
--chart-4: oklch(0.176 0.093 275.472);
--chart-5: oklch(0.275 0.058 114.308);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.008 111.14);
--foreground: oklch(0.987 0.003 110.3);
--muted: oklch(0.15 0.025 286.856);
--muted-foreground: oklch(0.741 0.009 290.01);
--popover: oklch(0.098 0.008 111.14);
--popover-foreground: oklch(0.987 0.003 110.3);
--card: oklch(0.098 0.008 111.14);
--card-foreground: oklch(0.987 0.003 110.3);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.273 0.057 114.231);
--primary-foreground: oklch(0.878 0.196 115.213);
--secondary: oklch(0.152 0.075 277.613);
--secondary-foreground: oklch(0.863 0.064 288.794);
--accent: oklch(0.152 0.075 277.613);
--accent-foreground: oklch(0.863 0.064 288.794);
--destructive: oklch(0.587 0.239 29.016);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.273 0.057 114.231);
--chart-1: oklch(0.273 0.057 114.231);
--chart-2: oklch(0.152 0.075 277.613);
--chart-3: oklch(0.152 0.075 277.613);
--chart-4: oklch(0.176 0.093 275.472);
--chart-5: oklch(0.275 0.058 114.308);
}