Comment is a shadcn/ui theme built around an indigo primary color (#6156a4) with green accents (#56a461). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the indigo primary (#6156a4) on a neutral background (#010104).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #010104black |
| Foreground | #04030dblack | #ffffffwhite |
| Card | #f8f8fcghostwhite | #010104black |
| Card foreground | #04030dblack | #ffffffwhite |
| Popover | #f8f8fcghostwhite | #010104black |
| Popover foreground | #04030dblack | #ffffffwhite |
| Primary | #6156a4rebeccapurple | #6156a4rebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a46156indianred | #a46156indianred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ddd6d5gainsboro | #2a2322darkslategray |
| Muted foreground | #534c4bdarkslategray | #b4adacdarkgray |
| Accent | #56a461mediumseagreen | #56a461mediumseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #7c2603saddlebrown | #fa682etomato |
| Destructive foreground | #fdc9b4peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6156a4rebeccapurple | #6156a4rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.31:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 6.22:1 | AA |
| Secondary button | 4.77:1 | AA |
| Muted text | 5.84:1 | AA |
| Accent | 6.85:1 | AA |
| Destructive | 6.64:1 | AA |
| Text on background | 20.82:1 | AAA |
| Text on card | 20.82:1 | AAA |
| Primary button | 6.22:1 | AA |
| Secondary button | 4.77:1 | AA |
| Muted text | 6.95:1 | AA |
| Accent | 6.85:1 | AA |
| Destructive | 7.06:1 | AAA |
Paste this into your globals.css to use Comment in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 292.424);
--foreground: oklch(0.105 0.03 289.512);
--muted: oklch(0.881 0.007 27.976);
--muted-foreground: oklch(0.423 0.009 28.058);
--popover: oklch(0.98 0.006 292.424);
--popover-foreground: oklch(0.105 0.03 289.512);
--card: oklch(0.98 0.006 292.424);
--card-foreground: oklch(0.105 0.03 289.512);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.501 0.12 287.347);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.564 0.09 29.514);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.651 0.125 146.885);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.398 0.127 38.256);
--destructive-foreground: oklch(0.877 0.066 42.63);
--ring: oklch(0.501 0.12 287.347);
--chart-1: oklch(0.501 0.12 287.347);
--chart-2: oklch(0.564 0.09 29.514);
--chart-3: oklch(0.651 0.125 146.885);
--chart-4: oklch(0.589 0.087 29.355);
--chart-5: oklch(0.494 0.132 286.65);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.076 0.017 290.404);
--foreground: oklch(1 0 180);
--muted: oklch(0.265 0.01 28.178);
--muted-foreground: oklch(0.753 0.008 27.988);
--popover: oklch(0.076 0.017 290.404);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.076 0.017 290.404);
--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.501 0.12 287.347);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.564 0.09 29.514);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.651 0.125 146.885);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.692 0.191 40.05);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.501 0.12 287.347);
--chart-1: oklch(0.501 0.12 287.347);
--chart-2: oklch(0.564 0.09 29.514);
--chart-3: oklch(0.651 0.125 146.885);
--chart-4: oklch(0.589 0.087 29.355);
--chart-5: oklch(0.494 0.132 286.65);
}