Hopeful is a shadcn/ui theme built around a light orange primary color (#f1c9b6) with light cyan accents (#b6def1). The light mode uses a neutral background (#fefcfb). Dark mode keeps the light orange primary (#f1c9b6) on an orange-tinted background (#0c0603).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #0c0603black |
| Foreground | #100804black | #f9f7f6whitesmoke |
| Card | #fdf9f7snow | #100804black |
| Card foreground | #0c0603black | #fbf9f9snow |
| Popover | #fdf9f7snow | #100804black |
| Popover foreground | #0c0603black | #fbf9f9snow |
| Primary | #f1c9b6wheat | #f1c9b6wheat |
| Primary foreground | #632c13saddlebrown | #632c13saddlebrown |
| Secondary | #b6def1powderblue | #b6def1powderblue |
| Secondary foreground | #134963darkslategray | #134963darkslategray |
| Muted | #ecf1f3whitesmoke | #0c1113black |
| Muted foreground | #374348darkslategray | #b7c2c8silver |
| Accent | #b6def1powderblue | #b6def1powderblue |
| Accent foreground | #134963darkslategray | #134963darkslategray |
| Destructive | #73260dsaddlebrown | #d34617chocolate |
| Destructive foreground | #f7c9bapeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f1c9b6wheat | #f1c9b6wheat |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.38:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 6.83:1 | AA |
| Muted text | 8.96:1 | AAA |
| Accent | 6.83:1 | AA |
| Destructive | 6.96:1 | AA |
| Text on background | 18.84:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 6.83:1 | AA |
| Muted text | 10.49:1 | AAA |
| Accent | 6.83:1 | AA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Hopeful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 46.828);
--foreground: oklch(0.145 0.017 52.146);
--muted: oklch(0.955 0.006 226.933);
--muted-foreground: oklch(0.374 0.017 227.531);
--popover: oklch(0.984 0.005 46.798);
--popover-foreground: oklch(0.131 0.015 54.548);
--card: oklch(0.984 0.005 46.798);
--card-foreground: oklch(0.131 0.015 54.548);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.865 0.053 46.268);
--primary-foreground: oklch(0.364 0.087 43.555);
--secondary: oklch(0.879 0.049 227.717);
--secondary-foreground: oklch(0.384 0.07 233.235);
--accent: oklch(0.879 0.049 227.717);
--accent-foreground: oklch(0.384 0.07 233.235);
--destructive: oklch(0.382 0.114 37.557);
--destructive-foreground: oklch(0.873 0.057 39.254);
--ring: oklch(0.865 0.053 46.268);
--chart-1: oklch(0.865 0.053 46.268);
--chart-2: oklch(0.879 0.049 227.717);
--chart-3: oklch(0.879 0.049 227.717);
--chart-4: oklch(0.9 0.041 227.513);
--chart-5: oklch(0.865 0.055 46.245);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.016 54.999);
--foreground: oklch(0.977 0.003 46.824);
--muted: oklch(0.172 0.009 227.633);
--muted-foreground: oklch(0.808 0.015 227.087);
--popover: oklch(0.145 0.018 52.545);
--popover-foreground: oklch(0.985 0.002 46.835);
--card: oklch(0.145 0.018 52.545);
--card-foreground: oklch(0.985 0.002 46.835);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.865 0.053 46.268);
--primary-foreground: oklch(0.364 0.087 43.555);
--secondary: oklch(0.879 0.049 227.717);
--secondary-foreground: oklch(0.384 0.07 233.235);
--accent: oklch(0.879 0.049 227.717);
--accent-foreground: oklch(0.384 0.07 233.235);
--destructive: oklch(0.589 0.185 36.907);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.865 0.053 46.268);
--chart-1: oklch(0.865 0.053 46.268);
--chart-2: oklch(0.879 0.049 227.717);
--chart-3: oklch(0.879 0.049 227.717);
--chart-4: oklch(0.9 0.041 227.513);
--chart-5: oklch(0.865 0.055 46.245);
}