Open is a shadcn/ui theme built around a muted deep green primary color (#111d13) with muted deep teal accents (#111d1a). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#111d13) on a green-tinted background (#050a06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a06black |
| Foreground | #051007black | #f5faf6whitesmoke |
| Card | #ffffffwhite | #050a06black |
| Card foreground | #051007black | #f5faf6whitesmoke |
| Popover | #ffffffwhite | #050a06black |
| Popover foreground | #051007black | #f5faf6whitesmoke |
| Primary | #111d13black | #111d13black |
| Primary foreground | #9ac6a3darkseagreen | #9ac6a3darkseagreen |
| Secondary | #141d11black | #141d11black |
| Secondary foreground | #a7c69adarkseagreen | #a7c69adarkseagreen |
| Muted | #f1f6eewhitesmoke | #0b1109black |
| Muted foreground | #414f3bdarkslategray | #b6c4b0silver |
| Accent | #111d1ablack | #111d1ablack |
| Accent foreground | #9ac6b9darkgray | #9ac6b9darkgray |
| Destructive | #bd1300firebrick | #ff4733tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #111d13black | #111d13black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.37:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 9.06:1 | AAA |
| Secondary button | 9.18:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 9.16:1 | AAA |
| Destructive | 6.46:1 | AA |
| Text on background | 18.88:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 9.06:1 | AAA |
| Secondary button | 9.18:1 | AAA |
| Muted text | 10.49:1 | AAA |
| Accent | 9.16:1 | AAA |
| Destructive | 3.38: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.157 0.027 150.471);
--muted: oklch(0.967 0.012 136.067);
--muted-foreground: oklch(0.409 0.038 136.398);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.157 0.027 150.471);
--card: oklch(1 0 180);
--card-foreground: oklch(0.157 0.027 150.471);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.217 0.027 149.927);
--primary-foreground: oklch(0.785 0.068 150.609);
--secondary: oklch(0.219 0.028 136.561);
--secondary-foreground: oklch(0.792 0.07 136.372);
--accent: oklch(0.219 0.02 173.678);
--accent-foreground: oklch(0.791 0.05 174.647);
--destructive: oklch(0.506 0.2 30.518);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.217 0.027 149.927);
--chart-1: oklch(0.217 0.027 149.927);
--chart-2: oklch(0.219 0.028 136.561);
--chart-3: oklch(0.219 0.02 173.678);
--chart-4: oklch(0.257 0.035 136.625);
--chart-5: oklch(0.218 0.03 149.708);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.013 151.524);
--foreground: oklch(0.98 0.008 151.877);
--muted: oklch(0.167 0.018 136.355);
--muted-foreground: oklch(0.805 0.033 136.173);
--popover: oklch(0.137 0.013 151.524);
--popover-foreground: oklch(0.98 0.008 151.877);
--card: oklch(0.137 0.013 151.524);
--card-foreground: oklch(0.98 0.008 151.877);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.217 0.027 149.927);
--primary-foreground: oklch(0.785 0.068 150.609);
--secondary: oklch(0.219 0.028 136.561);
--secondary-foreground: oklch(0.792 0.07 136.372);
--accent: oklch(0.219 0.02 173.678);
--accent-foreground: oklch(0.791 0.05 174.647);
--destructive: oklch(0.665 0.223 30.216);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.217 0.027 149.927);
--chart-1: oklch(0.217 0.027 149.927);
--chart-2: oklch(0.219 0.028 136.561);
--chart-3: oklch(0.219 0.02 173.678);
--chart-4: oklch(0.257 0.035 136.625);
--chart-5: oklch(0.218 0.03 149.708);
}