Hopeful is a shadcn/ui theme built around a deep orange primary color (#482619) with deep violet accents (#261948). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#482619) on a neutral background (#080402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080402black |
| Foreground | #040201black | #f9f6f5whitesmoke |
| Card | #ffffffwhite | #080402black |
| Card foreground | #040201black | #f9f6f5whitesmoke |
| Popover | #ffffffwhite | #080402black |
| Popover foreground | #040201black | #f9f6f5whitesmoke |
| Primary | #482619maroon | #482619maroon |
| Primary foreground | #e3beb0lightpink | #e3beb0lightpink |
| Secondary | #194826darkslategray | #194826darkslategray |
| Secondary foreground | #b0e3besilver | #b0e3besilver |
| Muted | #e6f4eahoneydew | #0b190fblack |
| Muted foreground | #536e5bdimgray | #91ac98darkseagreen |
| Accent | #261948midnightblue | #261948midnightblue |
| Accent foreground | #beb0e3lightsteelblue | #beb0e3lightsteelblue |
| Destructive | #c94313chocolate | #ea521achocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #482619maroon | #482619maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.70:1 | AAA |
| Text on card | 20.70:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 4.93:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 4.89:1 | AA |
| Text on background | 18.99:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 7.38:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Hopeful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.089 0.011 51.643);
--muted: oklch(0.954 0.02 154.806);
--muted-foreground: oklch(0.512 0.044 153.486);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.089 0.011 51.643);
--card: oklch(1 0 180);
--card-foreground: oklch(0.089 0.011 51.643);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.311 0.055 42.04);
--primary-foreground: oklch(0.831 0.047 42.724);
--secondary: oklch(0.359 0.076 150.119);
--secondary-foreground: oklch(0.871 0.073 153.528);
--accent: oklch(0.259 0.083 292.726);
--accent-foreground: oklch(0.786 0.074 297.669);
--destructive: oklch(0.567 0.178 37.586);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.311 0.055 42.04);
--chart-1: oklch(0.311 0.055 42.04);
--chart-2: oklch(0.359 0.076 150.119);
--chart-3: oklch(0.259 0.083 292.726);
--chart-4: oklch(0.396 0.086 149.971);
--chart-5: oklch(0.311 0.059 41.939);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.113 0.014 51.463);
--foreground: oklch(0.976 0.003 43.098);
--muted: oklch(0.196 0.028 152.155);
--muted-foreground: oklch(0.717 0.041 154.094);
--popover: oklch(0.113 0.014 51.463);
--popover-foreground: oklch(0.976 0.003 43.098);
--card: oklch(0.113 0.014 51.463);
--card-foreground: oklch(0.976 0.003 43.098);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.311 0.055 42.04);
--primary-foreground: oklch(0.831 0.047 42.724);
--secondary: oklch(0.359 0.076 150.119);
--secondary-foreground: oklch(0.871 0.073 153.528);
--accent: oklch(0.259 0.083 292.726);
--accent-foreground: oklch(0.786 0.074 297.669);
--destructive: oklch(0.639 0.198 37.805);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.311 0.055 42.04);
--chart-1: oklch(0.311 0.055 42.04);
--chart-2: oklch(0.359 0.076 150.119);
--chart-3: oklch(0.259 0.083 292.726);
--chart-4: oklch(0.396 0.086 149.971);
--chart-5: oklch(0.311 0.059 41.939);
}