Dream is a shadcn/ui theme built around a vivid green primary color (#1ac14a) with vivid purple accents (#c11a92). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the vivid green primary (#1ac14a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #000000black |
| Foreground | #020e05black | #f9fbf9mintcream |
| Card | #f5faf6whitesmoke | #030303black |
| Card foreground | #010903black | #fcfdfcwhite |
| Popover | #f5faf6whitesmoke | #030303black |
| Popover foreground | #010903black | #fcfdfcwhite |
| Primary | #1ac14alimegreen | #1ac14alimegreen |
| Primary foreground | #020d05black | #020d05black |
| Secondary | #c11a92mediumvioletred | #c11a92mediumvioletred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e0d1dcgainsboro | #2e1f29darkslategray |
| Muted foreground | #52474fdarkslategray | #b8adb5darkgray |
| Accent | #c11a92mediumvioletred | #c11a92mediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8e350bsaddlebrown | #de5212chocolate |
| Destructive foreground | #fbded0blanchedalmond | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1ac14alimegreen | #1ac14alimegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.95:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 5.48:1 | AA |
| Muted text | 6.05:1 | AA |
| Accent | 5.48:1 | AA |
| Destructive | 6.21:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 5.48:1 | AA |
| Muted text | 7.21:1 | AAA |
| Accent | 5.48: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.987 0.005 155.105);
--foreground: oklch(0.145 0.03 154.079);
--muted: oklch(0.877 0.021 335.625);
--muted-foreground: oklch(0.412 0.019 336.003);
--popover: oklch(0.98 0.007 155.061);
--popover-foreground: oklch(0.125 0.025 154.47);
--card: oklch(0.98 0.007 155.061);
--card-foreground: oklch(0.125 0.025 154.47);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.709 0.205 146.765);
--primary-foreground: oklch(0.144 0.029 154.1);
--secondary: oklch(0.551 0.222 343.516);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.551 0.222 343.516);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.449 0.13 41.066);
--destructive-foreground: oklch(0.92 0.038 46.438);
--ring: oklch(0.709 0.205 146.765);
--chart-1: oklch(0.709 0.205 146.765);
--chart-2: oklch(0.551 0.222 343.516);
--chart-3: oklch(0.551 0.222 343.516);
--chart-4: oklch(0.579 0.234 343.574);
--chart-5: oklch(0.717 0.21 146.518);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.003 155.135);
--muted: oklch(0.261 0.029 337.075);
--muted-foreground: oklch(0.759 0.016 335.574);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.993 0.002 155.163);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.002 155.163);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.709 0.205 146.765);
--primary-foreground: oklch(0.144 0.029 154.1);
--secondary: oklch(0.551 0.222 343.516);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.551 0.222 343.516);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.62 0.186 40.312);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.709 0.205 146.765);
--chart-1: oklch(0.709 0.205 146.765);
--chart-2: oklch(0.551 0.222 343.516);
--chart-3: oklch(0.551 0.222 343.516);
--chart-4: oklch(0.579 0.234 343.574);
--chart-5: oklch(0.717 0.21 146.518);
}