Community is a shadcn/ui theme built around a muted teal primary color (#518a89) with muted red accents (#8a5152). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the muted teal primary (#518a89) on a teal-tinted background (#041010).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdfdmintcream | #041010black |
| Foreground | #031716black | #fcfdfdwhite |
| Card | #f6fdfdmintcream | #041010black |
| Card foreground | #031716black | #fcfdfdwhite |
| Popover | #f6fdfdmintcream | #041010black |
| Popover foreground | #031716black | #fcfdfdwhite |
| Primary | #518a89slategray | #518a89slategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #8a5152sienna | #8a5152sienna |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dddadagainsboro | #252222black |
| Muted foreground | #6d5455dimgray | #ab9292rosybrown |
| Accent | #8a5152sienna | #8a5152sienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #5c130amaroon | #e9452ftomato |
| Destructive foreground | #f5aca3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #518a89slategray | #518a89slategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.98:1 | AAA |
| Text on card | 17.98:1 | AAA |
| Primary button | 3.91:1 | AA Large |
| Secondary button | 6.20:1 | AA |
| Muted text | 4.93:1 | AA |
| Accent | 6.20:1 | AA |
| Destructive | 7.26:1 | AAA |
| Text on background | 18.96:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 3.91:1 | AA Large |
| Secondary button | 6.20:1 | AA |
| Muted text | 5.45:1 | AA |
| Accent | 6.20:1 | AA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Community in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.008 195.841);
--foreground: oklch(0.186 0.027 193.647);
--muted: oklch(0.89 0.004 16.051);
--muted-foreground: oklch(0.473 0.034 17.297);
--popover: oklch(0.99 0.008 195.841);
--popover-foreground: oklch(0.186 0.027 193.647);
--card: oklch(0.99 0.008 195.841);
--card-foreground: oklch(0.186 0.027 193.647);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.595 0.06 194.283);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.502 0.077 19.076);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.502 0.077 19.076);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.316 0.107 30.967);
--destructive-foreground: oklch(0.812 0.088 27.527);
--ring: oklch(0.595 0.06 194.283);
--chart-1: oklch(0.595 0.06 194.283);
--chart-2: oklch(0.502 0.077 19.076);
--chart-3: oklch(0.502 0.077 19.076);
--chart-4: oklch(0.526 0.081 19.105);
--chart-5: oklch(0.602 0.066 194.151);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.018 194.235);
--foreground: oklch(0.993 0.001 195.958);
--muted: oklch(0.256 0.005 16.351);
--muted-foreground: oklch(0.681 0.03 16.782);
--popover: oklch(0.161 0.018 194.235);
--popover-foreground: oklch(0.993 0.001 195.958);
--card: oklch(0.161 0.018 194.235);
--card-foreground: oklch(0.993 0.001 195.958);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.595 0.06 194.283);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.502 0.077 19.076);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.502 0.077 19.076);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.626 0.204 30.865);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.595 0.06 194.283);
--chart-1: oklch(0.595 0.06 194.283);
--chart-2: oklch(0.502 0.077 19.076);
--chart-3: oklch(0.502 0.077 19.076);
--chart-4: oklch(0.526 0.081 19.105);
--chart-5: oklch(0.602 0.066 194.151);
}