Dream is a shadcn/ui theme built around a near-black primary color (#0e0206) with near-black accents (#0e0302). The light mode uses a neutral background (#fefbfc). Dark mode keeps the near-black primary (#0e0206) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #000000black |
| Foreground | #040102black | #ffffffwhite |
| Card | #fefbfcsnow | #000000black |
| Card foreground | #040102black | #ffffffwhite |
| Popover | #fefbfcsnow | #000000black |
| Popover foreground | #040102black | #ffffffwhite |
| Primary | #0e0206black | #0e0206black |
| Primary foreground | #e9588dpalevioletred | #e9588dpalevioletred |
| Secondary | #0e020cblack | #0e020cblack |
| Secondary foreground | #e958d6orchid | #e958d6orchid |
| Muted | #eee7edlavender | #181117black |
| Muted foreground | #584655darkslategray | #b9a7b6darkgray |
| Accent | #0e0302black | #0e0302black |
| Accent foreground | #e96b58tomato | #e96b58tomato |
| Destructive | #ba300dfirebrick | #ee3d11orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0e0206black | #0e0206black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 6.62:1 | AA |
| Muted text | 7.15:1 | AAA |
| Accent | 6.49:1 | AA |
| Destructive | 5.98:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 6.62:1 | AA |
| Muted text | 8.19:1 | AAA |
| Accent | 6.49:1 | AA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Dream in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 352.647);
--foreground: oklch(0.082 0.019 352.085);
--muted: oklch(0.936 0.01 329.818);
--muted-foreground: oklch(0.419 0.033 330.625);
--popover: oklch(0.991 0.002 352.647);
--popover-foreground: oklch(0.082 0.019 352.085);
--card: oklch(0.991 0.002 352.647);
--card-foreground: oklch(0.082 0.019 352.085);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.117 0.033 352.655);
--primary-foreground: oklch(0.665 0.185 0.782);
--secondary: oklch(0.121 0.039 331.787);
--secondary-foreground: oklch(0.693 0.226 333.37);
--accent: oklch(0.121 0.025 36.87);
--accent-foreground: oklch(0.677 0.16 30.621);
--destructive: oklch(0.521 0.18 33.921);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.117 0.033 352.655);
--chart-1: oklch(0.117 0.033 352.655);
--chart-2: oklch(0.121 0.039 331.787);
--chart-3: oklch(0.121 0.025 36.87);
--chart-4: oklch(0.163 0.056 333.14);
--chart-5: oklch(0.116 0.034 352.685);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.189 0.015 330.639);
--muted-foreground: oklch(0.749 0.029 330.15);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.117 0.033 352.655);
--primary-foreground: oklch(0.665 0.185 0.782);
--secondary: oklch(0.121 0.039 331.787);
--secondary-foreground: oklch(0.693 0.226 333.37);
--accent: oklch(0.121 0.025 36.87);
--accent-foreground: oklch(0.677 0.16 30.621);
--destructive: oklch(0.625 0.219 33.719);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.117 0.033 352.655);
--chart-1: oklch(0.117 0.033 352.655);
--chart-2: oklch(0.121 0.039 331.787);
--chart-3: oklch(0.121 0.025 36.87);
--chart-4: oklch(0.163 0.056 333.14);
--chart-5: oklch(0.116 0.034 352.685);
}