Stunning is a shadcn/ui theme built around a light green primary color (#e9fce9) with light red accents (#fce9e9). The light mode uses a neutral background (#fbfefb). Dark mode keeps the light green primary (#e9fce9) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #000000black |
| Foreground | #010401black | #f6f9f6whitesmoke |
| Card | #fbfefbwhite | #000000black |
| Card foreground | #010401black | #f6f9f6whitesmoke |
| Popover | #fbfefbwhite | #000000black |
| Popover foreground | #010401black | #f6f9f6whitesmoke |
| Primary | #e9fce9honeydew | #e9fce9honeydew |
| Primary foreground | #0a420adarkgreen | #0a420adarkgreen |
| Secondary | #e9e9fclavender | #e9e9fclavender |
| Secondary foreground | #3838e0royalblue | #3838e0royalblue |
| Muted | #cfcfe3lightgrey | #1c1c30black |
| Muted foreground | #404045darkslategray | #bababfsilver |
| Accent | #fce9e9linen | #fce9e9linen |
| Accent foreground | #9a1818brown | #9a1818brown |
| Destructive | #a51603darkred | #fa3319orangered |
| Destructive foreground | #fee0dcmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e9fce9honeydew | #e9fce9honeydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 10.85:1 | AAA |
| Secondary button | 6.23:1 | AA |
| Muted text | 6.70:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.22:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 10.85:1 | AAA |
| Secondary button | 6.23:1 | AA |
| Muted text | 8.60:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Stunning in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 145.538);
--foreground: oklch(0.098 0.022 143.617);
--muted: oklch(0.86 0.027 285.811);
--muted-foreground: oklch(0.372 0.009 285.955);
--popover: oklch(0.994 0.005 145.538);
--popover-foreground: oklch(0.098 0.022 143.617);
--card: oklch(0.994 0.005 145.538);
--card-foreground: oklch(0.098 0.022 143.617);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.971 0.031 145.328);
--primary-foreground: oklch(0.332 0.101 142.865);
--secondary: oklch(0.939 0.025 285.908);
--secondary-foreground: oklch(0.473 0.243 272.194);
--accent: oklch(0.949 0.02 17.516);
--accent-foreground: oklch(0.444 0.165 27.253);
--destructive: oklch(0.462 0.178 30.939);
--destructive-foreground: oklch(0.931 0.034 26.725);
--ring: oklch(0.971 0.031 145.328);
--chart-1: oklch(0.971 0.031 145.328);
--chart-2: oklch(0.939 0.025 285.908);
--chart-3: oklch(0.949 0.02 17.516);
--chart-4: oklch(0.976 0.01 286.215);
--chart-5: oklch(0.971 0.033 145.318);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.006 145.528);
--muted: oklch(0.238 0.038 283.147);
--muted-foreground: oklch(0.791 0.007 286.229);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.979 0.006 145.528);
--card: oklch(0 0 0);
--card-foreground: oklch(0.979 0.006 145.528);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.971 0.031 145.328);
--primary-foreground: oklch(0.332 0.101 142.865);
--secondary: oklch(0.939 0.025 285.908);
--secondary-foreground: oklch(0.473 0.243 272.194);
--accent: oklch(0.949 0.02 17.516);
--accent-foreground: oklch(0.444 0.165 27.253);
--destructive: oklch(0.639 0.235 31.002);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.971 0.031 145.328);
--chart-1: oklch(0.971 0.031 145.328);
--chart-2: oklch(0.939 0.025 285.908);
--chart-3: oklch(0.949 0.02 17.516);
--chart-4: oklch(0.976 0.01 286.215);
--chart-5: oklch(0.971 0.033 145.318);
}