Wok is a shadcn/ui theme built around a vivid light green primary color (#adfbb8) with vivid light red accents (#fbb8ad). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#adfbb8) on a green-tinted background (#050b06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050b06black |
| Foreground | #000000black | #f8fbf9mintcream |
| Card | #ffffffwhite | #050b06black |
| Card foreground | #000000black | #f8fbf9mintcream |
| Popover | #ffffffwhite | #050b06black |
| Popover foreground | #000000black | #f8fbf9mintcream |
| Primary | #adfbb8palegreen | #adfbb8palegreen |
| Primary foreground | #010f03black | #010f03black |
| Secondary | #b8adfblightsteelblue | #b8adfblightsteelblue |
| Secondary foreground | #16066fmidnightblue | #16066fmidnightblue |
| Muted | #f0eff6whitesmoke | #0a0910black |
| Muted foreground | #4c4860darkslategray | #a39fb7darkgray |
| Accent | #fbb8adlightpink | #fbb8adlightpink |
| Accent foreground | #6f1606maroon | #6f1606maroon |
| Destructive | #7f3005saddlebrown | #f5600forangered |
| Destructive foreground | #fcd1bapeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #adfbb8palegreen | #adfbb8palegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 16.07:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 7.64:1 | AAA |
| Accent | 7.01:1 | AAA |
| Destructive | 6.41:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 16.07:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 7.72:1 | AAA |
| Accent | 7.01:1 | AAA |
| Destructive | 6.54:1 | AA |
Paste this into your globals.css to use Wok in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.955 0.009 293.131);
--muted-foreground: oklch(0.416 0.039 291.478);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.92 0.118 148.399);
--primary-foreground: oklch(0.146 0.039 148.275);
--secondary: oklch(0.785 0.11 290.502);
--secondary-foreground: oklch(0.263 0.159 273.15);
--accent: oklch(0.842 0.079 30.099);
--accent-foreground: oklch(0.356 0.126 32.328);
--destructive: oklch(0.418 0.12 42.86);
--destructive-foreground: oklch(0.893 0.057 49.899);
--ring: oklch(0.92 0.118 148.399);
--chart-1: oklch(0.92 0.118 148.399);
--chart-2: oklch(0.785 0.11 290.502);
--chart-3: oklch(0.842 0.079 30.099);
--chart-4: oklch(0.823 0.09 291.164);
--chart-5: oklch(0.922 0.122 148.338);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.017 149.519);
--foreground: oklch(0.986 0.004 150.189);
--muted: oklch(0.147 0.014 291.455);
--muted-foreground: oklch(0.713 0.034 292.396);
--popover: oklch(0.138 0.017 149.519);
--popover-foreground: oklch(0.986 0.004 150.189);
--card: oklch(0.138 0.017 149.519);
--card-foreground: oklch(0.986 0.004 150.189);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.92 0.118 148.399);
--primary-foreground: oklch(0.146 0.039 148.275);
--secondary: oklch(0.785 0.11 290.502);
--secondary-foreground: oklch(0.263 0.159 273.15);
--accent: oklch(0.842 0.079 30.099);
--accent-foreground: oklch(0.356 0.126 32.328);
--destructive: oklch(0.673 0.199 41.913);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.92 0.118 148.399);
--chart-1: oklch(0.92 0.118 148.399);
--chart-2: oklch(0.785 0.11 290.502);
--chart-3: oklch(0.842 0.079 30.099);
--chart-4: oklch(0.823 0.09 291.164);
--chart-5: oklch(0.922 0.122 148.338);
}