Designer is a shadcn/ui theme built around a deep green primary color (#576322) with deep green accents (#366322). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#576322) on a green-tinted background (#0a0c03).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0c03black |
| Foreground | #070901black | #ffffffwhite |
| Card | #fcfcfcsnow | #0e1004black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #ffffffwhite | #0a0c03black |
| Popover foreground | #070901black | #ffffffwhite |
| Primary | #576322darkolivegreen | #576322darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #634e22darkolivegreen | #634e22darkolivegreen |
| Secondary foreground | #ede2cabisque | #ede2cabisque |
| Muted | #f3f3f1whitesmoke | #0e0d0cblack |
| Muted foreground | #665e4ddimgray | #b2aa99darkgray |
| Accent | #366322darkolivegreen | #366322darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a5270dfirebrick | #ed4726orangered |
| Destructive foreground | #fdebe7linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #576322darkolivegreen | #576322darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 6.17:1 | AA |
| Muted text | 5.76:1 | AA |
| Accent | 7.09:1 | AAA |
| Destructive | 6.29:1 | AA |
| Text on background | 19.66:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 6.17:1 | AA |
| Muted text | 8.41:1 | AAA |
| Accent | 7.09:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Designer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.023 115.659);
--muted: oklch(0.963 0.002 86.014);
--muted-foreground: oklch(0.484 0.028 86.071);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.023 115.659);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.106 0.019 115.659);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.474 0.09 118.769);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.436 0.067 84.373);
--secondary-foreground: oklch(0.914 0.034 86.095);
--accent: oklch(0.451 0.107 137.115);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.475 0.166 32.763);
--destructive-foreground: oklch(0.954 0.02 31.094);
--ring: oklch(0.474 0.09 118.769);
--chart-1: oklch(0.474 0.09 118.769);
--chart-2: oklch(0.436 0.067 84.373);
--chart-3: oklch(0.451 0.107 137.115);
--chart-4: oklch(0.47 0.073 84.291);
--chart-5: oklch(0.48 0.094 118.957);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.149 0.022 115.932);
--foreground: oklch(1 0 180);
--muted: oklch(0.16 0.003 86.065);
--muted-foreground: oklch(0.741 0.026 86.094);
--popover: oklch(0.149 0.022 115.932);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.167 0.025 116.853);
--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.474 0.09 118.769);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.436 0.067 84.373);
--secondary-foreground: oklch(0.914 0.034 86.095);
--accent: oklch(0.451 0.107 137.115);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.634 0.208 33.097);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.474 0.09 118.769);
--chart-1: oklch(0.474 0.09 118.769);
--chart-2: oklch(0.436 0.067 84.373);
--chart-3: oklch(0.451 0.107 137.115);
--chart-4: oklch(0.47 0.073 84.291);
--chart-5: oklch(0.48 0.094 118.957);
}