Stunning is a shadcn/ui theme built around a muted violet primary color (#7d5794) with muted green accents (#6d9457). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#7d5794) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #060109black | #faf8fcghostwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #030105black | #fdfcfdwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #030105black | #fdfcfdwhite |
| Primary | #7d5794rebeccapurple | #7d5794rebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6d9457dimgray | #6d9457dimgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e7ede3beige | #161c12black |
| Muted foreground | #434d3ddarkslategray | #b8c2b2silver |
| Accent | #6d9457dimgray | #6d9457dimgray |
| Accent foreground | #000000black | #000000black |
| Destructive | #8e2e0bsaddlebrown | #f06533tomato |
| Destructive foreground | #fbdbd0bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7d5794rebeccapurple | #7d5794rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 5.73:1 | AA |
| Secondary button | 6.01:1 | AA |
| Muted text | 7.45:1 | AAA |
| Accent | 6.01:1 | AA |
| Destructive | 6.33:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 5.73:1 | AA |
| Secondary button | 6.01:1 | AA |
| Muted text | 9.42:1 | AAA |
| Accent | 6.01:1 | AA |
| Destructive | 6.61:1 | AA |
Paste this into your globals.css to use Stunning in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.033 316.421);
--muted: oklch(0.939 0.016 133.711);
--muted-foreground: oklch(0.406 0.03 134.094);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.078 0.026 316.421);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.078 0.026 316.421);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.522 0.103 312.325);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.622 0.097 134.779);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.622 0.097 134.779);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.441 0.137 37.711);
--destructive-foreground: oklch(0.916 0.039 41.037);
--ring: oklch(0.522 0.103 312.325);
--chart-1: oklch(0.522 0.103 312.325);
--chart-2: oklch(0.622 0.097 134.779);
--chart-3: oklch(0.622 0.097 134.779);
--chart-4: oklch(0.651 0.102 134.788);
--chart-5: oklch(0.518 0.114 312.145);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.005 313.575);
--muted: oklch(0.217 0.022 134.31);
--muted-foreground: oklch(0.803 0.026 133.808);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.991 0.002 313.591);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.991 0.002 313.591);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.522 0.103 312.325);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.622 0.097 134.779);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.622 0.097 134.779);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.674 0.182 39.275);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.522 0.103 312.325);
--chart-1: oklch(0.522 0.103 312.325);
--chart-2: oklch(0.622 0.097 134.779);
--chart-3: oklch(0.622 0.097 134.779);
--chart-4: oklch(0.651 0.102 134.788);
--chart-5: oklch(0.518 0.114 312.145);
}