Counseling is a shadcn/ui theme built around a vivid violet primary color (#9f0af0) with muted light violet accents (#d6cddb). The light mode uses a neutral background (#faf8fc). Dark mode keeps the vivid violet primary (#9f0af0) on a violet-tinted background (#09030c).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #09030cblack |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #faf8fcghostwhite | #09030cblack |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #faf8fcghostwhite | #09030cblack |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #9f0af0darkviolet | #9f0af0darkviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d6cddblightgrey | #151316black |
| Secondary foreground | #3d3144darkslategray | #afa8b3darkgray |
| Muted | #dcd8dfgainsboro | #252027darkslategray |
| Muted foreground | #685572dimgray | #a08daadarkgray |
| Accent | #d6cddblightgrey | #151316black |
| Accent foreground | #3d3144darkslategray | #afa8b3darkgray |
| Destructive | #d52110firebrick | #ef3e2etomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9f0af0darkviolet | #9f0af0darkviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 5.55:1 | AA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 4.77:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 5.16:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 5.55:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 5.22:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Counseling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 314.191);
--foreground: oklch(0 0 0);
--muted: oklch(0.888 0.01 314.159);
--muted-foreground: oklch(0.479 0.053 313.611);
--popover: oklch(0.982 0.005 314.191);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.005 314.191);
--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.557 0.283 306.803);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.859 0.021 314.083);
--secondary-foreground: oklch(0.335 0.036 313.623);
--accent: oklch(0.859 0.021 314.083);
--accent-foreground: oklch(0.335 0.036 313.623);
--destructive: oklch(0.56 0.214 30.093);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.557 0.283 306.803);
--chart-1: oklch(0.557 0.283 306.803);
--chart-2: oklch(0.859 0.021 314.083);
--chart-3: oklch(0.859 0.021 314.083);
--chart-4: oklch(0.884 0.017 314.111);
--chart-5: oklch(0.561 0.287 306.421);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.029 315.928);
--foreground: oklch(0.992 0.001 314.212);
--muted: oklch(0.253 0.013 313.93);
--muted-foreground: oklch(0.669 0.049 313.821);
--popover: oklch(0.118 0.029 315.928);
--popover-foreground: oklch(0.992 0.001 314.212);
--card: oklch(0.118 0.029 315.928);
--card-foreground: oklch(0.992 0.001 314.212);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.557 0.283 306.803);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.19 0.006 314.035);
--secondary-foreground: oklch(0.74 0.018 314.084);
--accent: oklch(0.19 0.006 314.035);
--accent-foreground: oklch(0.74 0.018 314.084);
--destructive: oklch(0.63 0.215 29.609);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.557 0.283 306.803);
--chart-1: oklch(0.557 0.283 306.803);
--chart-2: oklch(0.19 0.006 314.035);
--chart-3: oklch(0.19 0.006 314.035);
--chart-4: oklch(0.223 0.008 314.011);
--chart-5: oklch(0.561 0.287 306.421);
}