Patent is a shadcn/ui theme built around a vivid green primary color (#adf066) with muted light green accents (#ccd7c1). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the vivid green primary (#adf066) on a green-tinted background (#0a0f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #0a0f05black |
| Foreground | #030401black | #f7f9f6whitesmoke |
| Card | #fcfdfcwhite | #0a0f05black |
| Card foreground | #030401black | #f7f9f6whitesmoke |
| Popover | #fcfdfcwhite | #0a0f05black |
| Popover foreground | #030401black | #f7f9f6whitesmoke |
| Primary | #adf066lightgreen | #adf066lightgreen |
| Primary foreground | #122003black | #122003black |
| Secondary | #dbe1d6gainsboro | #141712black |
| Secondary foreground | #434d38darkslategray | #aeb7a4darkgray |
| Muted | #e8f1dfbeige | #17200eblack |
| Muted foreground | #616161dimgray | #9e9e9edarkgray |
| Accent | #ccd7c1lightgrey | #293121darkslategray |
| Accent foreground | #333e28darkslategray | #c2cdb6silver |
| Destructive | #a4400esaddlebrown | #eb5f19chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #adf066lightgreen | #adf066lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 12.49:1 | AAA |
| Secondary button | 6.68:1 | AA |
| Muted text | 5.33:1 | AA |
| Accent | 7.54:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 18.27:1 | AAA |
| Text on card | 18.27:1 | AAA |
| Primary button | 12.49:1 | AAA |
| Secondary button | 8.70:1 | AAA |
| Muted text | 6.27:1 | AA |
| Accent | 8.20:1 | AAA |
| Destructive | 6.18:1 | AA |
Paste this into your globals.css to use Patent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 127.815);
--foreground: oklch(0.101 0.017 126.653);
--muted: oklch(0.947 0.025 128.107);
--muted-foreground: oklch(0.492 0 180);
--popover: oklch(0.994 0.002 127.815);
--popover-foreground: oklch(0.101 0.017 126.653);
--card: oklch(0.994 0.002 127.815);
--card-foreground: oklch(0.101 0.017 126.653);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.882 0.182 130.922);
--primary-foreground: oklch(0.225 0.054 130.943);
--secondary: oklch(0.902 0.016 128.004);
--secondary-foreground: oklch(0.404 0.037 128.914);
--accent: oklch(0.864 0.031 128.217);
--accent-foreground: oklch(0.347 0.038 129.184);
--destructive: oklch(0.503 0.144 42.126);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.882 0.182 130.922);
--chart-1: oklch(0.882 0.182 130.922);
--chart-2: oklch(0.902 0.016 128.004);
--chart-3: oklch(0.864 0.031 128.217);
--chart-4: oklch(0.923 0.013 127.953);
--chart-5: oklch(0.888 0.187 131.038);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.023 128.211);
--foreground: oklch(0.98 0.005 127.849);
--muted: oklch(0.229 0.035 129.823);
--muted-foreground: oklch(0.7 0 180);
--popover: oklch(0.161 0.023 128.211);
--popover-foreground: oklch(0.98 0.005 127.849);
--card: oklch(0.161 0.023 128.211);
--card-foreground: oklch(0.98 0.005 127.849);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.882 0.182 130.922);
--primary-foreground: oklch(0.225 0.054 130.943);
--secondary: oklch(0.199 0.01 128.404);
--secondary-foreground: oklch(0.767 0.029 128.243);
--accent: oklch(0.299 0.029 128.991);
--accent-foreground: oklch(0.835 0.034 128.275);
--destructive: oklch(0.657 0.188 42.078);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.882 0.182 130.922);
--chart-1: oklch(0.882 0.182 130.922);
--chart-2: oklch(0.199 0.01 128.404);
--chart-3: oklch(0.299 0.029 128.991);
--chart-4: oklch(0.235 0.013 128.479);
--chart-5: oklch(0.888 0.187 131.038);
}