Wary is a shadcn/ui theme built around a muted green primary color (#738650) with muted violet accents (#635086). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#738650) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #060802black | #fafcf8snow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #030401black | #fdfdfbsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #060802black | #fafcf8snow |
| Primary | #738650dimgray | #738650dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #635086darkslateblue | #635086darkslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d9d3e3gainsboro | #211c2cblack |
| Muted foreground | #3d3749darkslategray | #bdb6c8silver |
| Accent | #635086darkslateblue | #635086darkslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8e230bsaddlebrown | #df3711orangered |
| Destructive foreground | #fbd8d0bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #738650dimgray | #738650dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.12:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 3.99:1 | AA Large |
| Secondary button | 6.92:1 | AA |
| Muted text | 7.83:1 | AAA |
| Accent | 6.92:1 | AA |
| Destructive | 6.60:1 | AA |
| Text on background | 20.34:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 3.99:1 | AA Large |
| Secondary button | 6.92:1 | AA |
| Muted text | 8.44:1 | AAA |
| Accent | 6.92:1 | AA |
| Destructive | 4.48:1 | AA Large |
Paste this into your globals.css to use Wary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.128 0.019 121.783);
--muted: oklch(0.877 0.022 301.818);
--muted-foreground: oklch(0.35 0.032 300.782);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.128 0.019 121.783);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.102 0.015 121.783);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.591 0.079 124.497);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.475 0.087 299.196);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.475 0.087 299.196);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.429 0.147 33.494);
--destructive-foreground: oklch(0.909 0.042 32.743);
--ring: oklch(0.591 0.079 124.497);
--chart-1: oklch(0.591 0.079 124.497);
--chart-2: oklch(0.475 0.087 299.196);
--chart-3: oklch(0.475 0.087 299.196);
--chart-4: oklch(0.498 0.092 299.168);
--chart-5: oklch(0.599 0.088 124.749);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.989 0.005 122.299);
--muted: oklch(0.24 0.03 300.173);
--muted-foreground: oklch(0.788 0.026 301.699);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.989 0.005 122.299);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.994 0.003 122.256);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.591 0.079 124.497);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.475 0.087 299.196);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.475 0.087 299.196);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.593 0.209 33.173);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.591 0.079 124.497);
--chart-1: oklch(0.591 0.079 124.497);
--chart-2: oklch(0.475 0.087 299.196);
--chart-3: oklch(0.475 0.087 299.196);
--chart-4: oklch(0.498 0.092 299.168);
--chart-5: oklch(0.599 0.088 124.749);
}