Initial is a shadcn/ui theme built around a vivid violet primary color (#c889f5) with vivid teal accents (#89f5c8). The light mode uses a neutral background (#faf7fd). Dark mode keeps the vivid violet primary (#c889f5) on a violet-tinted background (#08050a).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #08050ablack |
| Foreground | #0e0415black | #faf9fbghostwhite |
| Card | #faf7fdghostwhite | #08050ablack |
| Card foreground | #0e0415black | #faf9fbghostwhite |
| Popover | #faf7fdghostwhite | #08050ablack |
| Popover foreground | #0e0415black | #faf9fbghostwhite |
| Primary | #c889f5violet | #c889f5violet |
| Primary foreground | #2c0647midnightblue | #2c0647midnightblue |
| Secondary | #f5c889burlywood | #f5c889burlywood |
| Secondary foreground | #472c06maroon | #472c06maroon |
| Muted | #ebe9e5linen | #1a1714black |
| Muted foreground | #4e4841darkslategray | #beb9b1silver |
| Accent | #89f5c8aquamarine | #89f5c8aquamarine |
| Accent foreground | #06472cdarkgreen | #06472cdarkgreen |
| Destructive | #912903saddlebrown | #fa4e0forangered |
| Destructive foreground | #fed6c8bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c889f5violet | #c889f5violet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.92:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 7.42:1 | AAA |
| Accent | 8.23:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 9.12:1 | AAA |
| Accent | 8.23:1 | AAA |
| Destructive | 3.40:1 | AA Large |
Paste this into your globals.css to use Initial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 311.657);
--foreground: oklch(0.139 0.042 310.57);
--muted: oklch(0.934 0.005 76.626);
--muted-foreground: oklch(0.406 0.014 76.444);
--popover: oklch(0.981 0.008 311.657);
--popover-foreground: oklch(0.139 0.042 310.57);
--card: oklch(0.981 0.008 311.657);
--card-foreground: oklch(0.139 0.042 310.57);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.735 0.164 309.8);
--primary-foreground: oklch(0.237 0.111 305.525);
--secondary: oklch(0.859 0.095 75.28);
--secondary-foreground: oklch(0.318 0.064 69.829);
--accent: oklch(0.894 0.12 164.951);
--accent-foreground: oklch(0.352 0.077 159.005);
--destructive: oklch(0.44 0.145 36.811);
--destructive-foreground: oklch(0.907 0.049 40.992);
--ring: oklch(0.735 0.164 309.8);
--chart-1: oklch(0.735 0.164 309.8);
--chart-2: oklch(0.859 0.095 75.28);
--chart-3: oklch(0.894 0.12 164.951);
--chart-4: oklch(0.875 0.084 75.619);
--chart-5: oklch(0.733 0.169 309.717);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.015 312.724);
--foreground: oklch(0.983 0.004 311.694);
--muted: oklch(0.208 0.008 76.424);
--muted-foreground: oklch(0.787 0.012 76.576);
--popover: oklch(0.124 0.015 312.724);
--popover-foreground: oklch(0.983 0.004 311.694);
--card: oklch(0.124 0.015 312.724);
--card-foreground: oklch(0.983 0.004 311.694);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.735 0.164 309.8);
--primary-foreground: oklch(0.237 0.111 305.525);
--secondary: oklch(0.859 0.095 75.28);
--secondary-foreground: oklch(0.318 0.064 69.829);
--accent: oklch(0.894 0.12 164.951);
--accent-foreground: oklch(0.352 0.077 159.005);
--destructive: oklch(0.661 0.217 36.633);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.735 0.164 309.8);
--chart-1: oklch(0.735 0.164 309.8);
--chart-2: oklch(0.859 0.095 75.28);
--chart-3: oklch(0.894 0.12 164.951);
--chart-4: oklch(0.875 0.084 75.619);
--chart-5: oklch(0.733 0.169 309.717);
}