Macaw is a shadcn/ui theme built around a deep violet primary color (#221537) with deep green accents (#2a3715). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the deep violet primary (#221537) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f7fdghostwhite | #000000black |
| Foreground | #07030cblack | #f7f5fawhitesmoke |
| Card | #f9f7fdghostwhite | #000000black |
| Card foreground | #07030cblack | #f7f5fawhitesmoke |
| Popover | #f9f7fdghostwhite | #000000black |
| Popover foreground | #07030cblack | #f7f5fawhitesmoke |
| Primary | #221537midnightblue | #221537midnightblue |
| Primary foreground | #b9a3dblightsteelblue | #b9a3dblightsteelblue |
| Secondary | #2a3715darkslategray | #2a3715darkslategray |
| Secondary foreground | #c6dba3silver | #c6dba3silver |
| Muted | #e8eeddbeige | #1c2211black |
| Muted foreground | #636b57dimgray | #a0a894darkgray |
| Accent | #2a3715darkslategray | #2a3715darkslategray |
| Accent foreground | #c6dba3silver | #c6dba3silver |
| Destructive | #d5120bfirebrick | #f5433dtomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #221537midnightblue | #221537midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.26:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 8.47:1 | AAA |
| Muted text | 4.70:1 | AA |
| Accent | 8.47:1 | AAA |
| Destructive | 5.34:1 | AA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 8.47:1 | AAA |
| Muted text | 6.60:1 | AA |
| Accent | 8.47:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Macaw in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 303.531);
--foreground: oklch(0.115 0.025 304.36);
--muted: oklch(0.94 0.025 124.032);
--muted-foreground: oklch(0.514 0.031 124.553);
--popover: oklch(0.98 0.007 303.531);
--popover-foreground: oklch(0.115 0.025 304.36);
--card: oklch(0.98 0.007 303.531);
--card-foreground: oklch(0.115 0.025 304.36);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.234 0.064 299.115);
--primary-foreground: oklch(0.754 0.082 302.002);
--secondary: oklch(0.316 0.057 126.775);
--secondary-foreground: oklch(0.862 0.078 125.039);
--accent: oklch(0.316 0.057 126.775);
--accent-foreground: oklch(0.862 0.078 125.039);
--destructive: oklch(0.553 0.22 29.22);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.234 0.064 299.115);
--chart-1: oklch(0.234 0.064 299.115);
--chart-2: oklch(0.316 0.057 126.775);
--chart-3: oklch(0.316 0.057 126.775);
--chart-4: oklch(0.355 0.066 126.913);
--chart-5: oklch(0.232 0.068 298.705);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.973 0.007 303.54);
--muted: oklch(0.241 0.033 125.886);
--muted-foreground: oklch(0.719 0.029 124.237);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.973 0.007 303.54);
--card: oklch(0 0 0);
--card-foreground: oklch(0.973 0.007 303.54);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.234 0.064 299.115);
--primary-foreground: oklch(0.754 0.082 302.002);
--secondary: oklch(0.316 0.057 126.775);
--secondary-foreground: oklch(0.862 0.078 125.039);
--accent: oklch(0.316 0.057 126.775);
--accent-foreground: oklch(0.862 0.078 125.039);
--destructive: oklch(0.645 0.215 27.143);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.234 0.064 299.115);
--chart-1: oklch(0.234 0.064 299.115);
--chart-2: oklch(0.316 0.057 126.775);
--chart-3: oklch(0.316 0.057 126.775);
--chart-4: oklch(0.355 0.066 126.913);
--chart-5: oklch(0.232 0.068 298.705);
}