Violet Blue Crab is a shadcn/ui theme built around a vivid violet primary color (#4715c6) with vivid green accents (#15c647). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the vivid violet primary (#4715c6) on a neutral background (#040308).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #040308black |
| Foreground | #020104black | #f9f9fbghostwhite |
| Card | #f9f8fcghostwhite | #040308black |
| Card foreground | #020104black | #f9f9fbghostwhite |
| Popover | #f9f8fcghostwhite | #040308black |
| Popover foreground | #020104black | #f9f9fbghostwhite |
| Primary | #4715c6rebeccapurple | #4715c6rebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c64715chocolate | #c64715chocolate |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e5e2e1gainsboro | #1e1b1ablack |
| Muted foreground | #685e5adimgray | #a59b97darkgray |
| Accent | #15c647limegreen | #15c647limegreen |
| Accent foreground | #010e05black | #010e05black |
| Destructive | #a23a07saddlebrown | #e6530aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #dfdee3gainsboro | #19181bblack |
| Input | #dfdee3gainsboro | #19181bblack |
| Ring | #4715c6rebeccapurple | #4715c6rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.69:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 9.56:1 | AAA |
| Secondary button | 4.84:1 | AA |
| Muted text | 4.88:1 | AA |
| Accent | 8.66:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 9.56:1 | AAA |
| Secondary button | 4.84:1 | AA |
| Muted text | 6.29:1 | AA |
| Accent | 8.66:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Violet Blue Crab in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 299.217);
--foreground: oklch(0.075 0.021 299.362);
--muted: oklch(0.915 0.004 43.091);
--muted-foreground: oklch(0.49 0.014 42.896);
--popover: oklch(0.981 0.005 299.217);
--popover-foreground: oklch(0.075 0.021 299.362);
--card: oklch(0.981 0.005 299.217);
--card-foreground: oklch(0.075 0.021 299.362);
--border: oklch(0.904 0.006 299.192);
--input: oklch(0.904 0.006 299.192);
--primary: oklch(0.42 0.237 282.043);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.569 0.172 38.849);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.722 0.214 146.358);
--accent-foreground: oklch(0.145 0.031 153.995);
--destructive: oklch(0.49 0.147 40.968);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.42 0.237 282.043);
--chart-1: oklch(0.42 0.237 282.043);
--chart-2: oklch(0.569 0.172 38.849);
--chart-3: oklch(0.722 0.214 146.358);
--chart-4: oklch(0.597 0.182 38.77);
--chart-5: oklch(0.421 0.242 281.134);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.018 299.34);
--foreground: oklch(0.983 0.003 299.251);
--muted: oklch(0.226 0.006 42.923);
--muted-foreground: oklch(0.697 0.013 42.972);
--popover: oklch(0.102 0.018 299.34);
--popover-foreground: oklch(0.983 0.003 299.251);
--card: oklch(0.102 0.018 299.34);
--card-foreground: oklch(0.983 0.003 299.251);
--border: oklch(0.21 0.007 298.723);
--input: oklch(0.21 0.007 298.723);
--primary: oklch(0.42 0.237 282.043);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.569 0.172 38.849);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.722 0.214 146.358);
--accent-foreground: oklch(0.145 0.031 153.995);
--destructive: oklch(0.634 0.195 40.225);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.42 0.237 282.043);
--chart-1: oklch(0.42 0.237 282.043);
--chart-2: oklch(0.569 0.172 38.849);
--chart-3: oklch(0.722 0.214 146.358);
--chart-4: oklch(0.597 0.182 38.77);
--chart-5: oklch(0.421 0.242 281.134);
}