βui - Material is a shadcn/ui theme built around a vivid light teal primary color (#f0ffff) with muted blue accents (#435a65). The light mode uses a blue-tinted background (#253137). Dark mode keeps the vivid light teal primary (#f0ffff) on a blue-tinted background (#253137).
| Token | Light | Dark |
|---|---|---|
| Background | #253137darkslategray | #253137darkslategray |
| Foreground | #e6fffflightcyan | #e6fffflightcyan |
| Card | #212c31darkslategray | #212c31darkslategray |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #1f292edarkslategray | #1f292edarkslategray |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #f0ffffazure | #f0ffffazure |
| Primary foreground | #005757darkslategray | #005757darkslategray |
| Secondary | #2d5353darkslategray | #2d5353darkslategray |
| Secondary foreground | #cde4e4gainsboro | #cde4e4gainsboro |
| Muted | #313a3fdarkslategray | #313a3fdarkslategray |
| Muted foreground | #afbac0silver | #afbac0silver |
| Accent | #435a65darkslategray | #435a65darkslategray |
| Accent foreground | #eaeef1lavender | #eaeef1lavender |
| Destructive | #ec1b18crimson | #ec1b18crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #353d41darkslategray | #353d41darkslategray |
| Input | #3c4549darkslategray | #3c4549darkslategray |
| Ring | #f0ffffazure | #f0ffffazure |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.79:1 | AAA |
| Text on card | 14.37:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 6.40:1 | AA |
| Muted text | 5.84:1 | AA |
| Accent | 6.24:1 | AA |
| Destructive | 4.42:1 | AA Large |
| Text on background | 12.79:1 | AAA |
| Text on card | 14.37:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 6.40:1 | AA |
| Muted text | 5.84:1 | AA |
| Accent | 6.24:1 | AA |
| Destructive | 4.42:1 | AA Large |
Paste this into your globals.css to use βui - Material in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.304 0.02 229.833);
--foreground: oklch(0.982 0.026 196.729);
--muted: oklch(0.343 0.014 229.374);
--muted-foreground: oklch(0.783 0.015 229.013);
--popover: oklch(0.273 0.017 229.774);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.283 0.018 229.795);
--card-foreground: oklch(1 0 180);
--border: oklch(0.353 0.012 229.264);
--input: oklch(0.382 0.014 229.277);
--primary: oklch(0.989 0.016 196.897);
--primary-foreground: oklch(0.413 0.07 194.769);
--secondary: oklch(0.414 0.044 195.596);
--secondary-foreground: oklch(0.903 0.024 196.729);
--accent: oklch(0.453 0.033 229.995);
--accent-foreground: oklch(0.947 0.006 228.834);
--destructive: oklch(0.601 0.235 28.665);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.989 0.016 196.897);
--chart-1: oklch(0.989 0.016 196.897);
--chart-2: oklch(0.414 0.044 195.596);
--chart-3: oklch(0.453 0.033 229.995);
--chart-4: oklch(0.447 0.048 195.577);
--chart-5: oklch(0.989 0.017 196.89);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.304 0.02 229.833);
--foreground: oklch(0.982 0.026 196.729);
--muted: oklch(0.343 0.014 229.374);
--muted-foreground: oklch(0.783 0.015 229.013);
--popover: oklch(0.273 0.017 229.774);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.283 0.018 229.795);
--card-foreground: oklch(1 0 180);
--border: oklch(0.353 0.012 229.264);
--input: oklch(0.382 0.014 229.277);
--primary: oklch(0.989 0.016 196.897);
--primary-foreground: oklch(0.413 0.07 194.769);
--secondary: oklch(0.414 0.044 195.596);
--secondary-foreground: oklch(0.903 0.024 196.729);
--accent: oklch(0.453 0.033 229.995);
--accent-foreground: oklch(0.947 0.006 228.834);
--destructive: oklch(0.601 0.235 28.665);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.989 0.016 196.897);
--chart-1: oklch(0.989 0.016 196.897);
--chart-2: oklch(0.414 0.044 195.596);
--chart-3: oklch(0.453 0.033 229.995);
--chart-4: oklch(0.447 0.048 195.577);
--chart-5: oklch(0.989 0.017 196.89);
}