Firm is a shadcn/ui theme built around a neutral gray primary color (#e2dfdf) with neutral gray accents (#dfdfe2). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the neutral gray primary (#e2dfdf) on a red-tinted background (#0a0605).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf8f7snow | #0a0605black |
| Foreground | #170503black | #faf5f5whitesmoke |
| Card | #fdf8f7snow | #0a0605black |
| Card foreground | #170503black | #faf5f5whitesmoke |
| Popover | #fdf8f7snow | #0a0605black |
| Popover foreground | #170503black | #faf5f5whitesmoke |
| Primary | #e2dfdfgainsboro | #e2dfdfgainsboro |
| Primary foreground | #4b4544darkslategray | #4b4544darkslategray |
| Secondary | #dfe2dfgainsboro | #dfe2dfgainsboro |
| Secondary foreground | #444b45darkslategray | #444b45darkslategray |
| Muted | #e6efe7beige | #101911black |
| Muted foreground | #525653darkslategray | #a9adaadarkgray |
| Accent | #dfdfe2gainsboro | #dfdfe2gainsboro |
| Accent foreground | #45444bdarkslategray | #45444bdarkslategray |
| Destructive | #a82005firebrick | #f84d2atomato |
| Destructive foreground | #fee6e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e2dfdfgainsboro | #e2dfdfgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.80:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 6.87:1 | AA |
| Muted text | 6.35:1 | AA |
| Accent | 7.23:1 | AAA |
| Destructive | 6.11:1 | AA |
| Text on background | 18.69:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 6.87:1 | AA |
| Muted text | 7.91:1 | AAA |
| Accent | 7.23:1 | AAA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use Firm in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 27.96);
--foreground: oklch(0.148 0.034 35.208);
--muted: oklch(0.943 0.014 149.498);
--muted-foreground: oklch(0.449 0.006 149.508);
--popover: oklch(0.982 0.005 27.96);
--popover-foreground: oklch(0.148 0.034 35.208);
--card: oklch(0.982 0.005 27.96);
--card-foreground: oklch(0.148 0.034 35.208);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.906 0.003 27.949);
--primary-foreground: oklch(0.395 0.009 28.055);
--secondary: oklch(0.909 0.005 149.618);
--secondary-foreground: oklch(0.404 0.014 149.254);
--accent: oklch(0.904 0.004 292.457);
--accent-foreground: oklch(0.39 0.012 291.959);
--destructive: oklch(0.475 0.174 32.352);
--destructive-foreground: oklch(0.943 0.027 31.122);
--ring: oklch(0.906 0.003 27.949);
--chart-1: oklch(0.906 0.003 27.949);
--chart-2: oklch(0.909 0.005 149.618);
--chart-3: oklch(0.904 0.004 292.457);
--chart-4: oklch(0.932 0.004 149.636);
--chart-5: oklch(0.906 0.005 27.959);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.011 31.18);
--foreground: oklch(0.975 0.005 27.958);
--muted: oklch(0.201 0.02 148.342);
--muted-foreground: oklch(0.743 0.006 149.59);
--popover: oklch(0.127 0.011 31.18);
--popover-foreground: oklch(0.975 0.005 27.958);
--card: oklch(0.127 0.011 31.18);
--card-foreground: oklch(0.975 0.005 27.958);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.906 0.003 27.949);
--primary-foreground: oklch(0.395 0.009 28.055);
--secondary: oklch(0.909 0.005 149.618);
--secondary-foreground: oklch(0.404 0.014 149.254);
--accent: oklch(0.904 0.004 292.457);
--accent-foreground: oklch(0.39 0.012 291.959);
--destructive: oklch(0.658 0.214 33.125);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.906 0.003 27.949);
--chart-1: oklch(0.906 0.003 27.949);
--chart-2: oklch(0.909 0.005 149.618);
--chart-3: oklch(0.904 0.004 292.457);
--chart-4: oklch(0.932 0.004 149.636);
--chart-5: oklch(0.906 0.005 27.959);
}