Firsthand is a shadcn/ui theme built around a green primary color (#47e18f) with teal accents (#47e1dc). The light mode uses a neutral background (#f8fbfa). Dark mode keeps the green primary (#47e18f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfamintcream | #000000black |
| Foreground | #03170cblack | #f9fbfamintcream |
| Card | #f5faf7whitesmoke | #030303black |
| Card foreground | #02120ablack | #fcfdfcwhite |
| Popover | #f8fbfamintcream | #000000black |
| Popover foreground | #03170cblack | #f9fbfamintcream |
| Primary | #47e18fmediumaquamarine | #47e18fmediumaquamarine |
| Primary foreground | #000000black | #000000black |
| Secondary | #4ce147limegreen | #4ce147limegreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #e5ebe5gainsboro | #141a14black |
| Muted foreground | #545954dimgray | #a6aba6darkgray |
| Accent | #47e1dcturquoise | #47e1dcturquoise |
| Accent foreground | #000000black | #000000black |
| Destructive | #6c1104maroon | #f52a0forangered |
| Destructive foreground | #fbb1a7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #47e18fmediumaquamarine | #47e18fmediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.88:1 | AAA |
| Text on card | 18.16:1 | AAA |
| Primary button | 12.43:1 | AAA |
| Secondary button | 12.16:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 13.06:1 | AAA |
| Destructive | 6.97:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 12.43:1 | AAA |
| Secondary button | 12.16:1 | AAA |
| Muted text | 7.56:1 | AAA |
| Accent | 13.06:1 | AAA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Firsthand in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 163.342);
--foreground: oklch(0.182 0.035 159.006);
--muted: oklch(0.934 0.011 144.544);
--muted-foreground: oklch(0.459 0.01 144.471);
--popover: oklch(0.987 0.004 163.342);
--popover-foreground: oklch(0.182 0.035 159.006);
--card: oklch(0.98 0.006 163.289);
--card-foreground: oklch(0.164 0.03 160.835);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.81 0.174 155.441);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.801 0.231 142.608);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.83 0.126 191.731);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.344 0.126 31.317);
--destructive-foreground: oklch(0.828 0.089 27.525);
--ring: oklch(0.81 0.174 155.441);
--chart-1: oklch(0.81 0.174 155.441);
--chart-2: oklch(0.801 0.231 142.608);
--chart-3: oklch(0.83 0.126 191.731);
--chart-4: oklch(0.811 0.22 142.723);
--chart-5: oklch(0.817 0.179 155.133);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.003 163.362);
--muted: oklch(0.21 0.016 144.126);
--muted-foreground: oklch(0.735 0.009 144.537);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.003 163.362);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.002 163.403);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.81 0.174 155.441);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.801 0.231 142.608);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.83 0.126 191.731);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.623 0.237 30.856);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.81 0.174 155.441);
--chart-1: oklch(0.81 0.174 155.441);
--chart-2: oklch(0.801 0.231 142.608);
--chart-3: oklch(0.83 0.126 191.731);
--chart-4: oklch(0.811 0.22 142.723);
--chart-5: oklch(0.817 0.179 155.133);
}