Approval is a shadcn/ui theme built around a green primary color (#cad086) with green accents (#a5d086). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the green primary (#cad086) on a green-tinted background (#0d0d07).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #0d0d07black |
| Foreground | #040501black | #ffffffwhite |
| Card | #fbfcf8snow | #101109black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfcf8snow | #101109black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #cad086tan | #cad086tan |
| Primary foreground | #181a0ablack | #181a0ablack |
| Secondary | #d0b186tan | #d0b186tan |
| Secondary foreground | #1a130ablack | #1a130ablack |
| Muted | #e6ddd1gainsboro | #2e2519black |
| Muted foreground | #4e4b46darkslategray | #b9b6b1silver |
| Accent | #a5d086darkseagreen | #a5d086darkseagreen |
| Accent foreground | #111a0ablack | #111a0ablack |
| Destructive | #830301maroon | #fd3330crimson |
| Destructive foreground | #feb9b8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cad086tan | #cad086tan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.12:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 10.79:1 | AAA |
| Secondary button | 9.03:1 | AAA |
| Muted text | 6.46:1 | AA |
| Accent | 10.15:1 | AAA |
| Destructive | 6.47:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 10.79:1 | AAA |
| Secondary button | 9.03:1 | AAA |
| Muted text | 7.40:1 | AAA |
| Accent | 10.15:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Approval in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 110.288);
--foreground: oklch(0.108 0.02 112.193);
--muted: oklch(0.901 0.019 76.538);
--muted-foreground: oklch(0.414 0.01 76.525);
--popover: oklch(0.989 0.004 110.331);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.004 110.331);
--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.835 0.096 112.35);
--primary-foreground: oklch(0.21 0.028 112.71);
--secondary: oklch(0.777 0.068 75.794);
--secondary-foreground: oklch(0.193 0.02 75.429);
--accent: oklch(0.808 0.11 132.979);
--accent-foreground: oklch(0.202 0.032 133.282);
--destructive: oklch(0.385 0.156 29.38);
--destructive-foreground: oklch(0.85 0.08 19.972);
--ring: oklch(0.835 0.096 112.35);
--chart-1: oklch(0.835 0.096 112.35);
--chart-2: oklch(0.777 0.068 75.794);
--chart-3: oklch(0.808 0.11 132.979);
--chart-4: oklch(0.797 0.062 75.963);
--chart-5: oklch(0.842 0.102 112.46);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.013 111.578);
--foreground: oklch(1 0 180);
--muted: oklch(0.273 0.025 75.685);
--muted-foreground: oklch(0.777 0.008 76.6);
--popover: oklch(0.172 0.015 111.835);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.172 0.015 111.835);
--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.835 0.096 112.35);
--primary-foreground: oklch(0.21 0.028 112.71);
--secondary: oklch(0.777 0.068 75.794);
--secondary-foreground: oklch(0.193 0.02 75.429);
--accent: oklch(0.808 0.11 132.979);
--accent-foreground: oklch(0.202 0.032 133.282);
--destructive: oklch(0.645 0.235 27.575);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.835 0.096 112.35);
--chart-1: oklch(0.835 0.096 112.35);
--chart-2: oklch(0.777 0.068 75.794);
--chart-3: oklch(0.808 0.11 132.979);
--chart-4: oklch(0.797 0.062 75.963);
--chart-5: oklch(0.842 0.102 112.46);
}