Purpurite Violet Grasshopper is a shadcn/ui theme built around a muted purple primary color (#5b3960) with muted teal accents (#39605b). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted purple primary (#5b3960) on a purple-tinted background (#0a050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #0a050bblack |
| Foreground | #040104black | #f8f6f8whitesmoke |
| Card | #fbf8fcghostwhite | #0d060eblack |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #fbf8fcghostwhite | #0d060eblack |
| Popover foreground | #000000black | #faf9fbghostwhite |
| Primary | #5b3960darkslateblue | #5b3960darkslateblue |
| Primary foreground | #eadfeclavender | #eadfeclavender |
| Secondary | #605b39darkolivegreen | #605b39darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eae6cdantiquewhite | #322f15darkslategray |
| Muted foreground | #686655dimgray | #aaa897darkgray |
| Accent | #39605bdarkslategray | #39605bdarkslategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #923702saddlebrown | #ec5904orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #ede8eelavender | #221a23black |
| Input | #ede8eelavender | #221a23black |
| Ring | #5b3960darkslateblue | #5b3960darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 6.87:1 | AA |
| Muted text | 4.61:1 | AA |
| Accent | 7.02:1 | AAA |
| Destructive | 7.60:1 | AAA |
| Text on background | 18.81:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 6.87:1 | AA |
| Muted text | 5.65:1 | AA |
| Accent | 7.02:1 | AAA |
| Destructive | 3.50:1 | AA Large |
Paste this into your globals.css to use Purpurite Violet Grasshopper in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 322.122);
--foreground: oklch(0.083 0.024 324.321);
--muted: oklch(0.922 0.034 100.862);
--muted-foreground: oklch(0.506 0.026 101.049);
--popover: oklch(0.983 0.005 322.131);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.005 322.131);
--card-foreground: oklch(0 0 0);
--border: oklch(0.936 0.01 322.149);
--input: oklch(0.936 0.01 322.149);
--primary: oklch(0.401 0.075 322.671);
--primary-foreground: oklch(0.917 0.021 322.19);
--secondary: oklch(0.467 0.051 101.661);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.458 0.044 186.376);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.459 0.134 43.073);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.401 0.075 322.671);
--chart-1: oklch(0.401 0.075 322.671);
--chart-2: oklch(0.467 0.051 101.661);
--chart-3: oklch(0.458 0.044 186.376);
--chart-4: oklch(0.499 0.055 101.671);
--chart-5: oklch(0.4 0.084 322.718);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.019 323.302);
--foreground: oklch(0.976 0.003 322.123);
--muted: oklch(0.3 0.041 101.824);
--muted-foreground: oklch(0.728 0.024 100.806);
--popover: oklch(0.139 0.022 322.864);
--popover-foreground: oklch(0.984 0.002 322.12);
--card: oklch(0.139 0.022 322.864);
--card-foreground: oklch(0.984 0.002 322.12);
--border: oklch(0.232 0.021 322.41);
--input: oklch(0.232 0.021 322.41);
--primary: oklch(0.401 0.075 322.671);
--primary-foreground: oklch(0.917 0.021 322.19);
--secondary: oklch(0.467 0.051 101.661);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.458 0.044 186.376);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.65 0.196 41.656);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.401 0.075 322.671);
--chart-1: oklch(0.401 0.075 322.671);
--chart-2: oklch(0.467 0.051 101.661);
--chart-3: oklch(0.458 0.044 186.376);
--chart-4: oklch(0.499 0.055 101.671);
--chart-5: oklch(0.4 0.084 322.718);
}