Counselor is a shadcn/ui theme built around a blue primary color (#225f91) with indigo accents (#222791). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#225f91) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020509black | #fcfcfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #020509black | #fcfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #020509black | #fcfcfdwhite |
| Primary | #225f91teal | #225f91teal |
| Primary foreground | #eaf3faaliceblue | #eaf3faaliceblue |
| Secondary | #22918bdarkcyan | #22918bdarkcyan |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dbebealavender | #142423black |
| Muted foreground | #4c5d5cdimgray | #a2b3b2darkgray |
| Accent | #222791midnightblue | #222791midnightblue |
| Accent foreground | #eaebfalavender | #eaebfalavender |
| Destructive | #6a0d0cmaroon | #d81b18crimson |
| Destructive foreground | #f6b2b1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #225f91teal | #225f91teal |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.42:1 | AAA |
| Text on card | 20.42:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 3.84:1 | AA Large |
| Muted text | 5.62:1 | AA |
| Accent | 10.03:1 | AAA |
| Destructive | 7.13:1 | AAA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 3.84:1 | AA Large |
| Muted text | 7.39:1 | AAA |
| Accent | 10.03:1 | AAA |
| Destructive | 5.14:1 | AA |
Paste this into your globals.css to use Counselor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.113 0.015 233.102);
--muted: oklch(0.927 0.016 193.264);
--muted-foreground: oklch(0.462 0.021 192.723);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.113 0.015 233.102);
--card: oklch(1 0 180);
--card-foreground: oklch(0.113 0.015 233.102);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.471 0.102 247.054);
--primary-foreground: oklch(0.96 0.013 242.377);
--secondary: oklch(0.595 0.095 189.821);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.352 0.168 271.62);
--accent-foreground: oklch(0.944 0.02 283.595);
--destructive: oklch(0.338 0.125 27.841);
--destructive-foreground: oklch(0.827 0.08 20.021);
--ring: oklch(0.471 0.102 247.054);
--chart-1: oklch(0.471 0.102 247.054);
--chart-2: oklch(0.595 0.095 189.821);
--chart-3: oklch(0.352 0.168 271.62);
--chart-4: oklch(0.632 0.101 189.794);
--chart-5: oklch(0.472 0.106 247.423);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 242.201);
--muted: oklch(0.245 0.021 191.918);
--muted-foreground: oklch(0.754 0.019 193.117);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 242.201);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 242.201);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.471 0.102 247.054);
--primary-foreground: oklch(0.96 0.013 242.377);
--secondary: oklch(0.595 0.095 189.821);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.352 0.168 271.62);
--accent-foreground: oklch(0.944 0.02 283.595);
--destructive: oklch(0.562 0.218 28.512);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.471 0.102 247.054);
--chart-1: oklch(0.471 0.102 247.054);
--chart-2: oklch(0.595 0.095 189.821);
--chart-3: oklch(0.352 0.168 271.62);
--chart-4: oklch(0.632 0.101 189.794);
--chart-5: oklch(0.472 0.106 247.423);
}