Mature is a shadcn/ui theme built around a near-white primary color (#faf8fc) with muted violet accents (#beaecb). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the near-white primary (#faf8fc) on a violet-tinted background (#08030c).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #08030cblack |
| Foreground | #0d0515black | #fcfcfdwhite |
| Card | #faf7fcghostwhite | #0b0410black |
| Card foreground | #0b0411black | #ffffffwhite |
| Popover | #faf7fcghostwhite | #0b0410black |
| Popover foreground | #0b0411black | #ffffffwhite |
| Primary | #faf8fcghostwhite | #faf8fcghostwhite |
| Primary foreground | #634082rebeccapurple | #634082rebeccapurple |
| Secondary | #d2cad8lightgrey | #312839darkslategray |
| Secondary foreground | #393041darkslategray | #cac0d3thistle |
| Muted | #dcd5e1gainsboro | #241e2adarkslategray |
| Muted foreground | #50445adarkslategray | #b1a5bbdarkgray |
| Accent | #beaecbsilver | #413050darkslategray |
| Accent foreground | #241c2cdarkslategray | #d9cfe2gainsboro |
| Destructive | #6d1c03maroon | #f23e07orangered |
| Destructive foreground | #fcbaa6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #faf8fcghostwhite | #faf8fcghostwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.44:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 7.00:1 | AAA |
| Text on background | 19.88:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 6.95:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Mature in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 309.748);
--foreground: oklch(0.139 0.038 308.292);
--muted: oklch(0.882 0.018 309.584);
--muted-foreground: oklch(0.407 0.039 308.827);
--popover: oklch(0.981 0.007 309.711);
--popover-foreground: oklch(0.128 0.033 309.675);
--card: oklch(0.981 0.007 309.711);
--card-foreground: oklch(0.128 0.033 309.675);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.982 0.005 309.735);
--primary-foreground: oklch(0.442 0.11 307.073);
--secondary: oklch(0.85 0.02 309.547);
--secondary-foreground: oklch(0.325 0.032 308.818);
--accent: oklch(0.774 0.044 309.219);
--accent-foreground: oklch(0.243 0.032 308.483);
--destructive: oklch(0.357 0.118 36.007);
--destructive-foreground: oklch(0.845 0.082 37.613);
--ring: oklch(0.982 0.005 309.735);
--chart-1: oklch(0.982 0.005 309.735);
--chart-2: oklch(0.85 0.02 309.547);
--chart-3: oklch(0.774 0.044 309.219);
--chart-4: oklch(0.875 0.017 309.593);
--chart-5: oklch(0.982 0.005 309.73);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.026 311.214);
--foreground: oklch(0.992 0.001 309.77);
--muted: oklch(0.246 0.024 308.8);
--muted-foreground: oklch(0.739 0.034 309.33);
--popover: oklch(0.13 0.03 309.645);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.13 0.03 309.645);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.982 0.005 309.735);
--primary-foreground: oklch(0.442 0.11 307.073);
--secondary: oklch(0.295 0.032 308.715);
--secondary-foreground: oklch(0.822 0.027 309.457);
--accent: oklch(0.342 0.058 308.042);
--accent-foreground: oklch(0.869 0.028 309.463);
--destructive: oklch(0.633 0.222 34.419);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.982 0.005 309.735);
--chart-1: oklch(0.982 0.005 309.735);
--chart-2: oklch(0.295 0.032 308.715);
--chart-3: oklch(0.342 0.058 308.042);
--chart-4: oklch(0.323 0.036 308.679);
--chart-5: oklch(0.982 0.005 309.73);
}