Firm is a shadcn/ui theme built around a vivid cyan primary color (#49ddf3) with vivid blue accents (#4987f3). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid cyan primary (#49ddf3) on a cyan-tinted background (#040a0b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040a0bblack |
| Foreground | #031417black | #ffffffwhite |
| Card | #fcfcfcsnow | #060e0fblack |
| Card foreground | #021012black | #ffffffwhite |
| Popover | #ffffffwhite | #040a0bblack |
| Popover foreground | #031417black | #ffffffwhite |
| Primary | #49ddf3turquoise | #49ddf3turquoise |
| Primary foreground | #01080ablack | #01080ablack |
| Secondary | #49f3b5turquoise | #49f3b5turquoise |
| Secondary foreground | #010a06black | #010a06black |
| Muted | #edf2f0whitesmoke | #0d1210black |
| Muted foreground | #515d58dimgray | #a2aeaadarkgray |
| Accent | #4987f3cornflowerblue | #4987f3cornflowerblue |
| Accent foreground | #000000black | #000000black |
| Destructive | #7b2d09saddlebrown | #e45411chocolate |
| Destructive foreground | #fad0bdpeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #49ddf3turquoise | #49ddf3turquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.81:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 12.38:1 | AAA |
| Secondary button | 14.14:1 | AAA |
| Muted text | 6.09:1 | AA |
| Accent | 6.06:1 | AA |
| Destructive | 6.63:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 12.38:1 | AAA |
| Secondary button | 14.14:1 | AAA |
| Muted text | 8.25:1 | AAA |
| Accent | 6.06:1 | AA |
| Destructive | 3.77: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.178 0.026 207.575);
--muted: oklch(0.958 0.006 172.38);
--muted-foreground: oklch(0.466 0.017 171.495);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.178 0.026 207.575);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.161 0.023 206.603);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.828 0.125 209.85);
--primary-foreground: oklch(0.125 0.019 203.599);
--secondary: oklch(0.864 0.164 163.938);
--secondary-foreground: oklch(0.128 0.022 172.953);
--accent: oklch(0.637 0.174 260.53);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.407 0.117 41.214);
--destructive-foreground: oklch(0.889 0.054 46.264);
--ring: oklch(0.828 0.125 209.85);
--chart-1: oklch(0.828 0.125 209.85);
--chart-2: oklch(0.864 0.164 163.938);
--chart-3: oklch(0.637 0.174 260.53);
--chart-4: oklch(0.871 0.155 164.917);
--chart-5: oklch(0.834 0.128 210);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.012 205.633);
--foreground: oklch(1 0 180);
--muted: oklch(0.176 0.01 170.896);
--muted-foreground: oklch(0.741 0.015 171.977);
--popover: oklch(0.139 0.012 205.633);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.154 0.014 207.006);
--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.828 0.125 209.85);
--primary-foreground: oklch(0.125 0.019 203.599);
--secondary: oklch(0.864 0.164 163.938);
--secondary-foreground: oklch(0.128 0.022 172.953);
--accent: oklch(0.637 0.174 260.53);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.631 0.191 40.119);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.828 0.125 209.85);
--chart-1: oklch(0.828 0.125 209.85);
--chart-2: oklch(0.864 0.164 163.938);
--chart-3: oklch(0.637 0.174 260.53);
--chart-4: oklch(0.871 0.155 164.917);
--chart-5: oklch(0.834 0.128 210);
}