Cement is a shadcn/ui theme built around a muted violet primary color (#a396b6) with muted green accents (#96b6a3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#a396b6) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020203black |
| Foreground | #090410black | #ffffffwhite |
| Card | #fcfcfcsnow | #050307black |
| Card foreground | #07030cblack | #ffffffwhite |
| Popover | #fcfcfcsnow | #050307black |
| Popover foreground | #07030cblack | #ffffffwhite |
| Primary | #a396b6darkgray | #a396b6darkgray |
| Primary foreground | #0c0a0fblack | #0c0a0fblack |
| Secondary | #b6a396rosybrown | #b6a396rosybrown |
| Secondary foreground | #0f0c0ablack | #0f0c0ablack |
| Muted | #f2efeewhitesmoke | #110f0dblack |
| Muted foreground | #6a6562dimgray | #9d9895darkgray |
| Accent | #96b6a3darkseagreen | #96b6a3darkseagreen |
| Accent foreground | #0a0f0cblack | #0a0f0cblack |
| Destructive | #a01b03darkred | #fa3f1eorangered |
| Destructive foreground | #feddd7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a396b6darkgray | #a396b6darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 5.03:1 | AA |
| Accent | 8.73:1 | AAA |
| Destructive | 6.24:1 | AA |
| Text on background | 20.75:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 6.69:1 | AA |
| Accent | 8.73:1 | AAA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Cement in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.128 0.029 304.562);
--muted: oklch(0.955 0.003 58.314);
--muted-foreground: oklch(0.511 0.008 58.143);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.116 0.025 305.977);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.116 0.025 305.977);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.694 0.049 304.075);
--primary-foreground: oklch(0.152 0.01 304.117);
--secondary: oklch(0.728 0.029 57.805);
--secondary-foreground: oklch(0.159 0.006 57.828);
--accent: oklch(0.746 0.044 159.541);
--accent-foreground: oklch(0.162 0.009 159.601);
--destructive: oklch(0.455 0.17 31.865);
--destructive-foreground: oklch(0.923 0.038 29.667);
--ring: oklch(0.694 0.049 304.075);
--chart-1: oklch(0.694 0.049 304.075);
--chart-2: oklch(0.728 0.029 57.805);
--chart-3: oklch(0.746 0.044 159.541);
--chart-4: oklch(0.752 0.026 57.874);
--chart-5: oklch(0.69 0.057 303.902);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.011 305.726);
--foreground: oklch(1 0 180);
--muted: oklch(0.17 0.005 57.94);
--muted-foreground: oklch(0.684 0.007 58.21);
--popover: oklch(0.107 0.014 305.726);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.107 0.014 305.726);
--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.694 0.049 304.075);
--primary-foreground: oklch(0.152 0.01 304.117);
--secondary: oklch(0.728 0.029 57.805);
--secondary-foreground: oklch(0.159 0.006 57.828);
--accent: oklch(0.746 0.044 159.541);
--accent-foreground: oklch(0.162 0.009 159.601);
--destructive: oklch(0.648 0.227 32.213);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.694 0.049 304.075);
--chart-1: oklch(0.694 0.049 304.075);
--chart-2: oklch(0.728 0.029 57.805);
--chart-3: oklch(0.746 0.044 159.541);
--chart-4: oklch(0.752 0.026 57.874);
--chart-5: oklch(0.69 0.057 303.902);
}