Hasty is a shadcn/ui theme built around a muted blue primary color (#7a97b3) with muted green accents (#97b37a). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#7a97b3) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020508black | #f5f7fawhitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #020508black | #f5f7fawhitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #020508black | #f5f7fawhitesmoke |
| Primary | #7a97b3lightslategray | #7a97b3lightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #b37a97rosybrown | #b37a97rosybrown |
| Secondary foreground | #000000black | #000000black |
| Muted | #e8dee3gainsboro | #21171cblack |
| Muted foreground | #605c5edimgray | #a39fa1darkgray |
| Accent | #97b37adarkseagreen | #97b37adarkseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #b73101firebrick | #fe571borangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7a97b3lightslategray | #7a97b3lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.43:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 6.15:1 | AA |
| Muted text | 5.00:1 | AA |
| Accent | 9.02:1 | AAA |
| Destructive | 6.08:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 6.15:1 | AA |
| Muted text | 6.66:1 | AA |
| Accent | 9.02:1 | AAA |
| Destructive | 6.59:1 | AA |
Paste this into your globals.css to use Hasty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.112 0.013 237.871);
--muted: oklch(0.91 0.013 344.649);
--muted-foreground: oklch(0.481 0.006 344.587);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.112 0.013 237.871);
--card: oklch(1 0 180);
--card-foreground: oklch(0.112 0.013 237.871);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.665 0.052 246.879);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.647 0.08 347.244);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.731 0.084 129.241);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.517 0.176 36.002);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.665 0.052 246.879);
--chart-1: oklch(0.665 0.052 246.879);
--chart-2: oklch(0.647 0.08 347.244);
--chart-3: oklch(0.731 0.084 129.241);
--chart-4: oklch(0.673 0.073 346.906);
--chart-5: oklch(0.665 0.058 246.99);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.004 246.011);
--muted: oklch(0.219 0.019 346.355);
--muted-foreground: oklch(0.705 0.005 344.473);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.004 246.011);
--card: oklch(0 0 0);
--card-foreground: oklch(0.976 0.004 246.011);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.665 0.052 246.879);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.647 0.08 347.244);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.731 0.084 129.241);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.677 0.212 37.58);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.665 0.052 246.879);
--chart-1: oklch(0.665 0.052 246.879);
--chart-2: oklch(0.647 0.08 347.244);
--chart-3: oklch(0.731 0.084 129.241);
--chart-4: oklch(0.673 0.073 346.906);
--chart-5: oklch(0.665 0.058 246.99);
}