Hello is a shadcn/ui theme built around a near-white primary color (#fafdf7) with near-white accents (#faf7fd). The light mode uses a neutral background (#fcfefb). Dark mode keeps the near-white primary (#fafdf7) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #020302black |
| Foreground | #0c1504black | #fafaf9snow |
| Card | #fcfefbwhite | #020302black |
| Card foreground | #0c1504black | #fafaf9snow |
| Popover | #fcfefbwhite | #020302black |
| Popover foreground | #0c1504black | #fafaf9snow |
| Primary | #fafdf7mintcream | #fafdf7mintcream |
| Primary foreground | #2b4c10darkgreen | #2b4c10darkgreen |
| Secondary | #faf7fdghostwhite | #faf7fdghostwhite |
| Secondary foreground | #6722a0rebeccapurple | #6722a0rebeccapurple |
| Muted | #e9e0f1lavender | #180e1fblack |
| Muted foreground | #524a59darkslategray | #aea6b5darkgray |
| Accent | #faf7fdghostwhite | #faf7fdghostwhite |
| Accent foreground | #6722a0rebeccapurple | #6722a0rebeccapurple |
| Destructive | #db0f00red | #e60f00red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fafdf7mintcream | #fafdf7mintcream |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.41:1 | AAA |
| Text on card | 18.41:1 | AAA |
| Primary button | 9.54:1 | AAA |
| Secondary button | 8.53:1 | AAA |
| Muted text | 6.58:1 | AA |
| Accent | 8.53:1 | AAA |
| Destructive | 5.13:1 | AA |
| Text on background | 19.73:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 9.54:1 | AAA |
| Secondary button | 8.53:1 | AAA |
| Muted text | 7.93:1 | AAA |
| Accent | 8.53:1 | AAA |
| Destructive | 4.75:1 | AA |
Paste this into your globals.css to use Hello in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 130.478);
--foreground: oklch(0.182 0.036 131.557);
--muted: oklch(0.918 0.025 310.186);
--muted-foreground: oklch(0.423 0.026 309.868);
--popover: oklch(0.995 0.004 130.478);
--popover-foreground: oklch(0.182 0.036 131.557);
--card: oklch(0.995 0.004 130.478);
--card-foreground: oklch(0.182 0.036 131.557);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.99 0.01 130.528);
--primary-foreground: oklch(0.377 0.094 134.103);
--secondary: oklch(0.98 0.01 310.347);
--secondary-foreground: oklch(0.427 0.189 304.203);
--accent: oklch(0.98 0.01 310.347);
--accent-foreground: oklch(0.427 0.189 304.203);
--destructive: oklch(0.564 0.227 29.889);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.99 0.01 130.528);
--chart-1: oklch(0.99 0.01 130.528);
--chart-2: oklch(0.98 0.01 310.347);
--chart-3: oklch(0.98 0.01 310.347);
--chart-4: oklch(1.01 0.005 130.482);
--chart-5: oklch(0.99 0.01 130.532);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.01 129.567);
--foreground: oklch(0.986 0.002 130.453);
--muted: oklch(0.187 0.036 308.568);
--muted-foreground: oklch(0.737 0.023 310.151);
--popover: oklch(0.097 0.01 129.567);
--popover-foreground: oklch(0.986 0.002 130.453);
--card: oklch(0.097 0.01 129.567);
--card-foreground: oklch(0.986 0.002 130.453);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.99 0.01 130.528);
--primary-foreground: oklch(0.377 0.094 134.103);
--secondary: oklch(0.98 0.01 310.347);
--secondary-foreground: oklch(0.427 0.189 304.203);
--accent: oklch(0.98 0.01 310.347);
--accent-foreground: oklch(0.427 0.189 304.203);
--destructive: oklch(0.583 0.235 29.859);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.99 0.01 130.528);
--chart-1: oklch(0.99 0.01 130.528);
--chart-2: oklch(0.98 0.01 310.347);
--chart-3: oklch(0.98 0.01 310.347);
--chart-4: oklch(1.01 0.005 130.482);
--chart-5: oklch(0.99 0.01 130.532);
}