Concrete is a shadcn/ui theme built around a deep blue primary color (#172369) with deep yellow accents (#695c17). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the deep blue primary (#172369) on a blue-tinted background (#05060a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #05060ablack |
| Foreground | #010104black | #ffffffwhite |
| Card | #f7f8fdghostwhite | #07080dblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfbfeghostwhite | #05060ablack |
| Popover foreground | #010104black | #ffffffwhite |
| Primary | #172369midnightblue | #172369midnightblue |
| Primary foreground | #c0c8f1lightsteelblue | #c0c8f1lightsteelblue |
| Secondary | #695c17darkolivegreen | #695c17darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f7f6edseashell | #121008black |
| Muted foreground | #545140darkolivegreen | #bfbcabsilver |
| Accent | #695c17darkolivegreen | #695c17darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d83a0eorangered | #f0400forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #172369midnightblue | #172369midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 8.62:1 | AAA |
| Secondary button | 6.66:1 | AA |
| Muted text | 7.36:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 4.65:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 8.62:1 | AAA |
| Secondary button | 6.66:1 | AA |
| Muted text | 9.95:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Concrete in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 278.266);
--foreground: oklch(0.075 0.019 268.281);
--muted: oklch(0.971 0.012 98.484);
--muted-foreground: oklch(0.432 0.026 99.068);
--popover: oklch(0.99 0.004 278.266);
--popover-foreground: oklch(0.075 0.019 268.281);
--card: oklch(0.979 0.007 278.213);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.297 0.122 269.573);
--primary-foreground: oklch(0.84 0.059 277.204);
--secondary: oklch(0.474 0.088 98.85);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.474 0.088 98.85);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.583 0.201 34.427);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.297 0.122 269.573);
--chart-1: oklch(0.297 0.122 269.573);
--chart-2: oklch(0.474 0.088 98.85);
--chart-3: oklch(0.474 0.088 98.85);
--chart-4: oklch(0.514 0.096 98.796);
--chart-5: oklch(0.295 0.127 269.061);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.011 275.288);
--foreground: oklch(1 0 180);
--muted: oklch(0.173 0.017 99.575);
--muted-foreground: oklch(0.792 0.023 98.705);
--popover: oklch(0.123 0.011 275.288);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.136 0.012 275.667);
--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.297 0.122 269.573);
--primary-foreground: oklch(0.84 0.059 277.204);
--secondary: oklch(0.474 0.088 98.85);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.474 0.088 98.85);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.63 0.218 34.331);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.297 0.122 269.573);
--chart-1: oklch(0.297 0.122 269.573);
--chart-2: oklch(0.474 0.088 98.85);
--chart-3: oklch(0.474 0.088 98.85);
--chart-4: oklch(0.514 0.096 98.796);
--chart-5: oklch(0.295 0.127 269.061);
}