Wax is a shadcn/ui theme built around a vivid blue primary color (#1b6dc5) with vivid indigo accents (#1e1bc5). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid blue primary (#1b6dc5) on a blue-tinted background (#04080b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #04080bblack |
| Foreground | #010204black | #f9fafbghostwhite |
| Card | #f8fafcghostwhite | #050a0fblack |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #f8fafcghostwhite | #050a0fblack |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #1b6dc5royalblue | #1b6dc5royalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1bc3c5darkturquoise | #1bc3c5darkturquoise |
| Secondary foreground | #021212black | #021212black |
| Muted | #e6f0f0lavender | #0f191ablack |
| Muted foreground | #474848darkslategray | #b7b8b8silver |
| Accent | #1e1bc5mediumblue | #1e1bc5mediumblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a71906firebrick | #f84c35tomato |
| Destructive foreground | #fee5e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1b6dc5royalblue | #1b6dc5royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.28:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 5.17:1 | AA |
| Secondary button | 8.77:1 | AAA |
| Muted text | 7.87:1 | AAA |
| Accent | 10.38:1 | AAA |
| Destructive | 6.27:1 | AA |
| Text on background | 19.27:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 5.17:1 | AA |
| Secondary button | 8.77:1 | AAA |
| Muted text | 8.97:1 | AAA |
| Accent | 10.38:1 | AAA |
| Destructive | 3.46:1 | AA Large |
Paste this into your globals.css to use Wax in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 249.666);
--foreground: oklch(0.088 0.01 241.192);
--muted: oklch(0.946 0.011 198.194);
--muted-foreground: oklch(0.401 0.002 198.292);
--popover: oklch(0.984 0.003 249.681);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.003 249.681);
--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.537 0.157 254.259);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.742 0.123 196.75);
--secondary-foreground: oklch(0.166 0.023 196.454);
--accent: oklch(0.397 0.242 268.465);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.468 0.178 30.908);
--destructive-foreground: oklch(0.941 0.028 26.665);
--ring: oklch(0.537 0.157 254.259);
--chart-1: oklch(0.537 0.157 254.259);
--chart-2: oklch(0.742 0.123 196.75);
--chart-3: oklch(0.397 0.242 268.465);
--chart-4: oklch(0.779 0.129 196.754);
--chart-5: oklch(0.538 0.162 254.589);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.012 242.991);
--foreground: oklch(0.984 0.001 249.66);
--muted: oklch(0.205 0.015 197.395);
--muted-foreground: oklch(0.782 0.002 198.332);
--popover: oklch(0.142 0.015 246.112);
--popover-foreground: oklch(0.992 0.001 249.655);
--card: oklch(0.142 0.015 246.112);
--card-foreground: oklch(0.992 0.001 249.655);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.537 0.157 254.259);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.742 0.123 196.75);
--secondary-foreground: oklch(0.166 0.023 196.454);
--accent: oklch(0.397 0.242 268.465);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.657 0.212 30.82);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.537 0.157 254.259);
--chart-1: oklch(0.537 0.157 254.259);
--chart-2: oklch(0.742 0.123 196.75);
--chart-3: oklch(0.397 0.242 268.465);
--chart-4: oklch(0.779 0.129 196.754);
--chart-5: oklch(0.538 0.162 254.589);
}