Chatter is a shadcn/ui theme built around a muted light yellow primary color (#d7d7c6) with muted light indigo accents (#c6c6d7). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the muted light yellow primary (#d7d7c6) on a yellow-tinted background (#0c0c03).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdf7snow | #0c0c03black |
| Foreground | #090901black | #fcfcf8snow |
| Card | #fbfbf3floralwhite | #0f1005black |
| Card foreground | #040501black | #fdfdfbsnow |
| Popover | #fcfdf7snow | #0c0c03black |
| Popover foreground | #090901black | #fcfcf8snow |
| Primary | #d7d7c6lightgrey | #d7d7c6lightgrey |
| Primary foreground | #3f3f2cdarkslategray | #3f3f2cdarkslategray |
| Secondary | #c6c6d7lightgrey | #c6c6d7lightgrey |
| Secondary foreground | #2d2c3fdarkslategray | #2d2c3fdarkslategray |
| Muted | #e7e7f3lavender | #0c0c18black |
| Muted foreground | #595964dimgray | #9b9ba6darkgray |
| Accent | #c6c6d7lightgrey | #c6c6d7lightgrey |
| Accent foreground | #2d2c3fdarkslategray | #2d2c3fdarkslategray |
| Destructive | #9b1208darkred | #f44034tomato |
| Destructive foreground | #fddbd8mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d7d7c6lightgrey | #d7d7c6lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 5.63:1 | AA |
| Accent | 8.07:1 | AAA |
| Destructive | 6.56:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 7.07:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Chatter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.007 108.071);
--foreground: oklch(0.136 0.025 110.448);
--muted: oklch(0.932 0.017 287.603);
--muted-foreground: oklch(0.467 0.018 287.205);
--popover: oklch(0.991 0.007 108.071);
--popover-foreground: oklch(0.136 0.025 110.448);
--card: oklch(0.987 0.011 108.138);
--card-foreground: oklch(0.108 0.02 110.448);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.875 0.024 108.427);
--primary-foreground: oklch(0.362 0.031 109.467);
--secondary: oklch(0.832 0.024 287.394);
--secondary-foreground: oklch(0.302 0.035 285.657);
--accent: oklch(0.832 0.024 287.394);
--accent-foreground: oklch(0.302 0.035 285.657);
--destructive: oklch(0.441 0.17 29.743);
--destructive-foreground: oklch(0.918 0.038 22.727);
--ring: oklch(0.875 0.024 108.427);
--chart-1: oklch(0.875 0.024 108.427);
--chart-2: oklch(0.832 0.024 287.394);
--chart-3: oklch(0.832 0.024 287.394);
--chart-4: oklch(0.859 0.02 287.5);
--chart-5: oklch(0.878 0.027 108.504);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.15 0.02 109.957);
--foreground: oklch(0.989 0.005 108.034);
--muted: oklch(0.16 0.026 284.554);
--muted-foreground: oklch(0.693 0.016 287.497);
--popover: oklch(0.15 0.02 109.957);
--popover-foreground: oklch(0.989 0.005 108.034);
--card: oklch(0.168 0.023 110.182);
--card-foreground: oklch(0.995 0.003 107.987);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.875 0.024 108.427);
--primary-foreground: oklch(0.362 0.031 109.467);
--secondary: oklch(0.832 0.024 287.394);
--secondary-foreground: oklch(0.302 0.035 285.657);
--accent: oklch(0.832 0.024 287.394);
--accent-foreground: oklch(0.302 0.035 285.657);
--destructive: oklch(0.641 0.218 28.853);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.875 0.024 108.427);
--chart-1: oklch(0.875 0.024 108.427);
--chart-2: oklch(0.832 0.024 287.394);
--chart-3: oklch(0.832 0.024 287.394);
--chart-4: oklch(0.859 0.02 287.5);
--chart-5: oklch(0.878 0.027 108.504);
}