Divan is a shadcn/ui theme built around a green primary color (#65d336) with violet accents (#a436d3). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#65d336) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #020401black |
| Foreground | #000000black | #f7f8f7whitesmoke |
| Card | #f9fcf8mintcream | #040802black |
| Card foreground | #000000black | #fafaf9snow |
| Popover | #fcfefbwhite | #020401black |
| Popover foreground | #000000black | #f7f8f7whitesmoke |
| Primary | #65d336limegreen | #65d336limegreen |
| Primary foreground | #17320bblack | #17320bblack |
| Secondary | #a436d3darkorchid | #a436d3darkorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ede5f0lavender | #170f1ablack |
| Muted foreground | #565058dimgray | #ada7afdarkgray |
| Accent | #a436d3darkorchid | #a436d3darkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b30505darkred | #fa2929crimson |
| Destructive foreground | #feebeblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #65d336limegreen | #65d336limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.65:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 5.18:1 | AA |
| Muted text | 6.36:1 | AA |
| Accent | 5.18:1 | AA |
| Destructive | 6.22:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 5.18:1 | AA |
| Muted text | 7.98:1 | AAA |
| Accent | 5.18:1 | AA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Divan in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 136.034);
--foreground: oklch(0 0 0);
--muted: oklch(0.931 0.017 315.957);
--muted-foreground: oklch(0.44 0.016 315.896);
--popover: oklch(0.994 0.003 136.034);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.007 136.046);
--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.772 0.214 138.221);
--primary-foreground: oklch(0.286 0.072 137.705);
--secondary: oklch(0.564 0.232 313.349);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.564 0.232 313.349);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.483 0.196 28.984);
--destructive-foreground: oklch(0.956 0.021 17.528);
--ring: oklch(0.772 0.214 138.221);
--chart-1: oklch(0.772 0.214 138.221);
--chart-2: oklch(0.564 0.232 313.349);
--chart-3: oklch(0.564 0.232 313.349);
--chart-4: oklch(0.586 0.223 313.822);
--chart-5: oklch(0.781 0.221 138.363);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.016 134.414);
--foreground: oklch(0.978 0.002 136.03);
--muted: oklch(0.183 0.025 315.522);
--muted-foreground: oklch(0.735 0.014 315.955);
--popover: oklch(0.099 0.016 134.414);
--popover-foreground: oklch(0.978 0.002 136.03);
--card: oklch(0.125 0.021 134.414);
--card-foreground: oklch(0.986 0.002 136.027);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.772 0.214 138.221);
--primary-foreground: oklch(0.286 0.072 137.705);
--secondary: oklch(0.564 0.232 313.349);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.564 0.232 313.349);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.632 0.239 27.546);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.772 0.214 138.221);
--chart-1: oklch(0.772 0.214 138.221);
--chart-2: oklch(0.564 0.232 313.349);
--chart-3: oklch(0.564 0.232 313.349);
--chart-4: oklch(0.586 0.223 313.822);
--chart-5: oklch(0.781 0.221 138.363);
}