dream is a shadcn/ui theme built around a near-black primary color (#171717) with near-white accents (#f5f5f5). The light mode uses a neutral background (#ffffff). Dark mode switches to a near-white primary (#fafafa) on a neutral background (#0a0a0a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0a0ablack |
| Foreground | #0a0a0ablack | #fafafasnow |
| Card | #ffffffwhite | #0a0a0ablack |
| Card foreground | #0a0a0ablack | #fafafasnow |
| Popover | #ffffffwhite | #0a0a0ablack |
| Popover foreground | #0a0a0ablack | #fafafasnow |
| Primary | #171717black | #fafafasnow |
| Primary foreground | #fafafasnow | #171717black |
| Secondary | #f5f5f5whitesmoke | #262626darkslategray |
| Secondary foreground | #171717black | #fafafasnow |
| Muted | #f5f5f5whitesmoke | #262626darkslategray |
| Muted foreground | #737373dimgray | #a3a3a3darkgray |
| Accent | #f5f5f5whitesmoke | #262626darkslategray |
| Accent foreground | #171717black | #fafafasnow |
| Destructive | #ef4444tomato | #7f1d1dmaroon |
| Destructive foreground | #fafafasnow | #fafafasnow |
| Border | #e5e5e5gainsboro | #262626darkslategray |
| Input | #e5e5e5gainsboro | #262626darkslategray |
| Ring | #0a0a0ablack | #d4d4d4lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 17.18:1 | AAA |
| Secondary button | 16.45:1 | AAA |
| Muted text | 4.35:1 | AA Large |
| Accent | 16.45:1 | AAA |
| Destructive | 3.60:1 | AA Large |
| Text on background | 18.97:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 17.16:1 | AAA |
| Secondary button | 14.49:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 14.49:1 | AAA |
| Destructive | 9.59:1 | AAA |
Paste this into your globals.css to use dream in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.145 0 180);
--muted: oklch(0.97 0 180);
--muted-foreground: oklch(0.556 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.145 0 180);
--card: oklch(1 0 180);
--card-foreground: oklch(0.145 0 180);
--border: oklch(0.922 0 168.69);
--input: oklch(0.922 0 168.69);
--primary: oklch(0.204 0 180);
--primary-foreground: oklch(0.985 0 180);
--secondary: oklch(0.97 0 180);
--secondary-foreground: oklch(0.204 0 180);
--accent: oklch(0.97 0 180);
--accent-foreground: oklch(0.204 0 180);
--destructive: oklch(0.637 0.208 25.326);
--destructive-foreground: oklch(0.985 0 180);
--ring: oklch(0.145 0 180);
--chart-1: oklch(0.204 0 180);
--chart-2: oklch(0.97 0 180);
--chart-3: oklch(0.97 0 180);
--chart-4: oklch(0.993 0 180);
--chart-5: oklch(0.203 0.002 17.337);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0 180);
--foreground: oklch(0.985 0 180);
--muted: oklch(0.269 0 180);
--muted-foreground: oklch(0.715 0 158.199);
--popover: oklch(0.145 0 180);
--popover-foreground: oklch(0.985 0 180);
--card: oklch(0.145 0 180);
--card-foreground: oklch(0.985 0 180);
--border: oklch(0.269 0 180);
--input: oklch(0.269 0 180);
--primary: oklch(0.985 0 180);
--primary-foreground: oklch(0.204 0 180);
--secondary: oklch(0.269 0 180);
--secondary-foreground: oklch(0.985 0 180);
--accent: oklch(0.269 0 180);
--accent-foreground: oklch(0.985 0 180);
--destructive: oklch(0.396 0.133 25.721);
--destructive-foreground: oklch(0.985 0 180);
--ring: oklch(0.87 0 180);
--chart-1: oklch(0.985 0 180);
--chart-2: oklch(0.269 0 180);
--chart-3: oklch(0.269 0 180);
--chart-4: oklch(0.3 0 180);
--chart-5: oklch(0.985 0 17.164);
}