Structure is a shadcn/ui theme built around a neutral gray primary color (#e2e4e4) with neutral gray accents (#dadddd). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#e2e4e4) on a neutral background (#030707).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030707black |
| Foreground | #000000black | #f4faf9mintcream |
| Card | #fcfcfcsnow | #040b0ablack |
| Card foreground | #000000black | #f8fcfbmintcream |
| Popover | #fcfcfcsnow | #040b0ablack |
| Popover foreground | #000000black | #f8fcfbmintcream |
| Primary | #e2e4e4gainsboro | #e2e4e4gainsboro |
| Primary foreground | #474d4cdarkslategray | #474d4cdarkslategray |
| Secondary | #daddddgainsboro | #141a19black |
| Secondary foreground | #3f4645darkslategray | #a6b9b7darkgray |
| Muted | #dcefeclavender | #102320black |
| Muted foreground | #596e6bdimgray | #91a6a3darkgray |
| Accent | #daddddgainsboro | #141a19black |
| Accent foreground | #3f4645darkslategray | #a6b9b7darkgray |
| Destructive | #670c04maroon | #f52714orangered |
| Destructive foreground | #fba9a2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e2e4e4gainsboro | #e2e4e4gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 4.56:1 | AA |
| Accent | 7.06:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 8.61:1 | AAA |
| Muted text | 6.35:1 | AA |
| Accent | 8.61:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Structure in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.938 0.021 186.01);
--muted-foreground: oklch(0.521 0.026 185.253);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.917 0.002 186.527);
--primary-foreground: oklch(0.414 0.008 186.112);
--secondary: oklch(0.895 0.004 186.483);
--secondary-foreground: oklch(0.386 0.009 186.004);
--accent: oklch(0.895 0.004 186.483);
--accent-foreground: oklch(0.386 0.009 186.004);
--destructive: oklch(0.331 0.124 30.421);
--destructive-foreground: oklch(0.814 0.098 25.157);
--ring: oklch(0.917 0.002 186.527);
--chart-1: oklch(0.917 0.002 186.527);
--chart-2: oklch(0.895 0.004 186.483);
--chart-3: oklch(0.895 0.004 186.483);
--chart-4: oklch(0.918 0.003 186.51);
--chart-5: oklch(0.918 0.004 186.476);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.011 186.247);
--foreground: oklch(0.981 0.006 186.433);
--muted: oklch(0.24 0.027 183.308);
--muted-foreground: oklch(0.709 0.025 185.683);
--popover: oklch(0.141 0.013 186.034);
--popover-foreground: oklch(0.988 0.004 186.488);
--card: oklch(0.141 0.013 186.034);
--card-foreground: oklch(0.988 0.004 186.488);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.917 0.002 186.527);
--primary-foreground: oklch(0.414 0.008 186.112);
--secondary: oklch(0.21 0.008 185.547);
--secondary-foreground: oklch(0.772 0.021 185.883);
--accent: oklch(0.21 0.008 185.547);
--accent-foreground: oklch(0.772 0.021 185.883);
--destructive: oklch(0.622 0.238 30.093);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.917 0.002 186.527);
--chart-1: oklch(0.917 0.002 186.527);
--chart-2: oklch(0.21 0.008 185.547);
--chart-3: oklch(0.21 0.008 185.547);
--chart-4: oklch(0.245 0.011 185.441);
--chart-5: oklch(0.918 0.004 186.476);
}