Bed is a shadcn/ui theme built around a near-white primary color (#ebebeb) with near-white accents (#ebebeb). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the near-white primary (#ebebeb) on a red-tinted background (#100505).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #100505black |
| Foreground | #150505black | #fcf8f8snow |
| Card | #fbf4f4lavenderblush | #140606black |
| Card foreground | #110404black | #fdfbfbsnow |
| Popover | #fbf4f4lavenderblush | #140606black |
| Popover foreground | #110404black | #fdfbfbsnow |
| Primary | #ebebeblinen | #ebebeblinen |
| Primary foreground | #525252darkslategray | #525252darkslategray |
| Secondary | #ebebeblinen | #ebebeblinen |
| Secondary foreground | #525252darkslategray | #525252darkslategray |
| Muted | #e7d5d5gainsboro | #2a1818black |
| Muted foreground | #463e3edarkslategray | #c1b9b9silver |
| Accent | #ebebeblinen | #ebebeblinen |
| Accent foreground | #525252darkslategray | #525252darkslategray |
| Destructive | #a6400csaddlebrown | #f17c41coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ebebeblinen | #ebebeblinen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.82:1 | AAA |
| Text on card | 18.53:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 6.53:1 | AA |
| Muted text | 7.35:1 | AAA |
| Accent | 6.53:1 | AA |
| Destructive | 6.26:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 6.53:1 | AA |
| Muted text | 8.76:1 | AAA |
| Accent | 6.53:1 | AA |
| Destructive | 7.67:1 | AAA |
Paste this into your globals.css to use Bed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 17.241);
--foreground: oklch(0.143 0.032 22.004);
--muted: oklch(0.887 0.02 17.533);
--muted-foreground: oklch(0.373 0.011 17.656);
--popover: oklch(0.972 0.007 17.284);
--popover-foreground: oklch(0.13 0.028 21.716);
--card: oklch(0.972 0.007 17.284);
--card-foreground: oklch(0.13 0.028 21.716);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.939 0 180);
--primary-foreground: oklch(0.437 0 180);
--secondary: oklch(0.939 0 180);
--secondary-foreground: oklch(0.437 0 180);
--accent: oklch(0.939 0 180);
--accent-foreground: oklch(0.437 0 180);
--destructive: oklch(0.505 0.146 41.802);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.939 0 180);
--chart-1: oklch(0.939 0 180);
--chart-2: oklch(0.939 0 180);
--chart-3: oklch(0.939 0 180);
--chart-4: oklch(0.962 0 180);
--chart-5: oklch(0.938 0.001 17.181);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.023 20.699);
--foreground: oklch(0.982 0.004 17.228);
--muted: oklch(0.234 0.029 19.482);
--muted-foreground: oklch(0.791 0.009 17.347);
--popover: oklch(0.145 0.027 20.955);
--popover-foreground: oklch(0.991 0.002 17.192);
--card: oklch(0.145 0.027 20.955);
--card-foreground: oklch(0.991 0.002 17.192);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.939 0 180);
--primary-foreground: oklch(0.437 0 180);
--secondary: oklch(0.939 0 180);
--secondary-foreground: oklch(0.437 0 180);
--accent: oklch(0.939 0 180);
--accent-foreground: oklch(0.437 0 180);
--destructive: oklch(0.709 0.161 45.263);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.939 0 180);
--chart-1: oklch(0.939 0 180);
--chart-2: oklch(0.939 0 180);
--chart-3: oklch(0.939 0 180);
--chart-4: oklch(0.962 0 180);
--chart-5: oklch(0.938 0.001 17.181);
}