Community Material Theme Lighter High Contrast is a shadcn/ui theme built around a teal primary color (#80cbc4) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#80cbc4) on a neutral background (#ffffff).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #ffffffwhite |
| Foreground | #333333darkslategray | #333333darkslategray |
| Card | #fafafasnow | #fafafasnow |
| Card foreground | #262626darkslategray | #262626darkslategray |
| Popover | #f7f7f7whitesmoke | #f7f7f7whitesmoke |
| Popover foreground | #1a1a1ablack | #1a1a1ablack |
| Primary | #80cbc4mediumaquamarine | #80cbc4mediumaquamarine |
| Primary foreground | #071211black | #071211black |
| Secondary | #2d534fdarkslategray | #2d534fdarkslategray |
| Secondary foreground | #cde4e2gainsboro | #cde4e2gainsboro |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Accent foreground | #404040darkslategray | #404040darkslategray |
| Destructive | #6e100cmaroon | #6e100cmaroon |
| Destructive foreground | #f7b8b6lightpink | #f7b8b6lightpink |
| Border | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Input | #ebebeblinen | #ebebeblinen |
| Ring | #80cbc4mediumaquamarine | #80cbc4mediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.63:1 | AAA |
| Text on card | 14.48:1 | AAA |
| Primary button | 10.22:1 | AAA |
| Secondary button | 6.42:1 | AA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 7.16:1 | AAA |
| Text on background | 12.63:1 | AAA |
| Text on card | 14.48:1 | AAA |
| Primary button | 10.22:1 | AAA |
| Secondary button | 6.42:1 | AA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 7.16:1 | AAA |
Paste this into your globals.css to use Community Material Theme Lighter High Contrast in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.321 0 180);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.977 0 180);
--popover-foreground: oklch(0.216 0 180);
--card: oklch(0.985 0 180);
--card-foreground: oklch(0.27 0 180);
--border: oklch(0.962 0 180);
--input: oklch(0.939 0 180);
--primary: oklch(0.792 0.076 187.715);
--primary-foreground: oklch(0.172 0.016 187.914);
--secondary: oklch(0.412 0.044 187.35);
--secondary-foreground: oklch(0.902 0.025 189.451);
--accent: oklch(0.885 0 180);
--accent-foreground: oklch(0.371 0 168.69);
--destructive: oklch(0.349 0.128 28.32);
--destructive-foreground: oklch(0.839 0.074 20.999);
--ring: oklch(0.792 0.076 187.715);
--chart-1: oklch(0.792 0.076 187.715);
--chart-2: oklch(0.412 0.044 187.35);
--chart-3: oklch(0.885 0 180);
--chart-4: oklch(0.445 0.049 187.304);
--chart-5: oklch(0.797 0.08 187.568);
}
.dark {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.321 0 180);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.977 0 180);
--popover-foreground: oklch(0.216 0 180);
--card: oklch(0.985 0 180);
--card-foreground: oklch(0.27 0 180);
--border: oklch(0.962 0 180);
--input: oklch(0.939 0 180);
--primary: oklch(0.792 0.076 187.715);
--primary-foreground: oklch(0.172 0.016 187.914);
--secondary: oklch(0.412 0.044 187.35);
--secondary-foreground: oklch(0.902 0.025 189.451);
--accent: oklch(0.885 0 180);
--accent-foreground: oklch(0.371 0 168.69);
--destructive: oklch(0.349 0.128 28.32);
--destructive-foreground: oklch(0.839 0.074 20.999);
--ring: oklch(0.792 0.076 187.715);
--chart-1: oklch(0.792 0.076 187.715);
--chart-2: oklch(0.412 0.044 187.35);
--chart-3: oklch(0.885 0 180);
--chart-4: oklch(0.445 0.049 187.304);
--chart-5: oklch(0.797 0.08 187.568);
}