Stark is a shadcn/ui theme built around a muted light yellow primary color (#eaeae6) with muted light green accents (#e8eae6). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted light yellow primary (#eaeae6) on a yellow-tinted background (#0e0e06).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #0e0e06black |
| Foreground | #080802black | #ffffffwhite |
| Card | #fefefbwhite | #0e0e06black |
| Card foreground | #080802black | #ffffffwhite |
| Popover | #fefefbwhite | #0e0e06black |
| Popover foreground | #080802black | #ffffffwhite |
| Primary | #eaeae6linen | #eaeae6linen |
| Primary foreground | #575747darkolivegreen | #575747darkolivegreen |
| Secondary | #eae8e6linen | #eae8e6linen |
| Secondary foreground | #574f47darkolivegreen | #574f47darkolivegreen |
| Muted | #ede0d4antiquewhite | #2b1f12black |
| Muted foreground | #534d46darkslategray | #b9b3acdarkgray |
| Accent | #e8eae6linen | #e8eae6linen |
| Accent foreground | #4f5747darkolivegreen | #4f5747darkolivegreen |
| Destructive | #86220esaddlebrown | #de3817orangered |
| Destructive foreground | #fad4ccbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eaeae6linen | #eaeae6linen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 6.57:1 | AA |
| Muted text | 6.45:1 | AA |
| Accent | 6.23:1 | AA |
| Destructive | 6.83:1 | AA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 6.57:1 | AA |
| Muted text | 7.75:1 | AAA |
| Accent | 6.23:1 | AA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Stark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 106.477);
--foreground: oklch(0.132 0.019 108.747);
--muted: oklch(0.914 0.021 67.558);
--muted-foreground: oklch(0.422 0.013 67.468);
--popover: oklch(0.996 0.004 106.477);
--popover-foreground: oklch(0.132 0.019 108.747);
--card: oklch(0.996 0.004 106.477);
--card-foreground: oklch(0.132 0.019 108.747);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.937 0.006 106.517);
--primary-foreground: oklch(0.452 0.025 107.353);
--secondary: oklch(0.932 0.004 67.775);
--secondary-foreground: oklch(0.433 0.017 67.369);
--accent: oklch(0.935 0.007 128.539);
--accent-foreground: oklch(0.445 0.027 129.161);
--destructive: oklch(0.412 0.138 33.017);
--destructive-foreground: oklch(0.899 0.044 31.217);
--ring: oklch(0.937 0.006 106.517);
--chart-1: oklch(0.937 0.006 106.517);
--chart-2: oklch(0.932 0.004 67.775);
--chart-3: oklch(0.935 0.007 128.539);
--chart-4: oklch(0.955 0.003 67.791);
--chart-5: oklch(0.939 0.008 106.552);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.162 0.017 108.199);
--foreground: oklch(1 0 180);
--muted: oklch(0.249 0.029 65.873);
--muted-foreground: oklch(0.768 0.011 67.661);
--popover: oklch(0.162 0.017 108.199);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.162 0.017 108.199);
--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.937 0.006 106.517);
--primary-foreground: oklch(0.452 0.025 107.353);
--secondary: oklch(0.932 0.004 67.775);
--secondary-foreground: oklch(0.433 0.017 67.369);
--accent: oklch(0.935 0.007 128.539);
--accent-foreground: oklch(0.445 0.027 129.161);
--destructive: oklch(0.592 0.206 32.806);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.937 0.006 106.517);
--chart-1: oklch(0.937 0.006 106.517);
--chart-2: oklch(0.932 0.004 67.775);
--chart-3: oklch(0.935 0.007 128.539);
--chart-4: oklch(0.955 0.003 67.791);
--chart-5: oklch(0.939 0.008 106.552);
}