Stark is a shadcn/ui theme built around a deep purple primary color (#3e2442) with muted light purple accents (#dfd6e1). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the deep purple primary (#3e2442) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #030104black |
| Foreground | #0e050fblack | #f9f5f9whitesmoke |
| Card | #fcf7fdghostwhite | #070308black |
| Card foreground | #0a040bblack | #fbf9fbsnow |
| Popover | #fcf7fdghostwhite | #070308black |
| Popover foreground | #0a040bblack | #fbf9fbsnow |
| Primary | #3e2442darkslategray | #3e2442darkslategray |
| Primary foreground | #d7bddbthistle | #d7bddbthistle |
| Secondary | #ece9eclavender | #291d2adarkslategray |
| Secondary foreground | #574a59dimgray | #c6b0c9silver |
| Muted | #e1d9e3gainsboro | #251c26black |
| Muted foreground | #514653darkslategray | #b7acb9darkgray |
| Accent | #dfd6e1gainsboro | #3a243ddarkslategray |
| Accent foreground | #4a384ddarkslategray | #d4bcd7thistle |
| Destructive | #c94f13chocolate | #ed7a40coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3e2442darkslategray | #3e2442darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.51:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 6.88:1 | AA |
| Muted text | 6.48:1 | AA |
| Accent | 7.54:1 | AAA |
| Destructive | 4.55:1 | AA |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 7.44:1 | AAA |
Paste this into your globals.css to use Stark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 321.604);
--foreground: oklch(0.137 0.029 322.522);
--muted: oklch(0.895 0.016 321.643);
--muted-foreground: oklch(0.411 0.024 321.754);
--popover: oklch(0.982 0.009 321.617);
--popover-foreground: oklch(0.124 0.025 323.01);
--card: oklch(0.982 0.009 321.617);
--card-foreground: oklch(0.124 0.025 323.01);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.307 0.064 322.071);
--primary-foreground: oklch(0.829 0.051 321.76);
--secondary: oklch(0.937 0.006 321.61);
--secondary-foreground: oklch(0.428 0.029 321.775);
--accent: oklch(0.886 0.019 321.651);
--accent-foreground: oklch(0.368 0.043 321.897);
--destructive: oklch(0.582 0.168 41.94);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.307 0.064 322.071);
--chart-1: oklch(0.307 0.064 322.071);
--chart-2: oklch(0.937 0.006 321.61);
--chart-3: oklch(0.886 0.019 321.651);
--chart-4: oklch(0.961 0.004 321.603);
--chart-5: oklch(0.306 0.07 322.097);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.017 323.161);
--foreground: oklch(0.975 0.007 321.611);
--muted: oklch(0.242 0.023 321.84);
--muted-foreground: oklch(0.758 0.021 321.669);
--popover: oklch(0.108 0.021 323.161);
--popover-foreground: oklch(0.983 0.004 321.605);
--card: oklch(0.108 0.021 323.161);
--card-foreground: oklch(0.983 0.004 321.605);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.307 0.064 322.071);
--primary-foreground: oklch(0.829 0.051 321.76);
--secondary: oklch(0.251 0.03 321.906);
--secondary-foreground: oklch(0.784 0.043 321.741);
--accent: oklch(0.298 0.053 322.024);
--accent-foreground: oklch(0.823 0.047 321.747);
--destructive: oklch(0.701 0.16 45.233);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.307 0.064 322.071);
--chart-1: oklch(0.307 0.064 322.071);
--chart-2: oklch(0.251 0.03 321.906);
--chart-3: oklch(0.298 0.053 322.024);
--chart-4: oklch(0.281 0.036 321.92);
--chart-5: oklch(0.306 0.07 322.097);
}