Stark is a shadcn/ui theme built around a vivid light green primary color (#f1fff0) with vivid light green accents (#f0fff7). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#f1fff0) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020902black | #fcfdfcwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #020902black | #fcfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #020902black | #fcfdfcwhite |
| Primary | #f1fff0honeydew | #f1fff0honeydew |
| Primary foreground | #065502darkgreen | #065502darkgreen |
| Secondary | #f8fff0ivory | #f8fff0ivory |
| Secondary foreground | #305502darkgreen | #305502darkgreen |
| Muted | #dde9cegainsboro | #253116darkslategray |
| Muted foreground | #454743darkslategray | #babcb8silver |
| Accent | #f0fff7mintcream | #f0fff7mintcream |
| Accent foreground | #025527darkgreen | #025527darkgreen |
| Destructive | #691407maroon | #f2533atomato |
| Destructive foreground | #f9b3a9lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f1fff0honeydew | #f1fff0honeydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 8.77:1 | AAA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 7.42:1 | AAA |
| Accent | 8.71:1 | AAA |
| Destructive | 7.05:1 | AAA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 8.77:1 | AAA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 7.15:1 | AAA |
| Accent | 8.71:1 | AAA |
| Destructive | 6.09:1 | AA |
Paste this into your globals.css to use Stark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.028 142.06);
--muted: oklch(0.917 0.038 126.974);
--muted-foreground: oklch(0.394 0.007 126.665);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.028 142.06);
--card: oklch(1 0 180);
--card-foreground: oklch(0.124 0.028 142.06);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.985 0.024 143.985);
--primary-foreground: oklch(0.391 0.13 142.122);
--secondary: oklch(0.99 0.02 126.695);
--secondary-foreground: oklch(0.405 0.113 132.724);
--accent: oklch(0.986 0.019 162.143);
--accent-foreground: oklch(0.394 0.104 151.425);
--destructive: oklch(0.343 0.121 31.733);
--destructive-foreground: oklch(0.831 0.084 28.781);
--ring: oklch(0.985 0.024 143.985);
--chart-1: oklch(0.985 0.024 143.985);
--chart-2: oklch(0.99 0.02 126.695);
--chart-3: oklch(0.986 0.019 162.143);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.985 0.025 143.981);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.002 144.121);
--muted: oklch(0.295 0.048 128.868);
--muted-foreground: oklch(0.793 0.006 126.527);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.002 144.121);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.002 144.121);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.985 0.024 143.985);
--primary-foreground: oklch(0.391 0.13 142.122);
--secondary: oklch(0.99 0.02 126.695);
--secondary-foreground: oklch(0.405 0.113 132.724);
--accent: oklch(0.986 0.019 162.143);
--accent-foreground: oklch(0.394 0.104 151.425);
--destructive: oklch(0.657 0.2 31.47);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.985 0.024 143.985);
--chart-1: oklch(0.985 0.024 143.985);
--chart-2: oklch(0.99 0.02 126.695);
--chart-3: oklch(0.986 0.019 162.143);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.985 0.025 143.981);
}