Comma is a shadcn/ui theme built around a muted deep indigo primary color (#0e0e11) with muted light indigo accents (#dddbe6). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted deep indigo primary (#0e0e11) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #020104black |
| Foreground | #020104black | #fcfcfdwhite |
| Card | #f8f7fdghostwhite | #030208black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8f7fdghostwhite | #030208black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #0e0e11black | #0e0e11black |
| Primary foreground | #a39fb2darkgray | #a39fb2darkgray |
| Secondary | #dddbe6gainsboro | #1f1d2bblack |
| Secondary foreground | #403b54darkslategray | #b5afcasilver |
| Muted | #d8d4e8gainsboro | #1b172bblack |
| Muted foreground | #3b3847darkslategray | #bbb8c7silver |
| Accent | #dddbe6gainsboro | #1f1d2bblack |
| Accent foreground | #403b54darkslategray | #b5afcasilver |
| Destructive | #d41811firebrick | #ee312bcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0e0e11black | #0e0e11black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 7.84:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 5.32:1 | AA |
| Text on background | 20.30:1 | AAA |
| Text on card | 20.64:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 8.96:1 | AAA |
| Accent | 7.86:1 | AAA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Comma in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 295.504);
--foreground: oklch(0.075 0.019 294.366);
--muted: oklch(0.878 0.028 294.982);
--muted-foreground: oklch(0.35 0.027 294.154);
--popover: oklch(0.978 0.008 295.427);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.978 0.008 295.427);
--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.164 0.007 294.781);
--primary-foreground: oklch(0.711 0.028 294.856);
--secondary: oklch(0.897 0.014 295.286);
--secondary-foreground: oklch(0.369 0.042 293.423);
--accent: oklch(0.897 0.014 295.286);
--accent-foreground: oklch(0.369 0.042 293.423);
--destructive: oklch(0.554 0.217 29.063);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.164 0.007 294.781);
--chart-1: oklch(0.164 0.007 294.781);
--chart-2: oklch(0.897 0.014 295.286);
--chart-3: oklch(0.897 0.014 295.286);
--chart-4: oklch(0.923 0.011 295.367);
--chart-5: oklch(0.163 0.009 294.548);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.077 0.017 294.539);
--foreground: oklch(0.991 0.002 295.543);
--muted: oklch(0.22 0.04 291.985);
--muted-foreground: oklch(0.789 0.022 295.071);
--popover: oklch(0.097 0.022 294.539);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.097 0.022 294.539);
--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.164 0.007 294.781);
--primary-foreground: oklch(0.711 0.028 294.856);
--secondary: oklch(0.239 0.027 293.397);
--secondary-foreground: oklch(0.768 0.038 294.663);
--accent: oklch(0.239 0.027 293.397);
--accent-foreground: oklch(0.768 0.038 294.663);
--destructive: oklch(0.617 0.224 28.137);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.164 0.007 294.781);
--chart-1: oklch(0.164 0.007 294.781);
--chart-2: oklch(0.239 0.027 293.397);
--chart-3: oklch(0.239 0.027 293.397);
--chart-4: oklch(0.267 0.032 293.264);
--chart-5: oklch(0.163 0.009 294.548);
}