Appropriate is a shadcn/ui theme built around a deep green primary color (#2b5a3b) with deep pink accents (#5a2b49). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the deep green primary (#2b5a3b) on a green-tinted background (#040b07).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #040b07black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #fcfdfcwhite | #040b07black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #fcfdfcwhite | #040b07black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #2b5a3bdarkslategray | #2b5a3bdarkslategray |
| Primary foreground | #cfe8d8gainsboro | #cfe8d8gainsboro |
| Secondary | #5a2b49darkslategray | #5a2b49darkslategray |
| Secondary foreground | #e8cfdfgainsboro | #e8cfdfgainsboro |
| Muted | #eceaeblinen | #151315black |
| Muted foreground | #68505fdimgray | #af97a7darkgray |
| Accent | #5a2b49darkslategray | #5a2b49darkslategray |
| Accent foreground | #e8cfdfgainsboro | #e8cfdfgainsboro |
| Destructive | #943e10saddlebrown | #de5d17chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2b5a3bdarkslategray | #2b5a3bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.62:1 | AAA |
| Text on card | 20.62:1 | AAA |
| Primary button | 6.19:1 | AA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 6.02:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 7.13:1 | AAA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 6.19:1 | AA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 6.85:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Appropriate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 157.935);
--foreground: oklch(0 0 0);
--muted: oklch(0.938 0.003 338.047);
--muted-foreground: oklch(0.461 0.04 339.679);
--popover: oklch(0.993 0.002 157.935);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.993 0.002 157.935);
--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.424 0.072 153.583);
--primary-foreground: oklch(0.907 0.034 157.167);
--secondary: oklch(0.363 0.08 342.229);
--secondary-foreground: oklch(0.879 0.035 338.795);
--accent: oklch(0.363 0.08 342.229);
--accent-foreground: oklch(0.879 0.035 338.795);
--destructive: oklch(0.473 0.128 44.048);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.424 0.072 153.583);
--chart-1: oklch(0.424 0.072 153.583);
--chart-2: oklch(0.363 0.08 342.229);
--chart-3: oklch(0.363 0.08 342.229);
--chart-4: oklch(0.39 0.087 342.304);
--chart-5: oklch(0.428 0.077 153.217);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.017 157.692);
--foreground: oklch(0.993 0.002 157.932);
--muted: oklch(0.191 0.004 338.434);
--muted-foreground: oklch(0.703 0.035 339.002);
--popover: oklch(0.139 0.017 157.692);
--popover-foreground: oklch(0.993 0.002 157.932);
--card: oklch(0.139 0.017 157.692);
--card-foreground: oklch(0.993 0.002 157.932);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.424 0.072 153.583);
--primary-foreground: oklch(0.907 0.034 157.167);
--secondary: oklch(0.363 0.08 342.229);
--secondary-foreground: oklch(0.879 0.035 338.795);
--accent: oklch(0.363 0.08 342.229);
--accent-foreground: oklch(0.879 0.035 338.795);
--destructive: oklch(0.633 0.177 43.363);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.424 0.072 153.583);
--chart-1: oklch(0.424 0.072 153.583);
--chart-2: oklch(0.363 0.08 342.229);
--chart-3: oklch(0.363 0.08 342.229);
--chart-4: oklch(0.39 0.087 342.304);
--chart-5: oklch(0.428 0.077 153.217);
}