Chamber is a shadcn/ui theme built around a muted green primary color (#c2c7b8) with muted violet accents (#bdb8c7). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the muted green primary (#c2c7b8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f8faf4whitesmoke | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8faf4whitesmoke | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #c2c7b8silver | #c2c7b8silver |
| Primary foreground | #282b22darkslategray | #282b22darkslategray |
| Secondary | #bdb8c7silver | #bdb8c7silver |
| Secondary foreground | #25222bdarkslategray | #25222bdarkslategray |
| Muted | #e1dde9gainsboro | #1a1622black |
| Muted foreground | #49464edarkslategray | #b4b1b9silver |
| Accent | #bdb8c7silver | #bdb8c7silver |
| Accent foreground | #25222bdarkslategray | #25222bdarkslategray |
| Destructive | #ae370ffirebrick | #eb511echocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c2c7b8silver | #c2c7b8silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.35:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 8.31:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 6.91:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.31:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.40:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.65:1 | AA Large |
Paste this into your globals.css to use Chamber in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 122.302);
--foreground: oklch(0 0 0);
--muted: oklch(0.904 0.017 301.914);
--muted-foreground: oklch(0.4 0.013 301.716);
--popover: oklch(0.983 0.008 122.347);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.008 122.347);
--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.821 0.022 122.632);
--primary-foreground: oklch(0.282 0.017 123.173);
--secondary: oklch(0.79 0.022 301.774);
--secondary-foreground: oklch(0.258 0.018 301.14);
--accent: oklch(0.79 0.022 301.774);
--accent-foreground: oklch(0.258 0.018 301.14);
--destructive: oklch(0.507 0.162 36.703);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.821 0.022 122.632);
--chart-1: oklch(0.821 0.022 122.632);
--chart-2: oklch(0.79 0.022 301.774);
--chart-3: oklch(0.79 0.022 301.774);
--chart-4: oklch(0.816 0.019 301.842);
--chart-5: oklch(0.825 0.027 122.734);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.211 0.025 300.336);
--muted-foreground: oklch(0.766 0.011 301.993);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.821 0.022 122.632);
--primary-foreground: oklch(0.282 0.017 123.173);
--secondary: oklch(0.79 0.022 301.774);
--secondary-foreground: oklch(0.258 0.018 301.14);
--accent: oklch(0.79 0.022 301.774);
--accent-foreground: oklch(0.258 0.018 301.14);
--destructive: oklch(0.641 0.199 37.063);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.821 0.022 122.632);
--chart-1: oklch(0.821 0.022 122.632);
--chart-2: oklch(0.79 0.022 301.774);
--chart-3: oklch(0.79 0.022 301.774);
--chart-4: oklch(0.816 0.019 301.842);
--chart-5: oklch(0.825 0.027 122.734);
}