Wan is a shadcn/ui theme built around a green primary color (#a9ce6f) with pink accents (#ce6fa9). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#a9ce6f) on a green-tinted background (#0c1004).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c1004black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #0f1405black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #0c1004black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #a9ce6fdarkkhaki | #a9ce6fdarkkhaki |
| Primary foreground | #060803black | #060803black |
| Secondary | #6fa9cecornflowerblue | #6fa9cecornflowerblue |
| Secondary foreground | #030608black | #030608black |
| Muted | #f1f3f4whitesmoke | #0b0d0eblack |
| Muted foreground | #505558darkslategray | #a7acafdarkgray |
| Accent | #ce6fa9palevioletred | #ce6fa9palevioletred |
| Accent foreground | #080306black | #080306black |
| Destructive | #9f1b09firebrick | #f2351corangered |
| Destructive foreground | #fde1ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a9ce6fdarkkhaki | #a9ce6fdarkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 11.21:1 | AAA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 6.76:1 | AA |
| Accent | 6.28:1 | AA |
| Destructive | 6.45:1 | AA |
| Text on background | 18.87:1 | AAA |
| Text on card | 18.67:1 | AAA |
| Primary button | 11.21:1 | AAA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 8.49:1 | AAA |
| Accent | 6.28:1 | AA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Wan in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.962 0.002 234.541);
--muted-foreground: oklch(0.446 0.008 234.785);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.802 0.129 126.351);
--primary-foreground: oklch(0.126 0.017 123.094);
--secondary: oklch(0.709 0.081 236.807);
--secondary-foreground: oklch(0.115 0.01 228.501);
--accent: oklch(0.666 0.138 343.723);
--accent-foreground: oklch(0.108 0.019 339.647);
--destructive: oklch(0.454 0.169 30.962);
--destructive-foreground: oklch(0.932 0.031 26.7);
--ring: oklch(0.802 0.129 126.351);
--chart-1: oklch(0.802 0.129 126.351);
--chart-2: oklch(0.709 0.081 236.807);
--chart-3: oklch(0.666 0.138 343.723);
--chart-4: oklch(0.732 0.075 236.458);
--chart-5: oklch(0.809 0.136 126.506);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.165 0.027 124.774);
--foreground: oklch(0.993 0.002 123.663);
--muted: oklch(0.158 0.004 234.849);
--muted-foreground: oklch(0.741 0.008 234.652);
--popover: oklch(0.165 0.027 124.774);
--popover-foreground: oklch(0.993 0.002 123.663);
--card: oklch(0.182 0.031 125.748);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.802 0.129 126.351);
--primary-foreground: oklch(0.126 0.017 123.094);
--secondary: oklch(0.709 0.081 236.807);
--secondary-foreground: oklch(0.115 0.01 228.501);
--accent: oklch(0.666 0.138 343.723);
--accent-foreground: oklch(0.108 0.019 339.647);
--destructive: oklch(0.626 0.226 31.035);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.802 0.129 126.351);
--chart-1: oklch(0.802 0.129 126.351);
--chart-2: oklch(0.709 0.081 236.807);
--chart-3: oklch(0.666 0.138 343.723);
--chart-4: oklch(0.732 0.075 236.458);
--chart-5: oklch(0.809 0.136 126.506);
}