Community Material Theme Lighter is a shadcn/ui theme built around a teal primary color (#80cbc4) with neutral gray accents (#d4d4d4). The light mode uses a neutral background (#fafafa). Dark mode keeps the teal primary (#80cbc4) on a neutral background (#fafafa).
| Token | Light | Dark |
|---|---|---|
| Background | #fafafasnow | #fafafasnow |
| Foreground | #2e2e2edarkslategray | #2e2e2edarkslategray |
| Card | #f5f5f5whitesmoke | #f5f5f5whitesmoke |
| Card foreground | #212121black | #212121black |
| Popover | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Popover foreground | #141414black | #141414black |
| Primary | #80cbc4mediumaquamarine | #80cbc4mediumaquamarine |
| Primary foreground | #071211black | #071211black |
| Secondary | #2d534fdarkslategray | #2d534fdarkslategray |
| Secondary foreground | #cde4e2gainsboro | #cde4e2gainsboro |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Accent foreground | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Destructive | #a81f10firebrick | #a81f10firebrick |
| Destructive foreground | #fdeeeclinen | #fdeeeclinen |
| Border | #edededwhitesmoke | #edededwhitesmoke |
| Input | #e6e6e6gainsboro | #e6e6e6gainsboro |
| Ring | #80cbc4mediumaquamarine | #80cbc4mediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.99:1 | AAA |
| Text on card | 14.74:1 | AAA |
| Primary button | 10.22:1 | AAA |
| Secondary button | 6.42:1 | AA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.49:1 | AA |
| Text on background | 12.99:1 | AAA |
| Text on card | 14.74:1 | AAA |
| Primary button | 10.22:1 | AAA |
| Secondary button | 6.42:1 | AA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.49:1 | AA |
Paste this into your globals.css to use Community Material Theme Lighter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0.301 0 189.462);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0.193 0 164.055);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0.248 0 173.29);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--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.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.474 0.174 30.516);
--destructive-foreground: oklch(0.961 0.017 25.139);
--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.869 0 165.964);
--chart-4: oklch(0.445 0.049 187.304);
--chart-5: oklch(0.797 0.08 187.568);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0.301 0 189.462);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0.193 0 164.055);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0.248 0 173.29);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--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.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.474 0.174 30.516);
--destructive-foreground: oklch(0.961 0.017 25.139);
--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.869 0 165.964);
--chart-4: oklch(0.445 0.049 187.304);
--chart-5: oklch(0.797 0.08 187.568);
}