Bony is a shadcn/ui theme built around a muted green primary color (#687444) with muted light green accents (#cacec0). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the muted green primary (#687444) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #000000black |
| Foreground | #111405black | #ffffffwhite |
| Card | #fbfcf8snow | #000000black |
| Card foreground | #111405black | #ffffffwhite |
| Popover | #fbfcf8snow | #000000black |
| Popover foreground | #111405black | #ffffffwhite |
| Primary | #687444darkolivegreen | #687444darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dfdfddgainsboro | #2e2e2edarkslategray |
| Secondary foreground | #464842darkslategray | #c7c7c7silver |
| Muted | #ecefe1beige | #1e1010black |
| Muted foreground | #5d644adarkolivegreen | #b59b9brosybrown |
| Accent | #cacec0silver | #453b3bdarkslategray |
| Accent foreground | #313328darkslategray | #dcd6d6gainsboro |
| Destructive | #661705maroon | #f4421aorangered |
| Destructive foreground | #fbb3a2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #687444darkolivegreen | #687444darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.12:1 | AAA |
| Text on card | 18.12:1 | AAA |
| Primary button | 5.05:1 | AA |
| Secondary button | 6.94:1 | AA |
| Muted text | 5.32:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 7.14:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.05:1 | AA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 7.15:1 | AAA |
| Accent | 7.57:1 | AAA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Bony in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 117.937);
--foreground: oklch(0.184 0.03 120.396);
--muted: oklch(0.947 0.02 118.196);
--muted-foreground: oklch(0.489 0.041 119.32);
--popover: oklch(0.99 0.006 117.937);
--popover-foreground: oklch(0.184 0.03 120.396);
--card: oklch(0.99 0.006 117.937);
--card-foreground: oklch(0.184 0.03 120.396);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.536 0.071 120.289);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.903 0.004 117.896);
--secondary-foreground: oklch(0.397 0.009 118.237);
--accent: oklch(0.844 0.019 118.218);
--accent-foreground: oklch(0.316 0.019 118.917);
--destructive: oklch(0.339 0.116 33.83);
--destructive-foreground: oklch(0.829 0.088 33.072);
--ring: oklch(0.536 0.071 120.289);
--chart-1: oklch(0.536 0.071 120.289);
--chart-2: oklch(0.903 0.004 117.896);
--chart-3: oklch(0.844 0.019 118.218);
--chart-4: oklch(0.926 0.003 117.878);
--chart-5: oklch(0.543 0.078 120.536);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.192 0.025 19.619);
--muted-foreground: oklch(0.714 0.031 17.899);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.536 0.071 120.289);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.301 0 189.462);
--secondary-foreground: oklch(0.829 0 180);
--accent: oklch(0.362 0.014 17.834);
--accent-foreground: oklch(0.88 0.007 17.285);
--destructive: oklch(0.64 0.22 33.464);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.536 0.071 120.289);
--chart-1: oklch(0.536 0.071 120.289);
--chart-2: oklch(0.301 0 189.462);
--chart-3: oklch(0.362 0.014 17.834);
--chart-4: oklch(0.331 0 180);
--chart-5: oklch(0.543 0.078 120.536);
}