Stylish is a shadcn/ui theme built around a light green primary color (#d2e1c6) with light pink accents (#e1c6d2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#d2e1c6) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #070b04black | #fcfdfcwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #070b04black | #fcfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #070b04black | #fcfdfcwhite |
| Primary | #d2e1c6lightgrey | #d2e1c6lightgrey |
| Primary foreground | #394d28darkslategray | #394d28darkslategray |
| Secondary | #c6d2e1lightgrey | #c6d2e1lightgrey |
| Secondary foreground | #28394ddarkslategray | #28394ddarkslategray |
| Muted | #e2e7eelavender | #11161dblack |
| Muted foreground | #464749darkslategray | #b6b7b9silver |
| Accent | #e1c6d2thistle | #e1c6d2thistle |
| Accent foreground | #4d2839darkslategray | #4d2839darkslategray |
| Destructive | #a21107darkred | #f63f31tomato |
| Destructive foreground | #fedfddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d2e1c6lightgrey | #d2e1c6lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 7.50:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 6.44:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 9.02:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Stylish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.143 0.021 129.383);
--muted: oklch(0.927 0.011 253.296);
--muted-foreground: oklch(0.398 0.003 253.272);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.143 0.021 129.383);
--card: oklch(1 0 180);
--card-foreground: oklch(0.143 0.021 129.383);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.892 0.039 130.861);
--primary-foreground: oklch(0.393 0.063 132.206);
--secondary: oklch(0.86 0.024 253.396);
--secondary-foreground: oklch(0.339 0.041 253.868);
--accent: oklch(0.853 0.034 348.878);
--accent-foreground: oklch(0.332 0.059 352.35);
--destructive: oklch(0.453 0.177 29.795);
--destructive-foreground: oklch(0.928 0.034 22.66);
--ring: oklch(0.892 0.039 130.861);
--chart-1: oklch(0.892 0.039 130.861);
--chart-2: oklch(0.86 0.024 253.396);
--chart-3: oklch(0.853 0.034 348.878);
--chart-4: oklch(0.885 0.02 253.363);
--chart-5: oklch(0.894 0.043 130.902);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 130.45);
--muted: oklch(0.199 0.016 253.645);
--muted-foreground: oklch(0.78 0.003 253.242);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 130.45);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 130.45);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.892 0.039 130.861);
--primary-foreground: oklch(0.393 0.063 132.206);
--secondary: oklch(0.86 0.024 253.396);
--secondary-foreground: oklch(0.339 0.041 253.868);
--accent: oklch(0.853 0.034 348.878);
--accent-foreground: oklch(0.332 0.059 352.35);
--destructive: oklch(0.642 0.222 28.965);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.892 0.039 130.861);
--chart-1: oklch(0.892 0.039 130.861);
--chart-2: oklch(0.86 0.024 253.396);
--chart-3: oklch(0.853 0.034 348.878);
--chart-4: oklch(0.885 0.02 253.363);
--chart-5: oklch(0.894 0.043 130.902);
}