7 stars is a shadcn/ui theme built around a vivid yellow primary color (#ffcc66) with muted blue accents (#3c465d). The light mode uses a blue-tinted background (#1e232f). Dark mode keeps the vivid yellow primary (#ffcc66) on a neutral background (#0f0f0f).
| Token | Light | Dark |
|---|---|---|
| Background | #1e232fdarkslategray | #0f0f0fblack |
| Foreground | #cccdc6lightgrey | #cccdc6lightgrey |
| Card | #1a1e28black | #191919black |
| Card foreground | #d8d9d4lightgrey | #d8d9d4lightgrey |
| Popover | #181c25black | #191919black |
| Popover foreground | #e4e5e1gainsboro | #e4e5e1gainsboro |
| Primary | #ffcc66sandybrown | #ffcc66sandybrown |
| Primary foreground | #332200black | #332200black |
| Secondary | #53462ddarkolivegreen | #53462ddarkolivegreen |
| Secondary foreground | #e4ddcdgainsboro | #e4ddcdgainsboro |
| Muted | #2b2e36darkslategray | #2b2e36darkslategray |
| Muted foreground | #a6acb9darkgray | #a6acb9darkgray |
| Accent | #3c465ddarkslategray | #191919black |
| Accent foreground | #e0e3eblavender | #e0e3eblavender |
| Destructive | #fb3a18orangered | #fb3a18orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2d3139darkslategray | #2d3139darkslategray |
| Input | #343842darkslategray | #343842darkslategray |
| Ring | #ffcc66sandybrown | #ffcc66sandybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.82:1 | AAA |
| Text on card | 11.71:1 | AAA |
| Primary button | 10.28:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 5.95:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 3.65:1 | AA Large |
| Text on background | 11.99:1 | AAA |
| Text on card | 12.38:1 | AAA |
| Primary button | 10.28:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 5.95:1 | AA |
| Accent | 13.69:1 | AAA |
| Destructive | 3.65:1 | AA Large |
Paste this into your globals.css to use 7 stars in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.256 0.024 266.653);
--foreground: oklch(0.845 0.009 114.261);
--muted: oklch(0.302 0.016 267.044);
--muted-foreground: oklch(0.745 0.02 267.243);
--popover: oklch(0.226 0.019 266.717);
--popover-foreground: oklch(0.919 0.005 114.158);
--card: oklch(0.236 0.021 266.694);
--card-foreground: oklch(0.882 0.007 114.207);
--border: oklch(0.311 0.016 267.039);
--input: oklch(0.34 0.018 267.025);
--primary: oklch(0.871 0.133 82.737);
--primary-foreground: oklch(0.266 0.055 80.868);
--secondary: oklch(0.401 0.043 84.052);
--secondary-foreground: oklch(0.898 0.022 84.593);
--accent: oklch(0.394 0.042 266.49);
--accent-foreground: oklch(0.916 0.011 267.346);
--destructive: oklch(0.646 0.232 32.065);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.871 0.133 82.737);
--chart-1: oklch(0.871 0.133 82.737);
--chart-2: oklch(0.401 0.043 84.052);
--chart-3: oklch(0.394 0.042 266.49);
--chart-4: oklch(0.433 0.047 84.022);
--chart-5: oklch(0.874 0.136 82.598);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.167 0 170.538);
--foreground: oklch(0.845 0.009 114.261);
--muted: oklch(0.302 0.016 267.044);
--muted-foreground: oklch(0.745 0.02 267.243);
--popover: oklch(0.213 0 168.69);
--popover-foreground: oklch(0.919 0.005 114.158);
--card: oklch(0.213 0 168.69);
--card-foreground: oklch(0.882 0.007 114.207);
--border: oklch(0.311 0.016 267.039);
--input: oklch(0.34 0.018 267.025);
--primary: oklch(0.871 0.133 82.737);
--primary-foreground: oklch(0.266 0.055 80.868);
--secondary: oklch(0.401 0.043 84.052);
--secondary-foreground: oklch(0.898 0.022 84.593);
--accent: oklch(0.213 0 168.69);
--accent-foreground: oklch(0.916 0.011 267.346);
--destructive: oklch(0.646 0.232 32.065);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.871 0.133 82.737);
--chart-1: oklch(0.871 0.133 82.737);
--chart-2: oklch(0.401 0.043 84.052);
--chart-3: oklch(0.213 0 168.69);
--chart-4: oklch(0.433 0.047 84.022);
--chart-5: oklch(0.874 0.136 82.598);
}