Consul is a shadcn/ui theme built around a light cyan primary color (#b4e3e9) with light green accents (#e3e9b4). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the light cyan primary (#b4e3e9) on a cyan-tinted background (#030b0c).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfcghostwhite | #030b0cblack |
| Foreground | #021012black | #ffffffwhite |
| Card | #f8fbfcghostwhite | #030b0cblack |
| Card foreground | #021012black | #ffffffwhite |
| Popover | #f8fbfcghostwhite | #030b0cblack |
| Popover foreground | #021012black | #ffffffwhite |
| Primary | #b4e3e9powderblue | #b4e3e9powderblue |
| Primary foreground | #194d52darkslategray | #194d52darkslategray |
| Secondary | #e9b4e3thistle | #e9b4e3thistle |
| Secondary foreground | #52194dindigo | #52194dindigo |
| Muted | #ece4eblavender | #1b131ablack |
| Muted foreground | #4a3f49darkslategray | #c0b5bfsilver |
| Accent | #e3e9b4palegoldenrod | #e3e9b4palegoldenrod |
| Accent foreground | #4d5219darkolivegreen | #4d5219darkolivegreen |
| Destructive | #7f260bsaddlebrown | #ee683ftomato |
| Destructive foreground | #facfc2peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b4e3e9powderblue | #b4e3e9powderblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.64:1 | AAA |
| Text on card | 18.64:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 8.04:1 | AAA |
| Accent | 6.53:1 | AA |
| Destructive | 6.77:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 9.18:1 | AAA |
| Accent | 6.53:1 | AA |
| Destructive | 6.68:1 | AA |
Paste this into your globals.css to use Consul in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.003 204.963);
--foreground: oklch(0.162 0.022 203.583);
--muted: oklch(0.927 0.013 328.742);
--muted-foreground: oklch(0.384 0.022 329.211);
--popover: oklch(0.987 0.003 204.963);
--popover-foreground: oklch(0.162 0.022 203.583);
--card: oklch(0.987 0.003 204.963);
--card-foreground: oklch(0.162 0.022 203.583);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.886 0.049 204.699);
--primary-foreground: oklch(0.388 0.055 205.498);
--secondary: oklch(0.833 0.086 329.68);
--secondary-foreground: oklch(0.326 0.11 331.977);
--accent: oklch(0.916 0.068 112.392);
--accent-foreground: oklch(0.422 0.08 114.721);
--destructive: oklch(0.403 0.127 36.166);
--destructive-foreground: oklch(0.888 0.052 37.593);
--ring: oklch(0.886 0.049 204.699);
--chart-1: oklch(0.886 0.049 204.699);
--chart-2: oklch(0.833 0.086 329.68);
--chart-3: oklch(0.916 0.068 112.392);
--chart-4: oklch(0.859 0.072 329.483);
--chart-5: oklch(0.888 0.052 204.694);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.015 202.87);
--foreground: oklch(1 0 180);
--muted: oklch(0.2 0.018 329.564);
--muted-foreground: oklch(0.784 0.018 328.851);
--popover: oklch(0.141 0.015 202.87);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.015 202.87);
--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.886 0.049 204.699);
--primary-foreground: oklch(0.388 0.055 205.498);
--secondary: oklch(0.833 0.086 329.68);
--secondary-foreground: oklch(0.326 0.11 331.977);
--accent: oklch(0.916 0.068 112.392);
--accent-foreground: oklch(0.422 0.08 114.721);
--destructive: oklch(0.676 0.176 37.367);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.886 0.049 204.699);
--chart-1: oklch(0.886 0.049 204.699);
--chart-2: oklch(0.833 0.086 329.68);
--chart-3: oklch(0.916 0.068 112.392);
--chart-4: oklch(0.859 0.072 329.483);
--chart-5: oklch(0.888 0.052 204.694);
}