Consulting is a shadcn/ui theme built around a purple primary color (#8c449c) with muted purple accents (#c3b3c7). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#8c449c) on a neutral background (#070208).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070208black |
| Foreground | #040104black | #ffffffwhite |
| Card | #fcfcfcsnow | #0b030cblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #0b030cblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #8c449crebeccapurple | #8c449crebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cfc8d0lightgrey | #2d222fdarkslategray |
| Secondary foreground | #362f37darkslategray | #c8b8ccsilver |
| Muted | #efeaf0whitesmoke | #140f15black |
| Muted foreground | #625266dimgray | #aa99addarkgray |
| Accent | #c3b3c7silver | #442c49darkslategray |
| Accent foreground | #271e29darkslategray | #dbc9dethistle |
| Destructive | #ab3a0dfirebrick | #e84e11orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8c449crebeccapurple | #8c449crebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 6.08:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 20.55:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 7.09:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Consulting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.082 0.026 322.512);
--muted: oklch(0.943 0.009 319.999);
--muted-foreground: oklch(0.461 0.038 320.062);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.514 0.151 319.989);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.84 0.013 320.006);
--secondary-foreground: oklch(0.315 0.017 320.039);
--accent: oklch(0.786 0.033 320.029);
--accent-foreground: oklch(0.251 0.024 320.069);
--destructive: oklch(0.505 0.156 38.43);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.514 0.151 319.989);
--chart-1: oklch(0.514 0.151 319.989);
--chart-2: oklch(0.84 0.013 320.006);
--chart-3: oklch(0.786 0.033 320.029);
--chart-4: oklch(0.865 0.011 320.003);
--chart-5: oklch(0.514 0.161 319.943);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.026 322);
--foreground: oklch(1 0 180);
--muted: oklch(0.177 0.013 320.054);
--muted-foreground: oklch(0.704 0.034 320.035);
--popover: oklch(0.121 0.03 321.64);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.03 321.64);
--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.514 0.151 319.989);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.271 0.028 320.076);
--secondary-foreground: oklch(0.802 0.032 320.028);
--accent: oklch(0.334 0.059 320.099);
--accent-foreground: oklch(0.856 0.035 320.028);
--destructive: oklch(0.632 0.2 38.005);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.514 0.151 319.989);
--chart-1: oklch(0.514 0.151 319.989);
--chart-2: oklch(0.271 0.028 320.076);
--chart-3: oklch(0.334 0.059 320.099);
--chart-4: oklch(0.301 0.033 320.078);
--chart-5: oklch(0.514 0.161 319.943);
}