Fibrosis is a shadcn/ui theme built around a muted light green primary color (#e1e4dd) with muted light green accents (#dee4dd). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted light green primary (#e1e4dd) on a green-tinted background (#080b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #080b04black |
| Foreground | #030401black | #ffffffwhite |
| Card | #fdfefbwhite | #080b04black |
| Card foreground | #030401black | #ffffffwhite |
| Popover | #fdfefbwhite | #080b04black |
| Popover foreground | #030401black | #ffffffwhite |
| Primary | #e1e4ddgainsboro | #e1e4ddgainsboro |
| Primary foreground | #494f40darkslategray | #494f40darkslategray |
| Secondary | #e4e3ddgainsboro | #e4e3ddgainsboro |
| Secondary foreground | #4f4e40darkolivegreen | #4f4e40darkolivegreen |
| Muted | #f5f4eblinen | #14140ablack |
| Muted foreground | #51504ddarkslategray | #b2b1aedarkgray |
| Accent | #dee4ddgainsboro | #dee4ddgainsboro |
| Accent foreground | #414f40darkslategray | #414f40darkslategray |
| Destructive | #5c210amaroon | #eb6e3dtomato |
| Destructive foreground | #f5baa3lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e1e4ddgainsboro | #e1e4ddgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 6.59:1 | AA |
| Secondary button | 6.54:1 | AA |
| Muted text | 7.29:1 | AAA |
| Accent | 6.70:1 | AA |
| Destructive | 7.39:1 | AAA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 6.59:1 | AA |
| Secondary button | 6.54:1 | AA |
| Muted text | 8.65:1 | AAA |
| Accent | 6.70:1 | AA |
| Destructive | 6.83:1 | AA |
Paste this into your globals.css to use Fibrosis in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 125.107);
--foreground: oklch(0.101 0.015 124.278);
--muted: oklch(0.965 0.012 102.418);
--muted-foreground: oklch(0.432 0.005 102.389);
--popover: oklch(0.995 0.004 125.107);
--popover-foreground: oklch(0.101 0.015 124.278);
--card: oklch(0.995 0.004 125.107);
--card-foreground: oklch(0.101 0.015 124.278);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.914 0.009 125.189);
--primary-foreground: oklch(0.418 0.027 125.954);
--secondary: oklch(0.915 0.008 102.36);
--secondary-foreground: oklch(0.421 0.023 103.05);
--accent: oklch(0.912 0.011 143.077);
--accent-foreground: oklch(0.411 0.032 142.769);
--destructive: oklch(0.334 0.093 39.967);
--destructive-foreground: oklch(0.837 0.076 42.556);
--ring: oklch(0.914 0.009 125.189);
--chart-1: oklch(0.914 0.009 125.189);
--chart-2: oklch(0.915 0.008 102.36);
--chart-3: oklch(0.912 0.011 143.077);
--chart-4: oklch(0.937 0.006 102.32);
--chart-5: oklch(0.916 0.012 125.228);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.017 124.5);
--foreground: oklch(1 0 180);
--muted: oklch(0.187 0.018 103.56);
--muted-foreground: oklch(0.761 0.004 102.3);
--popover: oklch(0.143 0.017 124.5);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.017 124.5);
--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.914 0.009 125.189);
--primary-foreground: oklch(0.418 0.027 125.954);
--secondary: oklch(0.915 0.008 102.36);
--secondary-foreground: oklch(0.421 0.023 103.05);
--accent: oklch(0.912 0.011 143.077);
--accent-foreground: oklch(0.411 0.032 142.769);
--destructive: oklch(0.68 0.167 41.013);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.914 0.009 125.189);
--chart-1: oklch(0.914 0.009 125.189);
--chart-2: oklch(0.915 0.008 102.36);
--chart-3: oklch(0.912 0.011 143.077);
--chart-4: oklch(0.937 0.006 102.32);
--chart-5: oklch(0.916 0.012 125.228);
}