Hold is a shadcn/ui theme built around a violet primary color (#5c2682) with teal accents (#26825c). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#5c2682) on a violet-tinted background (#0b0510).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #0b0510black |
| Foreground | #030104black | #fdfcfdwhite |
| Card | #fdfbfewhite | #0b0510black |
| Card foreground | #030104black | #fdfcfdwhite |
| Popover | #fdfbfewhite | #0b0510black |
| Popover foreground | #030104black | #fdfcfdwhite |
| Primary | #5c2682rebeccapurple | #5c2682rebeccapurple |
| Primary foreground | #efe3f7lavender | #efe3f7lavender |
| Secondary | #825c26saddlebrown | #825c26saddlebrown |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eee9e2linen | #1d1811black |
| Muted foreground | #746858dimgray | #a79b8brosybrown |
| Accent | #26825cseagreen | #26825cseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #be1509firebrick | #f53b2eorangered |
| Destructive foreground | #fffafasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5c2682rebeccapurple | #5c2682rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 5.98:1 | AA |
| Muted text | 4.50:1 | AA |
| Accent | 4.71:1 | AA |
| Destructive | 6.15:1 | AA |
| Text on background | 19.69:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 5.98:1 | AA |
| Muted text | 6.46:1 | AA |
| Accent | 4.71:1 | AA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Hold in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 311.698);
--foreground: oklch(0.083 0.017 313.391);
--muted: oklch(0.936 0.011 76.594);
--muted-foreground: oklch(0.525 0.029 76.246);
--popover: oklch(0.991 0.003 311.698);
--popover-foreground: oklch(0.083 0.017 313.391);
--card: oklch(0.991 0.003 311.698);
--card-foreground: oklch(0.083 0.017 313.391);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.393 0.15 307.571);
--primary-foreground: oklch(0.932 0.029 311.475);
--secondary: oklch(0.504 0.086 72.563);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.544 0.105 161.361);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.51 0.2 29.758);
--destructive-foreground: oklch(0.99 0.005 22.267);
--ring: oklch(0.393 0.15 307.571);
--chart-1: oklch(0.393 0.15 307.571);
--chart-2: oklch(0.504 0.086 72.563);
--chart-3: oklch(0.544 0.105 161.361);
--chart-4: oklch(0.536 0.092 72.465);
--chart-5: oklch(0.393 0.156 307.234);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.029 311.72);
--foreground: oklch(0.991 0.002 311.709);
--muted: oklch(0.213 0.016 76.007);
--muted-foreground: oklch(0.696 0.028 76.406);
--popover: oklch(0.131 0.029 311.72);
--popover-foreground: oklch(0.991 0.002 311.709);
--card: oklch(0.131 0.029 311.72);
--card-foreground: oklch(0.991 0.002 311.709);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.393 0.15 307.571);
--primary-foreground: oklch(0.932 0.029 311.475);
--secondary: oklch(0.504 0.086 72.563);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.544 0.105 161.361);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.637 0.224 29.102);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.393 0.15 307.571);
--chart-1: oklch(0.393 0.15 307.571);
--chart-2: oklch(0.504 0.086 72.563);
--chart-3: oklch(0.544 0.105 161.361);
--chart-4: oklch(0.536 0.092 72.465);
--chart-5: oklch(0.393 0.156 307.234);
}