Firsthand is a shadcn/ui theme built around a vivid green primary color (#83be0e) with vivid pink accents (#be0e83). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#83be0e) on a green-tinted background (#090a05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #090a05black |
| Foreground | #030401black | #f8f9f5whitesmoke |
| Card | #ffffffwhite | #090a05black |
| Card foreground | #030401black | #f8f9f5whitesmoke |
| Popover | #ffffffwhite | #090a05black |
| Popover foreground | #030401black | #f8f9f5whitesmoke |
| Primary | #83be0eyellowgreen | #83be0eyellowgreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #0e83bedarkcyan | #0e83bedarkcyan |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dfe1e2gainsboro | #1d1f20black |
| Muted foreground | #525557dimgray | #a8acaddarkgray |
| Accent | #be0e83mediumvioletred | #be0e83mediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #bf3712firebrick | #eb4f24chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #83be0eyellowgreen | #83be0eyellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.55:1 | AAA |
| Primary button | 9.31:1 | AAA |
| Secondary button | 4.18:1 | AA Large |
| Muted text | 5.71:1 | AA |
| Accent | 5.87:1 | AA |
| Destructive | 5.54:1 | AA |
| Text on background | 18.77:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 9.31:1 | AAA |
| Secondary button | 4.18:1 | AA Large |
| Muted text | 7.21:1 | AAA |
| Accent | 5.87:1 | AA |
| Destructive | 3.71: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.102 0.016 121.143);
--muted: oklch(0.908 0.003 228.788);
--muted-foreground: oklch(0.447 0.005 228.903);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.102 0.016 121.143);
--card: oklch(1 0 180);
--card-foreground: oklch(0.102 0.016 121.143);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.733 0.19 128.663);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.582 0.128 239.175);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.534 0.219 347.741);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.538 0.178 34.972);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.733 0.19 128.663);
--chart-1: oklch(0.733 0.19 128.663);
--chart-2: oklch(0.582 0.128 239.175);
--chart-3: oklch(0.534 0.219 347.741);
--chart-4: oklch(0.613 0.135 239.305);
--chart-5: oklch(0.741 0.194 128.89);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.014 121.271);
--foreground: oklch(0.981 0.006 121.585);
--muted: oklch(0.238 0.004 228.955);
--muted-foreground: oklch(0.741 0.005 228.83);
--popover: oklch(0.142 0.014 121.271);
--popover-foreground: oklch(0.981 0.006 121.585);
--card: oklch(0.142 0.014 121.271);
--card-foreground: oklch(0.981 0.006 121.585);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.733 0.19 128.663);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.582 0.128 239.175);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.534 0.219 347.741);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.637 0.199 35.538);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.733 0.19 128.663);
--chart-1: oklch(0.733 0.19 128.663);
--chart-2: oklch(0.582 0.128 239.175);
--chart-3: oklch(0.534 0.219 347.741);
--chart-4: oklch(0.613 0.135 239.305);
--chart-5: oklch(0.741 0.194 128.89);
}