Bamboo is a shadcn/ui theme built around a muted green primary color (#95a993) with muted green accents (#b1cbaf). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted green primary (#95a993) on a green-tinted background (#051004).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #051004black |
| Foreground | #000000black | #f9fbf9mintcream |
| Card | #f8fdf7mintcream | #061405black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #f8fdf7mintcream | #061405black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #95a993darkseagreen | #95a993darkseagreen |
| Primary foreground | #050605black | #050605black |
| Secondary | #cedacelightgrey | #151915black |
| Secondary foreground | #344332darkslategray | #aab6aadarkgray |
| Muted | #e2eee2gainsboro | #111d11black |
| Muted foreground | #5f6e5edimgray | #92a191darkseagreen |
| Accent | #b1cbafsilver | #263225darkslategray |
| Accent foreground | #1d2b1cblack | #bdcdbcsilver |
| Destructive | #c9520dchocolate | #f27831tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #95a993darkseagreen | #95a993darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.65:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 4.54:1 | AA |
| Accent | 8.47:1 | AAA |
| Destructive | 4.46:1 | AA Large |
| Text on background | 18.65:1 | AAA |
| Text on card | 18.53:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 6.37:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 7.48:1 | AAA |
Paste this into your globals.css to use Bamboo in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 143.613);
--foreground: oklch(0 0 0);
--muted: oklch(0.938 0.021 143.515);
--muted-foreground: oklch(0.521 0.031 143.315);
--popover: oklch(0.987 0.009 143.59);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.009 143.59);
--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.712 0.038 143.352);
--primary-foreground: oklch(0.117 0.005 143.305);
--secondary: oklch(0.875 0.02 143.512);
--secondary-foreground: oklch(0.364 0.034 143.128);
--accent: oklch(0.814 0.048 143.322);
--accent-foreground: oklch(0.272 0.033 142.97);
--destructive: oklch(0.587 0.167 43.586);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.712 0.038 143.352);
--chart-1: oklch(0.712 0.038 143.352);
--chart-2: oklch(0.875 0.02 143.512);
--chart-3: oklch(0.814 0.048 143.322);
--chart-4: oklch(0.898 0.017 143.537);
--chart-5: oklch(0.716 0.048 143.277);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.032 142.005);
--foreground: oklch(0.986 0.003 143.619);
--muted: oklch(0.217 0.03 142.879);
--muted-foreground: oklch(0.693 0.029 143.412);
--popover: oklch(0.173 0.036 142.109);
--popover-foreground: oklch(0.993 0.002 143.627);
--card: oklch(0.173 0.036 142.109);
--card-foreground: oklch(0.993 0.002 143.627);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.712 0.038 143.352);
--primary-foreground: oklch(0.117 0.005 143.305);
--secondary: oklch(0.207 0.009 143.408);
--secondary-foreground: oklch(0.764 0.022 143.482);
--accent: oklch(0.301 0.028 143.126);
--accent-foreground: oklch(0.831 0.03 143.444);
--destructive: oklch(0.703 0.171 47.004);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.712 0.038 143.352);
--chart-1: oklch(0.712 0.038 143.352);
--chart-2: oklch(0.207 0.009 143.408);
--chart-3: oklch(0.301 0.028 143.126);
--chart-4: oklch(0.241 0.011 143.384);
--chart-5: oklch(0.716 0.048 143.277);
}