Open is a shadcn/ui theme built around a neutral gray primary color (#8f968d) with neutral gray accents (#8d968f). The light mode uses a neutral background (#fcfefb). Dark mode keeps the neutral gray primary (#8f968d) on a neutral background (#040803).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #040803black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfefbwhite | #040803black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfefbwhite | #040803black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #8f968dgray | #8f968dgray |
| Primary foreground | #000000black | #000000black |
| Secondary | #94968dgray | #94968dgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #f5f6eewhitesmoke | #0f1109black |
| Muted foreground | #5d5f59dimgray | #a5a6a0darkgray |
| Accent | #8d968flightslategray | #8d968flightslategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #dc5309chocolate | #eb590aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8f968dgray | #8f968dgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.65:1 | AAA |
| Text on card | 20.65:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 6.98:1 | AA |
| Muted text | 5.95:1 | AA |
| Accent | 6.87:1 | AA |
| Destructive | 3.96:1 | AA Large |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 6.98:1 | AA |
| Muted text | 7.76:1 | AAA |
| Accent | 6.87:1 | AA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Open in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 136.619);
--foreground: oklch(0 0 0);
--muted: oklch(0.971 0.011 116.535);
--muted-foreground: oklch(0.481 0.009 116.662);
--popover: oklch(0.994 0.003 136.619);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.003 136.619);
--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.664 0.015 136.675);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.668 0.013 116.68);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.663 0.014 152.277);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.618 0.185 41.453);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.664 0.015 136.675);
--chart-1: oklch(0.664 0.015 136.675);
--chart-2: oklch(0.668 0.013 116.68);
--chart-3: oklch(0.663 0.014 152.277);
--chart-4: oklch(0.692 0.012 116.642);
--chart-5: oklch(0.67 0.026 136.726);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.019 135.122);
--foreground: oklch(1 0 180);
--muted: oklch(0.172 0.016 118.033);
--muted-foreground: oklch(0.722 0.008 116.53);
--popover: oklch(0.124 0.019 135.122);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.019 135.122);
--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.664 0.015 136.675);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.668 0.013 116.68);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.663 0.014 152.277);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.648 0.195 41.332);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.664 0.015 136.675);
--chart-1: oklch(0.664 0.015 136.675);
--chart-2: oklch(0.668 0.013 116.68);
--chart-3: oklch(0.663 0.014 152.277);
--chart-4: oklch(0.692 0.012 116.642);
--chart-5: oklch(0.67 0.026 136.726);
}