Begonia is a shadcn/ui theme built around a muted green primary color (#76937b) with muted light green accents (#bcc8be). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#76937b) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010402black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #ffffffwhite | #010402black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #ffffffwhite | #010402black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #76937bgray | #76937bgray |
| Primary foreground | #000000black | #000000black |
| Secondary | #dadddagainsboro | #151916black |
| Secondary foreground | #404541darkslategray | #aab5acdarkgray |
| Muted | #e6f4e9honeydew | #0b190dblack |
| Muted foreground | #475c4bdarkslategray | #a3b8a7darkgray |
| Accent | #bcc8besilver | #263128darkslategray |
| Accent foreground | #252d26darkslategray | #bdccc0silver |
| Destructive | #d91b02red | #fd3f26orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #76937bgray | #76937bgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.24:1 | AA |
| Secondary button | 7.13:1 | AAA |
| Muted text | 6.37:1 | AA |
| Accent | 8.18:1 | AAA |
| Destructive | 5.10:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 6.24:1 | AA |
| Secondary button | 8.40:1 | AAA |
| Muted text | 8.61:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Begonia in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.954 0.021 151.087);
--muted-foreground: oklch(0.453 0.038 150.123);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.635 0.049 150.248);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.894 0.004 151.337);
--secondary-foreground: oklch(0.384 0.01 151.026);
--accent: oklch(0.82 0.019 151.067);
--accent-foreground: oklch(0.286 0.017 150.546);
--destructive: oklch(0.564 0.221 30.68);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.635 0.049 150.248);
--chart-1: oklch(0.635 0.049 150.248);
--chart-2: oklch(0.894 0.004 151.337);
--chart-3: oklch(0.82 0.019 151.067);
--chart-4: oklch(0.917 0.003 151.353);
--chart-5: oklch(0.64 0.06 149.958);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.015 150.561);
--foreground: oklch(0.993 0.001 151.396);
--muted: oklch(0.196 0.03 148.899);
--muted-foreground: oklch(0.761 0.034 150.753);
--popover: oklch(0.097 0.015 150.561);
--popover-foreground: oklch(0.993 0.001 151.396);
--card: oklch(0.097 0.015 150.561);
--card-foreground: oklch(0.993 0.001 151.396);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.635 0.049 150.248);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.207 0.007 150.905);
--secondary-foreground: oklch(0.763 0.018 151.071);
--accent: oklch(0.299 0.023 150.27);
--accent-foreground: oklch(0.83 0.024 150.989);
--destructive: oklch(0.653 0.229 31.031);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.635 0.049 150.248);
--chart-1: oklch(0.635 0.049 150.248);
--chart-2: oklch(0.207 0.007 150.905);
--chart-3: oklch(0.299 0.023 150.27);
--chart-4: oklch(0.241 0.009 150.852);
--chart-5: oklch(0.64 0.06 149.958);
}