Communicant is a shadcn/ui theme built around a vivid deep red primary color (#300d03) with muted light red accents (#eae3e1). The light mode uses a neutral background (#fdf8f6). Dark mode keeps the vivid deep red primary (#300d03) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf8f6snow | #000000black |
| Foreground | #0c0504black | #fdfcfcsnow |
| Card | #fdf8f6snow | #000000black |
| Card foreground | #0c0504black | #fdfcfcsnow |
| Popover | #fdf8f6snow | #000000black |
| Popover foreground | #0c0504black | #fdfcfcsnow |
| Primary | #300d03black | #300d03black |
| Primary foreground | #f78c6esalmon | #f78c6esalmon |
| Secondary | #eae3e1gainsboro | #191615black |
| Secondary foreground | #5a453fdarkolivegreen | #b5adaadarkgray |
| Muted | #e9e0ddgainsboro | #221916black |
| Muted foreground | #6e615edimgray | #a19491rosybrown |
| Accent | #eae3e1gainsboro | #191615black |
| Accent foreground | #5a453fdarkolivegreen | #b5adaadarkgray |
| Destructive | #843406saddlebrown | #e55b0bchocolate |
| Destructive foreground | #fcd6c0peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #300d03black | #300d03black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 7.02:1 | AAA |
| Muted text | 4.56:1 | AA |
| Accent | 7.02:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 8.16:1 | AAA |
| Muted text | 5.88:1 | AA |
| Accent | 8.16:1 | AAA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Communicant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 35.991);
--foreground: oklch(0.127 0.015 42.281);
--muted: oklch(0.912 0.011 35.976);
--muted-foreground: oklch(0.505 0.017 35.944);
--popover: oklch(0.983 0.006 35.991);
--popover-foreground: oklch(0.127 0.015 42.281);
--card: oklch(0.983 0.006 35.991);
--card-foreground: oklch(0.127 0.015 42.281);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.216 0.062 38.481);
--primary-foreground: oklch(0.748 0.137 36.338);
--secondary: oklch(0.921 0.008 35.984);
--secondary-foreground: oklch(0.411 0.03 35.98);
--accent: oklch(0.921 0.008 35.984);
--accent-foreground: oklch(0.411 0.03 35.98);
--destructive: oklch(0.431 0.121 44.153);
--destructive-foreground: oklch(0.902 0.052 51.842);
--ring: oklch(0.216 0.062 38.481);
--chart-1: oklch(0.216 0.062 38.481);
--chart-2: oklch(0.921 0.008 35.984);
--chart-3: oklch(0.921 0.008 35.984);
--chart-4: oklch(0.945 0.005 35.992);
--chart-5: oklch(0.217 0.064 38.865);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 36.007);
--muted: oklch(0.223 0.016 35.976);
--muted-foreground: oklch(0.678 0.016 35.953);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 36.007);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 36.007);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.216 0.062 38.481);
--primary-foreground: oklch(0.748 0.137 36.338);
--secondary: oklch(0.203 0.004 35.957);
--secondary-foreground: oklch(0.754 0.011 35.97);
--accent: oklch(0.203 0.004 35.957);
--accent-foreground: oklch(0.754 0.011 35.97);
--destructive: oklch(0.642 0.187 42.783);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.216 0.062 38.481);
--chart-1: oklch(0.216 0.062 38.481);
--chart-2: oklch(0.203 0.004 35.957);
--chart-3: oklch(0.203 0.004 35.957);
--chart-4: oklch(0.236 0.005 35.954);
--chart-5: oklch(0.217 0.064 38.865);
}