Firm is a shadcn/ui theme built around a vivid blue primary color (#0c88ca) with vivid orange accents (#ca4f0c). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#0c88ca) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #010304black | #fcfdfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #010304black | #fcfdfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #010304black | #fcfdfdwhite |
| Primary | #0c88calightseagreen | #0c88calightseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ca4f0cchocolate | #ca4f0cchocolate |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ece4dfantiquewhite | #201813black |
| Muted foreground | #443e3bdarkslategray | #c4bebbsilver |
| Accent | #ca4f0cchocolate | #ca4f0cchocolate |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d54801orangered | #f45201orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c88calightseagreen | #0c88calightseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.66:1 | AAA |
| Primary button | 3.90:1 | AA Large |
| Secondary button | 4.53:1 | AA |
| Muted text | 8.34:1 | AAA |
| Accent | 4.53:1 | AA |
| Destructive | 4.41:1 | AA Large |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 3.90:1 | AA Large |
| Secondary button | 4.53:1 | AA |
| Muted text | 9.54:1 | AAA |
| Accent | 4.53:1 | AA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Firm in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.092 0.011 223.342);
--muted: oklch(0.923 0.011 50.502);
--muted-foreground: oklch(0.37 0.01 50.335);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.092 0.011 223.342);
--card: oklch(1 0 180);
--card-foreground: oklch(0.092 0.011 223.342);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.599 0.139 241.656);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.584 0.171 42.142);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.584 0.171 42.142);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.593 0.188 39.351);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.599 0.139 241.656);
--chart-1: oklch(0.599 0.139 241.656);
--chart-2: oklch(0.584 0.171 42.142);
--chart-3: oklch(0.584 0.171 42.142);
--chart-4: oklch(0.614 0.181 42.014);
--chart-5: oklch(0.603 0.142 242.19);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 230.675);
--muted: oklch(0.216 0.017 49.759);
--muted-foreground: oklch(0.805 0.008 50.533);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 230.675);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 230.675);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.599 0.139 241.656);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.584 0.171 42.142);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.584 0.171 42.142);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.654 0.209 39.039);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.599 0.139 241.656);
--chart-1: oklch(0.599 0.139 241.656);
--chart-2: oklch(0.584 0.171 42.142);
--chart-3: oklch(0.584 0.171 42.142);
--chart-4: oklch(0.614 0.181 42.014);
--chart-5: oklch(0.603 0.142 242.19);
}