Mansard is a shadcn/ui theme built around a cyan primary color (#96d4df) with muted light cyan accents (#d0dadc). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#96d4df) on a neutral background (#030607).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030607black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #030607black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #030607black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #96d4dfskyblue | #96d4dfskyblue |
| Primary foreground | #102d33darkslategray | #102d33darkslategray |
| Secondary | #d0dadclightgrey | #212e31darkslategray |
| Secondary foreground | #344446darkslategray | #b6cacdlightsteelblue |
| Muted | #dee7e8gainsboro | #172021black |
| Muted foreground | #62696adimgray | #959c9ddarkgray |
| Accent | #d0dadclightgrey | #212e31darkslategray |
| Accent foreground | #344446darkslategray | #b6cacdlightsteelblue |
| Destructive | #92170cdarkred | #ec2513orangered |
| Destructive foreground | #fcd8d5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #96d4dfskyblue | #96d4dfskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.81:1 | AAA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 4.44:1 | AA Large |
| Accent | 7.17:1 | AAA |
| Destructive | 6.76:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 8.81:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 8.19:1 | AAA |
| Destructive | 4.33:1 | AA Large |
Paste this into your globals.css to use Mansard in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.921 0.01 209.443);
--muted-foreground: oklch(0.515 0.009 209.434);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.831 0.065 209.659);
--primary-foreground: oklch(0.279 0.036 210.764);
--secondary: oklch(0.882 0.012 209.439);
--secondary-foreground: oklch(0.373 0.021 209.495);
--accent: oklch(0.882 0.012 209.439);
--accent-foreground: oklch(0.373 0.021 209.495);
--destructive: oklch(0.427 0.159 30.047);
--destructive-foreground: oklch(0.911 0.04 24.066);
--ring: oklch(0.831 0.065 209.659);
--chart-1: oklch(0.831 0.065 209.659);
--chart-2: oklch(0.882 0.012 209.439);
--chart-3: oklch(0.882 0.012 209.439);
--chart-4: oklch(0.905 0.009 209.444);
--chart-5: oklch(0.833 0.068 209.696);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.009 207.048);
--foreground: oklch(1 0 180);
--muted: oklch(0.234 0.013 209.504);
--muted-foreground: oklch(0.687 0.008 209.441);
--popover: oklch(0.12 0.009 207.048);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.009 207.048);
--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.831 0.065 209.659);
--primary-foreground: oklch(0.279 0.036 210.764);
--secondary: oklch(0.291 0.018 209.537);
--secondary-foreground: oklch(0.825 0.022 209.429);
--accent: oklch(0.291 0.018 209.537);
--accent-foreground: oklch(0.825 0.022 209.429);
--destructive: oklch(0.604 0.231 30.092);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.831 0.065 209.659);
--chart-1: oklch(0.831 0.065 209.659);
--chart-2: oklch(0.291 0.018 209.537);
--chart-3: oklch(0.291 0.018 209.537);
--chart-4: oklch(0.324 0.021 209.552);
--chart-5: oklch(0.833 0.068 209.696);
}