Bed is a shadcn/ui theme built around a neutral gray primary color (#b5b1ab) with neutral gray accents (#b1abb5). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#b5b1ab) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #090602black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #090602black | #ffffffwhite |
| Primary | #b5b1abdarkgray | #b5b1abdarkgray |
| Primary foreground | #181716black | #181716black |
| Secondary | #abb5b1darkgray | #abb5b1darkgray |
| Secondary foreground | #161817black | #161817black |
| Muted | #e0f0ealavender | #0f1f19black |
| Muted foreground | #454a48darkslategray | #b5bab8silver |
| Accent | #b1abb5darkgray | #b1abb5darkgray |
| Accent foreground | #171618black | #171618black |
| Destructive | #681708maroon | #e23212orangered |
| Destructive foreground | #f8b6aalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b5b1abdarkgray | #b5b1abdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 8.39:1 | AAA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 7.65:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 7.17:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.39:1 | AAA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 8.69:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 4.46:1 | AA Large |
Paste this into your globals.css to use Bed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.017 89.1);
--muted: oklch(0.941 0.018 172.006);
--muted-foreground: oklch(0.403 0.006 172.125);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.017 89.1);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.098 0.013 89.1);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.762 0.009 81.508);
--primary-foreground: oklch(0.206 0.004 81.499);
--secondary: oklch(0.764 0.012 172.126);
--secondary-foreground: oklch(0.207 0.005 171.907);
--accent: oklch(0.75 0.015 313.483);
--accent-foreground: oklch(0.201 0.006 313.422);
--destructive: oklch(0.342 0.117 32.34);
--destructive-foreground: oklch(0.834 0.08 30.11);
--ring: oklch(0.762 0.009 81.508);
--chart-1: oklch(0.762 0.009 81.508);
--chart-2: oklch(0.764 0.012 172.126);
--chart-3: oklch(0.75 0.015 313.483);
--chart-4: oklch(0.787 0.01 172.185);
--chart-5: oklch(0.765 0.014 81.499);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.222 0.024 168.825);
--muted-foreground: oklch(0.784 0.005 172.38);
--popover: oklch(0 0 0);
--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.762 0.009 81.508);
--primary-foreground: oklch(0.206 0.004 81.499);
--secondary: oklch(0.764 0.012 172.126);
--secondary-foreground: oklch(0.207 0.005 171.907);
--accent: oklch(0.75 0.015 313.483);
--accent-foreground: oklch(0.201 0.006 313.422);
--destructive: oklch(0.595 0.216 32.002);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.762 0.009 81.508);
--chart-1: oklch(0.762 0.009 81.508);
--chart-2: oklch(0.764 0.012 172.126);
--chart-3: oklch(0.75 0.015 313.483);
--chart-4: oklch(0.787 0.01 172.185);
--chart-5: oklch(0.765 0.014 81.499);
}