High is a shadcn/ui theme built around a vivid purple primary color (#8a05a8) with vivid purple accents (#a80575). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the vivid purple primary (#8a05a8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fdghostwhite | #000000black |
| Foreground | #040104black | #f9f4fawhitesmoke |
| Card | #fcf7fdghostwhite | #000000black |
| Card foreground | #040104black | #f9f4fawhitesmoke |
| Popover | #fcf7fdghostwhite | #000000black |
| Popover foreground | #040104black | #f9f4fawhitesmoke |
| Primary | #8a05a8darkmagenta | #8a05a8darkmagenta |
| Primary foreground | #f9e1felavenderblush | #f9e1felavenderblush |
| Secondary | #3905a8indigo | #3905a8indigo |
| Secondary foreground | #eae1felavender | #eae1felavender |
| Muted | #d6d2dfgainsboro | #24202ddarkslategray |
| Muted foreground | #4e4d51darkslategray | #afaeb2darkgray |
| Accent | #a80575darkmagenta | #a80575darkmagenta |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #640702maroon | #fb2e23orangered |
| Destructive foreground | #fda09blightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8a05a8darkmagenta | #8a05a8darkmagenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 9.47:1 | AAA |
| Muted text | 5.66:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 19.34:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 9.47:1 | AAA |
| Muted text | 7.23:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use High in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.01 320.001);
--foreground: oklch(0.082 0.025 322.475);
--muted: oklch(0.872 0.018 300.423);
--muted-foreground: oklch(0.422 0.008 300.457);
--popover: oklch(0.981 0.01 320.001);
--popover-foreground: oklch(0.082 0.025 322.475);
--card: oklch(0.981 0.01 320.001);
--card-foreground: oklch(0.082 0.025 322.475);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.468 0.224 318.044);
--primary-foreground: oklch(0.938 0.046 320.035);
--secondary: oklch(0.364 0.214 281.482);
--secondary-foreground: oklch(0.927 0.04 300.059);
--accent: oklch(0.487 0.203 347.306);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.321 0.125 30.03);
--destructive-foreground: oklch(0.798 0.112 23.136);
--ring: oklch(0.468 0.224 318.044);
--chart-1: oklch(0.468 0.224 318.044);
--chart-2: oklch(0.364 0.214 281.482);
--chart-3: oklch(0.487 0.203 347.306);
--chart-4: oklch(0.387 0.228 281.177);
--chart-5: oklch(0.472 0.227 317.898);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.974 0.009 320);
--muted: oklch(0.253 0.025 299.125);
--muted-foreground: oklch(0.752 0.007 300.617);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.974 0.009 320);
--card: oklch(0 0 0);
--card-foreground: oklch(0.974 0.009 320);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.468 0.224 318.044);
--primary-foreground: oklch(0.938 0.046 320.035);
--secondary: oklch(0.364 0.214 281.482);
--secondary-foreground: oklch(0.927 0.04 300.059);
--accent: oklch(0.487 0.203 347.306);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.636 0.238 29.033);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.468 0.224 318.044);
--chart-1: oklch(0.468 0.224 318.044);
--chart-2: oklch(0.364 0.214 281.482);
--chart-3: oklch(0.487 0.203 347.306);
--chart-4: oklch(0.387 0.228 281.177);
--chart-5: oklch(0.472 0.227 317.898);
}