Hoarse is a shadcn/ui theme built around a light violet primary color (#bca8e1) with light purple accents (#d8a8e1). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the light violet primary (#bca8e1) on a neutral background (#040308).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #040308black |
| Foreground | #0a0416black | #ffffffwhite |
| Card | #f9f8fcghostwhite | #040308black |
| Card foreground | #0a0416black | #ffffffwhite |
| Popover | #f9f8fcghostwhite | #040308black |
| Popover foreground | #0a0416black | #ffffffwhite |
| Primary | #bca8e1lightsteelblue | #bca8e1lightsteelblue |
| Primary foreground | #251740midnightblue | #251740midnightblue |
| Secondary | #a8b1e1lightsteelblue | #a8b1e1lightsteelblue |
| Secondary foreground | #171d40midnightblue | #171d40midnightblue |
| Muted | #dcdfeflavender | #101323black |
| Muted foreground | #4f4f4fdarkslategray | #b0b0b0darkgray |
| Accent | #d8a8e1plum | #d8a8e1plum |
| Accent foreground | #3a1740midnightblue | #3a1740midnightblue |
| Destructive | #c12f15firebrick | #ea583etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bca8e1lightsteelblue | #bca8e1lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 6.15:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 5.70:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 8.52:1 | AAA |
| Accent | 7.71:1 | AAA |
| Destructive | 5.94:1 | AA |
Paste this into your globals.css to use Hoarse in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 302.128);
--foreground: oklch(0.132 0.041 299.406);
--muted: oklch(0.905 0.023 277.935);
--muted-foreground: oklch(0.428 0 180);
--popover: oklch(0.981 0.005 302.128);
--popover-foreground: oklch(0.132 0.041 299.406);
--card: oklch(0.981 0.005 302.128);
--card-foreground: oklch(0.132 0.041 299.406);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.769 0.082 300.519);
--primary-foreground: oklch(0.247 0.076 296.549);
--secondary: oklch(0.769 0.069 276.848);
--secondary-foreground: oklch(0.246 0.067 272.967);
--accent: oklch(0.794 0.094 321.301);
--accent-foreground: oklch(0.276 0.084 321.423);
--destructive: oklch(0.533 0.186 32.236);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.769 0.082 300.519);
--chart-1: oklch(0.769 0.082 300.519);
--chart-2: oklch(0.769 0.069 276.848);
--chart-3: oklch(0.794 0.094 321.301);
--chart-4: oklch(0.8 0.059 277.126);
--chart-5: oklch(0.765 0.087 300.4);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.019 302.803);
--foreground: oklch(1 0 180);
--muted: oklch(0.191 0.035 275.048);
--muted-foreground: oklch(0.757 0 180);
--popover: oklch(0.102 0.019 302.803);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.102 0.019 302.803);
--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.769 0.082 300.519);
--primary-foreground: oklch(0.247 0.076 296.549);
--secondary: oklch(0.769 0.069 276.848);
--secondary-foreground: oklch(0.246 0.067 272.967);
--accent: oklch(0.794 0.094 321.301);
--accent-foreground: oklch(0.276 0.084 321.423);
--destructive: oklch(0.649 0.185 32.232);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.769 0.082 300.519);
--chart-1: oklch(0.769 0.082 300.519);
--chart-2: oklch(0.769 0.069 276.848);
--chart-3: oklch(0.794 0.094 321.301);
--chart-4: oklch(0.8 0.059 277.126);
--chart-5: oklch(0.765 0.087 300.4);
}