Macrame is a shadcn/ui theme built around a deep indigo primary color (#1a1f51) with deep violet accents (#311a51). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#1a1f51) on an indigo-tinted background (#04050b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04050bblack |
| Foreground | #02030dblack | #fcfcfdwhite |
| Card | #ffffffwhite | #04050bblack |
| Card foreground | #02030dblack | #fcfcfdwhite |
| Popover | #ffffffwhite | #04050bblack |
| Popover foreground | #02030dblack | #fcfcfdwhite |
| Primary | #1a1f51midnightblue | #1a1f51midnightblue |
| Primary foreground | #b6bae7lightsteelblue | #b6bae7lightsteelblue |
| Secondary | #1a3a51darkslategray | #1a3a51darkslategray |
| Secondary foreground | #b6d3e7lightblue | #b6d3e7lightblue |
| Muted | #dae4ecgainsboro | #131d25black |
| Muted foreground | #45484adarkslategray | #b5b8basilver |
| Accent | #311a51midnightblue | #311a51midnightblue |
| Accent foreground | #cab6e7thistle | #cab6e7thistle |
| Destructive | #bd1900firebrick | #ff3819orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a1f51midnightblue | #1a1f51midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.55:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 7.60:1 | AAA |
| Muted text | 7.16:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 6.37:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 7.60:1 | AAA |
| Muted text | 8.52:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 3.59:1 | AA Large |
Paste this into your globals.css to use Macrame in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.107 0.027 274.253);
--muted: oklch(0.915 0.015 238.592);
--muted-foreground: oklch(0.399 0.006 238.575);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.107 0.027 274.253);
--card: oklch(1 0 180);
--card-foreground: oklch(0.107 0.027 274.253);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.268 0.091 274.583);
--primary-foreground: oklch(0.801 0.064 280.771);
--secondary: oklch(0.336 0.055 241.989);
--secondary-foreground: oklch(0.851 0.042 239.11);
--accent: oklch(0.282 0.096 299.351);
--accent-foreground: oklch(0.809 0.072 303.811);
--destructive: oklch(0.509 0.197 31.195);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.268 0.091 274.583);
--chart-1: oklch(0.268 0.091 274.583);
--chart-2: oklch(0.336 0.055 241.989);
--chart-3: oklch(0.282 0.096 299.351);
--chart-4: oklch(0.366 0.061 242.129);
--chart-5: oklch(0.265 0.096 273.944);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.017 278.132);
--foreground: oklch(0.991 0.002 282.183);
--muted: oklch(0.227 0.02 239.862);
--muted-foreground: oklch(0.781 0.005 238.454);
--popover: oklch(0.117 0.017 278.132);
--popover-foreground: oklch(0.991 0.002 282.183);
--card: oklch(0.117 0.017 278.132);
--card-foreground: oklch(0.991 0.002 282.183);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.268 0.091 274.583);
--primary-foreground: oklch(0.801 0.064 280.771);
--secondary: oklch(0.336 0.055 241.989);
--secondary-foreground: oklch(0.851 0.042 239.11);
--accent: oklch(0.282 0.096 299.351);
--accent-foreground: oklch(0.809 0.072 303.811);
--destructive: oklch(0.651 0.236 31.524);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.268 0.091 274.583);
--chart-1: oklch(0.268 0.091 274.583);
--chart-2: oklch(0.336 0.055 241.989);
--chart-3: oklch(0.282 0.096 299.351);
--chart-4: oklch(0.366 0.061 242.129);
--chart-5: oklch(0.265 0.096 273.944);
}