Elaborate is a shadcn/ui theme built around a near-black primary color (#020303) with neutral gray accents (#ced4d3). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#020303) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #05100eblack | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #05100eblack | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #05100eblack | #ffffffwhite |
| Primary | #020303black | #020303black |
| Primary foreground | #97a19fdarkgray | #97a19fdarkgray |
| Secondary | #ced4d3lightgrey | #26312fdarkslategray |
| Secondary foreground | #353b3adarkslategray | #bdcbc9silver |
| Muted | #e0ebe9lavender | #141f1dblack |
| Muted foreground | #566c68dimgray | #93a9a5darkgray |
| Accent | #ced4d3lightgrey | #26312fdarkslategray |
| Accent foreground | #353b3adarkslategray | #bdcbc9silver |
| Destructive | #8a0c05darkred | #f7281dorangered |
| Destructive foreground | #fdc7c4pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #020303black | #020303black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 7.60:1 | AAA |
| Muted text | 4.61:1 | AA |
| Accent | 7.60:1 | AAA |
| Destructive | 6.63:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 6.78:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Elaborate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.159 0.018 183.23);
--muted: oklch(0.932 0.013 185.09);
--muted-foreground: oklch(0.511 0.026 184.061);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.159 0.018 183.23);
--card: oklch(1 0 180);
--card-foreground: oklch(0.159 0.018 183.23);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.093 0.001 185.413);
--primary-foreground: oklch(0.699 0.012 185.013);
--secondary: oklch(0.865 0.006 185.264);
--secondary-foreground: oklch(0.347 0.009 184.741);
--accent: oklch(0.865 0.006 185.264);
--accent-foreground: oklch(0.347 0.009 184.741);
--destructive: oklch(0.403 0.158 29.575);
--destructive-foreground: oklch(0.876 0.062 21.903);
--ring: oklch(0.093 0.001 185.413);
--chart-1: oklch(0.093 0.001 185.413);
--chart-2: oklch(0.865 0.006 185.264);
--chart-3: oklch(0.865 0.006 185.264);
--chart-4: oklch(0.888 0.005 185.3);
--chart-5: oklch(0.093 0.002 185.392);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.229 0.017 183.35);
--muted-foreground: oklch(0.716 0.024 184.541);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.093 0.001 185.413);
--primary-foreground: oklch(0.699 0.012 185.013);
--secondary: oklch(0.301 0.015 184.137);
--secondary-foreground: oklch(0.832 0.016 184.952);
--accent: oklch(0.301 0.015 184.137);
--accent-foreground: oklch(0.832 0.016 184.952);
--destructive: oklch(0.626 0.238 29.213);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.093 0.001 185.413);
--chart-1: oklch(0.093 0.001 185.413);
--chart-2: oklch(0.301 0.015 184.137);
--chart-3: oklch(0.301 0.015 184.137);
--chart-4: oklch(0.333 0.017 184.089);
--chart-5: oklch(0.093 0.002 185.392);
}