Stunning is a shadcn/ui theme built around a green primary color (#62b283) with pink accents (#b26290). The light mode uses a neutral background (#f6fdf9). Dark mode keeps the green primary (#62b283) on a neutral background (#020805).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdf9mintcream | #020805black |
| Foreground | #04160bblack | #f9fbfamintcream |
| Card | #f6fdf9mintcream | #020805black |
| Card foreground | #04160bblack | #f9fbfamintcream |
| Popover | #f6fdf9mintcream | #020805black |
| Popover foreground | #04160bblack | #f9fbfamintcream |
| Primary | #62b283cadetblue | #62b283cadetblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #b26290palevioletred | #b26290palevioletred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e2cfdagainsboro | #301d28darkslategray |
| Muted foreground | #574750darkslategray | #b8a8b1darkgray |
| Accent | #b26290palevioletred | #b26290palevioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7e0707maroon | #f31212red |
| Destructive foreground | #fbbbbblightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #62b283cadetblue | #62b283cadetblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.13:1 | AAA |
| Text on card | 18.13:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 4.17:1 | AA Large |
| Muted text | 5.86:1 | AA |
| Accent | 4.17:1 | AA Large |
| Destructive | 6.73:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 4.17:1 | AA Large |
| Muted text | 6.98:1 | AA |
| Accent | 4.17:1 | AA Large |
| Destructive | 4.29:1 | AA Large |
Paste this into your globals.css to use Stunning in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.009 160.797);
--foreground: oklch(0.18 0.034 157.034);
--muted: oklch(0.874 0.026 341.69);
--muted-foreground: oklch(0.418 0.026 342.396);
--popover: oklch(0.989 0.009 160.797);
--popover-foreground: oklch(0.18 0.034 157.034);
--card: oklch(0.989 0.009 160.797);
--card-foreground: oklch(0.18 0.034 157.034);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.698 0.105 156.687);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.601 0.118 345.245);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.601 0.118 345.245);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.376 0.149 28.484);
--destructive-foreground: oklch(0.851 0.075 18.731);
--ring: oklch(0.698 0.105 156.687);
--chart-1: oklch(0.698 0.105 156.687);
--chart-2: oklch(0.601 0.118 345.245);
--chart-3: oklch(0.601 0.118 345.245);
--chart-4: oklch(0.627 0.109 344.784);
--chart-5: oklch(0.705 0.113 156.312);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.016 160.951);
--foreground: oklch(0.986 0.003 160.946);
--muted: oklch(0.259 0.035 343.971);
--muted-foreground: oklch(0.748 0.022 341.693);
--popover: oklch(0.123 0.016 160.951);
--popover-foreground: oklch(0.986 0.003 160.946);
--card: oklch(0.123 0.016 160.951);
--card-foreground: oklch(0.986 0.003 160.946);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.698 0.105 156.687);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.601 0.118 345.245);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.601 0.118 345.245);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.609 0.244 28.713);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.698 0.105 156.687);
--chart-1: oklch(0.698 0.105 156.687);
--chart-2: oklch(0.601 0.118 345.245);
--chart-3: oklch(0.601 0.118 345.245);
--chart-4: oklch(0.627 0.109 344.784);
--chart-5: oklch(0.705 0.113 156.312);
}