Communicant is a shadcn/ui theme built around a vivid deep purple primary color (#2d0027) with vivid deep green accents (#002d07). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid deep purple primary (#2d0027) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #030203black |
| Foreground | #120310black | #fcf8fbsnow |
| Card | #fdf7fcsnow | #070306black |
| Card foreground | #0d020cblack | #fdfbfdsnow |
| Popover | #fefbfewhite | #030203black |
| Popover foreground | #120310black | #fcf8fbsnow |
| Primary | #2d0027black | #2d0027black |
| Primary foreground | #fd62e6violet | #fd62e6violet |
| Secondary | #002d07black | #002d07black |
| Secondary foreground | #02f727lime | #02f727lime |
| Muted | #dceadegainsboro | #152317black |
| Muted foreground | #515852darkslategray | #a7aea8darkgray |
| Accent | #002d07black | #002d07black |
| Accent foreground | #02f727lime | #02f727lime |
| Destructive | #ce4009chocolate | #e6480aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2d0027black | #2d0027black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.52:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 10.34:1 | AAA |
| Muted text | 5.87:1 | AA |
| Accent | 10.34:1 | AAA |
| Destructive | 4.81:1 | AA |
| Text on background | 19.70:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 10.34:1 | AAA |
| Muted text | 7.21:1 | AAA |
| Accent | 10.34:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Communicant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 330.31);
--foreground: oklch(0.135 0.043 332.928);
--muted: oklch(0.923 0.021 149.947);
--muted-foreground: oklch(0.451 0.013 149.879);
--popover: oklch(0.991 0.005 330.31);
--popover-foreground: oklch(0.135 0.043 332.928);
--card: oklch(0.982 0.01 330.374);
--card-foreground: oklch(0.121 0.038 332.256);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.205 0.09 335.293);
--primary-foreground: oklch(0.739 0.236 334.057);
--secondary: oklch(0.26 0.08 145.428);
--secondary-foreground: oklch(0.848 0.281 143.278);
--accent: oklch(0.26 0.08 145.428);
--accent-foreground: oklch(0.848 0.281 143.278);
--destructive: oklch(0.572 0.186 37.355);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.205 0.09 335.293);
--chart-1: oklch(0.205 0.09 335.293);
--chart-2: oklch(0.26 0.08 145.428);
--chart-3: oklch(0.26 0.08 145.428);
--chart-4: oklch(0.312 0.098 144.744);
--chart-5: oklch(0.206 0.092 335.392);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.011 330.903);
--foreground: oklch(0.983 0.006 330.327);
--muted: oklch(0.239 0.029 148.534);
--muted-foreground: oklch(0.744 0.011 150.052);
--popover: oklch(0.088 0.011 330.903);
--popover-foreground: oklch(0.983 0.006 330.327);
--card: oklch(0.111 0.014 330.903);
--card-foreground: oklch(0.991 0.003 330.286);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.205 0.09 335.293);
--primary-foreground: oklch(0.739 0.236 334.057);
--secondary: oklch(0.26 0.08 145.428);
--secondary-foreground: oklch(0.848 0.281 143.278);
--accent: oklch(0.26 0.08 145.428);
--accent-foreground: oklch(0.848 0.281 143.278);
--destructive: oklch(0.622 0.203 37.181);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.205 0.09 335.293);
--chart-1: oklch(0.205 0.09 335.293);
--chart-2: oklch(0.26 0.08 145.428);
--chart-3: oklch(0.26 0.08 145.428);
--chart-4: oklch(0.312 0.098 144.744);
--chart-5: oklch(0.206 0.092 335.392);
}