Firsthand is a shadcn/ui theme built around a vivid yellow primary color (#f0d333) with vivid blue accents (#334ff0). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#f0d333) on a neutral background (#080702).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080702black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #ffffffwhite | #080702black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #ffffffwhite | #080702black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #f0d333gold | #f0d333gold |
| Primary foreground | #514506darkolivegreen | #514506darkolivegreen |
| Secondary | #334ff0royalblue | #334ff0royalblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e3e5f2lavender | #0d0f1cblack |
| Muted foreground | #4a4a4adarkslategray | #b5b5b5silver |
| Accent | #334ff0royalblue | #334ff0royalblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #5c210amaroon | #e25118chocolate |
| Destructive foreground | #f5baa3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f0d333gold | #f0d333gold |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.39:1 | AA |
| Secondary button | 5.96:1 | AA |
| Muted text | 7.07:1 | AAA |
| Accent | 5.96:1 | AA |
| Destructive | 7.39:1 | AAA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 6.39:1 | AA |
| Secondary button | 5.96:1 | AA |
| Muted text | 9.29:1 | AAA |
| Accent | 5.96:1 | AA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Firsthand in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.925 0.018 278.03);
--muted-foreground: oklch(0.409 0 190.305);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.866 0.167 98.469);
--primary-foreground: oklch(0.392 0.078 98.132);
--secondary: oklch(0.52 0.24 268.204);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.52 0.24 268.204);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.334 0.093 39.967);
--destructive-foreground: oklch(0.837 0.076 42.556);
--ring: oklch(0.866 0.167 98.469);
--chart-1: oklch(0.866 0.167 98.469);
--chart-2: oklch(0.52 0.24 268.204);
--chart-3: oklch(0.52 0.24 268.204);
--chart-4: oklch(0.548 0.224 269.56);
--chart-5: oklch(0.874 0.17 98.337);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.016 102.011);
--foreground: oklch(0.994 0.002 98.34);
--muted: oklch(0.173 0.028 275.491);
--muted-foreground: oklch(0.773 0 180);
--popover: oklch(0.128 0.016 102.011);
--popover-foreground: oklch(0.994 0.002 98.34);
--card: oklch(0.128 0.016 102.011);
--card-foreground: oklch(0.994 0.002 98.34);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.866 0.167 98.469);
--primary-foreground: oklch(0.392 0.078 98.132);
--secondary: oklch(0.52 0.24 268.204);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.52 0.24 268.204);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.626 0.191 38.699);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.866 0.167 98.469);
--chart-1: oklch(0.866 0.167 98.469);
--chart-2: oklch(0.52 0.24 268.204);
--chart-3: oklch(0.52 0.24 268.204);
--chart-4: oklch(0.548 0.224 269.56);
--chart-5: oklch(0.874 0.17 98.337);
}