Cement is a shadcn/ui theme built around a muted light purple primary color (#f5f4f6) with muted light green accents (#f4f6f4). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted light purple primary (#f5f4f6) on a purple-tinted background (#0a050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #0a050bblack |
| Foreground | #080109black | #fdfcfdwhite |
| Card | #fbf8fcghostwhite | #0d060eblack |
| Card foreground | #040104black | #ffffffwhite |
| Popover | #fbf8fcghostwhite | #0d060eblack |
| Popover foreground | #040104black | #ffffffwhite |
| Primary | #f5f4f6whitesmoke | #f5f4f6whitesmoke |
| Primary foreground | #625464dimgray | #625464dimgray |
| Secondary | #f4f6f4whitesmoke | #f4f6f4whitesmoke |
| Secondary foreground | #262c25darkslategray | #262c25darkslategray |
| Muted | #e1e5e0gainsboro | #1a1f1ablack |
| Muted foreground | #606f5ddimgray | #93a290darkseagreen |
| Accent | #f4f6f4whitesmoke | #f4f6f4whitesmoke |
| Accent foreground | #262c25darkslategray | #262c25darkslategray |
| Destructive | #672109maroon | #dd4613chocolate |
| Destructive foreground | #f8beablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5f4f6whitesmoke | #f5f4f6whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.07:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 6.44:1 | AA |
| Secondary button | 13.13:1 | AAA |
| Muted text | 4.21:1 | AA Large |
| Accent | 13.13:1 | AAA |
| Destructive | 7.20:1 | AAA |
| Text on background | 19.78:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 6.44:1 | AA |
| Secondary button | 13.13:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 13.13:1 | AAA |
| Destructive | 4.25:1 | AA Large |
Paste this into your globals.css to use Cement in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 321.073);
--foreground: oklch(0.104 0.032 323.447);
--muted: oklch(0.919 0.008 141.046);
--muted-foreground: oklch(0.524 0.034 140.925);
--popover: oklch(0.982 0.007 321.081);
--popover-foreground: oklch(0.082 0.025 323.447);
--card: oklch(0.982 0.007 321.081);
--card-foreground: oklch(0.082 0.025 323.447);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.969 0.003 321.072);
--primary-foreground: oklch(0.464 0.032 321.209);
--secondary: oklch(0.971 0.003 141.059);
--secondary-foreground: oklch(0.286 0.016 140.945);
--accent: oklch(0.971 0.003 141.059);
--accent-foreground: oklch(0.286 0.016 140.945);
--destructive: oklch(0.353 0.107 37.399);
--destructive-foreground: oklch(0.848 0.072 39.227);
--ring: oklch(0.969 0.003 321.072);
--chart-1: oklch(0.969 0.003 321.072);
--chart-2: oklch(0.971 0.003 141.059);
--chart-3: oklch(0.971 0.003 141.059);
--chart-4: oklch(0.993 0.001 141.064);
--chart-5: oklch(0.968 0.004 321.074);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.02 322.326);
--foreground: oklch(0.992 0.002 321.069);
--muted: oklch(0.231 0.011 140.957);
--muted-foreground: oklch(0.695 0.032 140.966);
--popover: oklch(0.138 0.023 321.751);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.023 321.751);
--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.969 0.003 321.072);
--primary-foreground: oklch(0.464 0.032 321.209);
--secondary: oklch(0.971 0.003 141.059);
--secondary-foreground: oklch(0.286 0.016 140.945);
--accent: oklch(0.971 0.003 141.059);
--accent-foreground: oklch(0.286 0.016 140.945);
--destructive: oklch(0.603 0.195 36.441);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.969 0.003 321.072);
--chart-1: oklch(0.969 0.003 321.072);
--chart-2: oklch(0.971 0.003 141.059);
--chart-3: oklch(0.971 0.003 141.059);
--chart-4: oklch(0.993 0.001 141.064);
--chart-5: oklch(0.968 0.004 321.074);
}