Open is a shadcn/ui theme built around a muted deep red primary color (#543e3b) with muted deep orange accents (#544b3b). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep red primary (#543e3b) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070303black |
| Foreground | #050101black | #fdfcfcsnow |
| Card | #ffffffwhite | #070303black |
| Card foreground | #050101black | #fdfcfcsnow |
| Popover | #ffffffwhite | #070303black |
| Popover foreground | #050101black | #fdfcfcsnow |
| Primary | #543e3bdarkslategray | #543e3bdarkslategray |
| Primary foreground | #e6dddbgainsboro | #e6dddbgainsboro |
| Secondary | #543b44darkslategray | #543b44darkslategray |
| Secondary foreground | #e6dbdfgainsboro | #e6dbdfgainsboro |
| Muted | #f5eaeelinen | #150a0eblack |
| Muted foreground | #605c5edimgray | #a39fa0darkgray |
| Accent | #544b3bdarkolivegreen | #544b3bdarkolivegreen |
| Accent foreground | #e6e2dbgainsboro | #e6e2dbgainsboro |
| Destructive | #6b1d0amaroon | #eb4f28chocolate |
| Destructive foreground | #f8beb0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #543e3bdarkslategray | #543e3bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 7.45:1 | AAA |
| Muted text | 5.62:1 | AA |
| Accent | 6.68:1 | AA |
| Destructive | 7.15:1 | AAA |
| Text on background | 19.99:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 7.45:1 | AAA |
| Muted text | 7.42:1 | AAA |
| Accent | 6.68:1 | AA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Open in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.083 0.017 37.212);
--muted: oklch(0.948 0.013 352.956);
--muted-foreground: oklch(0.48 0.005 352.889);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.083 0.017 37.212);
--card: oklch(1 0 180);
--card-foreground: oklch(0.083 0.017 37.212);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.388 0.03 28.533);
--primary-foreground: oklch(0.903 0.01 27.991);
--secondary: oklch(0.384 0.037 355.182);
--secondary-foreground: oklch(0.901 0.012 352.969);
--accent: oklch(0.416 0.027 81.268);
--accent-foreground: oklch(0.913 0.01 81.509);
--destructive: oklch(0.357 0.114 34.645);
--destructive-foreground: oklch(0.85 0.07 34.442);
--ring: oklch(0.388 0.03 28.533);
--chart-1: oklch(0.388 0.03 28.533);
--chart-2: oklch(0.384 0.037 355.182);
--chart-3: oklch(0.416 0.027 81.268);
--chart-4: oklch(0.411 0.04 355.225);
--chart-5: oklch(0.386 0.036 28.689);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.012 32.234);
--foreground: oklch(0.992 0.002 27.942);
--muted: oklch(0.162 0.02 355.958);
--muted-foreground: oklch(0.705 0.005 352.77);
--popover: oklch(0.11 0.012 32.234);
--popover-foreground: oklch(0.992 0.002 27.942);
--card: oklch(0.11 0.012 32.234);
--card-foreground: oklch(0.992 0.002 27.942);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.388 0.03 28.533);
--primary-foreground: oklch(0.903 0.01 27.991);
--secondary: oklch(0.384 0.037 355.182);
--secondary-foreground: oklch(0.901 0.012 352.969);
--accent: oklch(0.416 0.027 81.268);
--accent-foreground: oklch(0.913 0.01 81.509);
--destructive: oklch(0.639 0.199 34.809);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.388 0.03 28.533);
--chart-1: oklch(0.388 0.03 28.533);
--chart-2: oklch(0.384 0.037 355.182);
--chart-3: oklch(0.416 0.027 81.268);
--chart-4: oklch(0.411 0.04 355.225);
--chart-5: oklch(0.386 0.036 28.689);
}