Misty is a shadcn/ui theme built around a vivid violet primary color (#c167f9) with vivid green accents (#9ff967). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid violet primary (#c167f9) on a violet-tinted background (#08040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #08040bblack |
| Foreground | #000000black | #faf9fbghostwhite |
| Card | #fdfbfewhite | #08040bblack |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #fdfbfewhite | #08040bblack |
| Popover foreground | #000000black | #faf9fbghostwhite |
| Primary | #c167f9mediumorchid | #c167f9mediumorchid |
| Primary foreground | #1c022cblack | #1c022cblack |
| Secondary | #9ff967lightgreen | #9ff967lightgreen |
| Secondary foreground | #122c02black | #122c02black |
| Muted | #e1ecd9gainsboro | #1a2613black |
| Muted foreground | #494e46darkslategray | #b4b9b1silver |
| Accent | #9ff967lightgreen | #9ff967lightgreen |
| Accent foreground | #122c02black | #122c02black |
| Destructive | #612205maroon | #f35912orangered |
| Destructive foreground | #fabb9elightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c167f9mediumorchid | #c167f9mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.39:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 6.01:1 | AA |
| Secondary button | 11.66:1 | AAA |
| Muted text | 7.00:1 | AAA |
| Accent | 11.66:1 | AAA |
| Destructive | 7.27:1 | AAA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 6.01:1 | AA |
| Secondary button | 11.66:1 | AAA |
| Muted text | 7.93:1 | AAA |
| Accent | 11.66:1 | AAA |
| Destructive | 3.37:1 | AA Large |
Paste this into your globals.css to use Misty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 312.955);
--foreground: oklch(0 0 0);
--muted: oklch(0.931 0.028 133.197);
--muted-foreground: oklch(0.416 0.013 133.211);
--popover: oklch(0.99 0.004 312.955);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.99 0.004 312.955);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.679 0.217 310.331);
--primary-foreground: oklch(0.178 0.084 309.063);
--secondary: oklch(0.895 0.2 135.192);
--secondary-foreground: oklch(0.262 0.075 135.801);
--accent: oklch(0.895 0.2 135.192);
--accent-foreground: oklch(0.262 0.075 135.801);
--destructive: oklch(0.343 0.099 41.568);
--destructive-foreground: oklch(0.843 0.083 45.954);
--ring: oklch(0.679 0.217 310.331);
--chart-1: oklch(0.679 0.217 310.331);
--chart-2: oklch(0.895 0.2 135.192);
--chart-3: oklch(0.895 0.2 135.192);
--chart-4: oklch(0.903 0.183 134.866);
--chart-5: oklch(0.678 0.222 310.21);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.02 314.295);
--foreground: oklch(0.983 0.004 312.957);
--muted: oklch(0.25 0.038 134.225);
--muted-foreground: oklch(0.779 0.011 133.087);
--popover: oklch(0.122 0.02 314.295);
--popover-foreground: oklch(0.983 0.004 312.957);
--card: oklch(0.122 0.02 314.295);
--card-foreground: oklch(0.983 0.004 312.957);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.679 0.217 310.331);
--primary-foreground: oklch(0.178 0.084 309.063);
--secondary: oklch(0.895 0.2 135.192);
--secondary-foreground: oklch(0.262 0.075 135.801);
--accent: oklch(0.895 0.2 135.192);
--accent-foreground: oklch(0.262 0.075 135.801);
--destructive: oklch(0.661 0.201 39.954);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.679 0.217 310.331);
--chart-1: oklch(0.679 0.217 310.331);
--chart-2: oklch(0.895 0.2 135.192);
--chart-3: oklch(0.895 0.2 135.192);
--chart-4: oklch(0.903 0.183 134.866);
--chart-5: oklch(0.678 0.222 310.21);
}