Hope is a shadcn/ui theme built around a pink primary color (#dd2c8d) with red accents (#dd2c35). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#dd2c8d) on a pink-tinted background (#0b0408).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0408black |
| Foreground | #16040eblack | #fdfcfcsnow |
| Card | #ffffffwhite | #0b0408black |
| Card foreground | #16040eblack | #fdfcfcsnow |
| Popover | #ffffffwhite | #0b0408black |
| Popover foreground | #16040eblack | #fdfcfcsnow |
| Primary | #dd2c8dmediumvioletred | #dd2c8dmediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d42cddmediumorchid | #d42cddmediumorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #efe0f0lavender | #1e0f1fblack |
| Muted foreground | #454446darkslategray | #bbb9bbsilver |
| Accent | #dd2c35crimson | #dd2c35crimson |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8b350esaddlebrown | #ea662achocolate |
| Destructive foreground | #faded1antiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dd2c8dmediumvioletred | #dd2c8dmediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 4.35:1 | AA Large |
| Secondary button | 4.03:1 | AA Large |
| Muted text | 7.65:1 | AAA |
| Accent | 4.68:1 | AA |
| Destructive | 6.25:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 4.35:1 | AA Large |
| Secondary button | 4.03:1 | AA Large |
| Muted text | 9.42:1 | AAA |
| Accent | 4.68:1 | AA |
| Destructive | 6.44:1 | AA |
Paste this into your globals.css to use Hope in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.04 346.711);
--muted: oklch(0.923 0.028 324.303);
--muted-foreground: oklch(0.389 0.003 324.173);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.04 346.711);
--card: oklch(1 0 180);
--card-foreground: oklch(0.146 0.04 346.711);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.606 0.223 352.916);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.63 0.267 325.849);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.584 0.21 24.615);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.446 0.127 41.493);
--destructive-foreground: oklch(0.92 0.036 46.451);
--ring: oklch(0.606 0.223 352.916);
--chart-1: oklch(0.606 0.223 352.916);
--chart-2: oklch(0.63 0.267 325.849);
--chart-3: oklch(0.584 0.21 24.615);
--chart-4: oklch(0.644 0.258 325.838);
--chart-5: oklch(0.61 0.229 353.382);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.018 342.679);
--foreground: oklch(0.992 0.001 342.643);
--muted: oklch(0.197 0.04 325.177);
--muted-foreground: oklch(0.789 0.002 324.148);
--popover: oklch(0.125 0.018 342.679);
--popover-foreground: oklch(0.992 0.001 342.643);
--card: oklch(0.125 0.018 342.679);
--card-foreground: oklch(0.992 0.001 342.643);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.606 0.223 352.916);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.63 0.267 325.849);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.584 0.21 24.615);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.666 0.178 42.418);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.606 0.223 352.916);
--chart-1: oklch(0.606 0.223 352.916);
--chart-2: oklch(0.63 0.267 325.849);
--chart-3: oklch(0.584 0.21 24.615);
--chart-4: oklch(0.644 0.258 325.838);
--chart-5: oklch(0.61 0.229 353.382);
}