Starchy is a shadcn/ui theme built around a vivid blue primary color (#1234ba) with neutral gray accents (#e1e2e5). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#1234ba) on a blue-tinted background (#04050c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04050cblack |
| Foreground | #040815black | #f8f9fbghostwhite |
| Card | #ffffffwhite | #04050cblack |
| Card foreground | #040815black | #f8f9fbghostwhite |
| Popover | #ffffffwhite | #04050cblack |
| Popover foreground | #040815black | #f8f9fbghostwhite |
| Primary | #1234bamediumblue | #1234bamediumblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e1e2e5gainsboro | #232324black |
| Secondary foreground | #46474edarkslategray | #bcbcbdsilver |
| Muted | #daddecgainsboro | #131625black |
| Muted foreground | #5a5b5edimgray | #a1a2a5darkgray |
| Accent | #e1e2e5gainsboro | #232324black |
| Accent foreground | #46474edarkslategray | #bcbcbdsilver |
| Destructive | #b71001firebrick | #fe4534tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1234bamediumblue | #1234bamediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.98:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 9.45:1 | AAA |
| Secondary button | 7.13:1 | AAA |
| Muted text | 5.03:1 | AA |
| Accent | 7.13:1 | AAA |
| Destructive | 6.81:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 9.45:1 | AAA |
| Secondary button | 8.23:1 | AAA |
| Muted text | 7.01:1 | AAA |
| Accent | 8.23:1 | AAA |
| Destructive | 3.43:1 | AA Large |
Paste this into your globals.css to use Starchy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.136 0.032 267.745);
--muted: oklch(0.9 0.021 274.745);
--muted-foreground: oklch(0.47 0.005 274.909);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.136 0.032 267.745);
--card: oklch(1 0 180);
--card-foreground: oklch(0.136 0.032 267.745);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.41 0.21 265.361);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.913 0.004 274.985);
--secondary-foreground: oklch(0.4 0.012 274.645);
--accent: oklch(0.913 0.004 274.985);
--accent-foreground: oklch(0.4 0.012 274.645);
--destructive: oklch(0.494 0.196 30.24);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.41 0.21 265.361);
--chart-1: oklch(0.41 0.21 265.361);
--chart-2: oklch(0.913 0.004 274.985);
--chart-3: oklch(0.913 0.004 274.985);
--chart-4: oklch(0.937 0.003 274.999);
--chart-5: oklch(0.41 0.216 265.112);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.017 268.961);
--foreground: oklch(0.982 0.003 274.996);
--muted: oklch(0.206 0.03 272.776);
--muted-foreground: oklch(0.713 0.004 274.96);
--popover: oklch(0.119 0.017 268.961);
--popover-foreground: oklch(0.982 0.003 274.996);
--card: oklch(0.119 0.017 268.961);
--card-foreground: oklch(0.982 0.003 274.996);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.41 0.21 265.361);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.258 0.001 274.983);
--secondary-foreground: oklch(0.796 0.002 275.011);
--accent: oklch(0.258 0.001 274.983);
--accent-foreground: oklch(0.796 0.002 275.011);
--destructive: oklch(0.661 0.224 29.538);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.41 0.21 265.361);
--chart-1: oklch(0.41 0.21 265.361);
--chart-2: oklch(0.258 0.001 274.983);
--chart-3: oklch(0.258 0.001 274.983);
--chart-4: oklch(0.29 0.001 274.981);
--chart-5: oklch(0.41 0.216 265.112);
}