Firsthand is a shadcn/ui theme built around a vivid orange primary color (#e69100) with muted light orange accents (#cec7ba). The light mode uses a neutral background (#fefdfb). Dark mode keeps the vivid orange primary (#e69100) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #030302black |
| Foreground | #110c03black | #ffffffwhite |
| Card | #fdfbf7snow | #070603black |
| Card foreground | #0d0903black | #ffffffwhite |
| Popover | #fefdfbsnow | #030302black |
| Popover foreground | #110c03black | #ffffffwhite |
| Primary | #e69100darkorange | #e69100darkorange |
| Primary foreground | #1a1000black | #1a1000black |
| Secondary | #e0dcd7gainsboro | #333333darkslategray |
| Secondary foreground | #4a443adarkslategray | #cccccclightgrey |
| Muted | #f5f3f0whitesmoke | #0f0a0ablack |
| Muted foreground | #6e6553dimgray | #ac9191rosybrown |
| Accent | #cec7basilver | #504444darkslategray |
| Accent foreground | #332d24darkslategray | #e5e1e1gainsboro |
| Destructive | #b92009firebrick | #f43b1forangered |
| Destructive foreground | #fff6f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e69100darkorange | #e69100darkorange |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.14:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 7.07:1 | AAA |
| Muted text | 5.19:1 | AA |
| Accent | 8.11:1 | AAA |
| Destructive | 6.02:1 | AA |
| Text on background | 20.64:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 6.74:1 | AA |
| Accent | 7.19:1 | AAA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Firsthand in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 81.514);
--foreground: oklch(0.158 0.021 84.878);
--muted: oklch(0.964 0.005 81.513);
--muted-foreground: oklch(0.509 0.029 81.336);
--popover: oklch(0.994 0.003 81.514);
--popover-foreground: oklch(0.158 0.021 84.878);
--card: oklch(0.988 0.005 81.513);
--card-foreground: oklch(0.142 0.019 88.036);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.727 0.158 69.141);
--primary-foreground: oklch(0.181 0.037 84.256);
--secondary: oklch(0.897 0.008 81.511);
--secondary-foreground: oklch(0.391 0.018 81.4);
--accent: oklch(0.832 0.019 81.49);
--accent-foreground: oklch(0.301 0.018 81.316);
--destructive: oklch(0.507 0.19 31.326);
--destructive-foreground: oklch(0.981 0.009 27.979);
--ring: oklch(0.727 0.158 69.141);
--chart-1: oklch(0.727 0.158 69.141);
--chart-2: oklch(0.897 0.008 81.511);
--chart-3: oklch(0.832 0.019 81.49);
--chart-4: oklch(0.919 0.006 81.512);
--chart-5: oklch(0.733 0.161 68.542);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.007 85.898);
--foreground: oklch(1 0 180);
--muted: oklch(0.153 0.009 18.182);
--muted-foreground: oklch(0.68 0.033 17.986);
--popover: oklch(0.095 0.007 85.898);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.009 85.898);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.727 0.158 69.141);
--primary-foreground: oklch(0.181 0.037 84.256);
--secondary: oklch(0.321 0 180);
--secondary-foreground: oklch(0.845 0 164.055);
--accent: oklch(0.399 0.016 17.853);
--accent-foreground: oklch(0.912 0.005 17.246);
--destructive: oklch(0.635 0.224 31.622);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.727 0.158 69.141);
--chart-1: oklch(0.727 0.158 69.141);
--chart-2: oklch(0.321 0 180);
--chart-3: oklch(0.399 0.016 17.853);
--chart-4: oklch(0.351 0 167.471);
--chart-5: oklch(0.733 0.161 68.542);
}