Fibrosis for shadcn/ui

Fibrosis is a shadcn/ui theme built around a cyan primary color (#4daad5) with orange accents (#d5784d). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the cyan primary (#4daad5) on a cyan-tinted background (#04090c).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#04090cblack
Foreground
#040c10black
#ffffffwhite
Card
#f3f9fcaliceblue
#050c10black
Card foreground
#03090cblack
#ffffffwhite
Popover
#f7fbfdghostwhite
#04090cblack
Popover foreground
#040c10black
#ffffffwhite
Primary
#4daad5cornflowerblue
#4daad5cornflowerblue
Primary foreground
#000000black
#000000black
Secondary
#d5784dperu
#d5784dperu
Secondary foreground
#000000black
#000000black
Muted
#eae4e1gainsboro
#1e1815black
Muted foreground
#746158dimgray
#a7948brosybrown
Accent
#d5784dperu
#d5784dperu
Accent foreground
#000000black
#000000black
Destructive
#a53c12saddlebrown
#e8612cchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4daad5cornflowerblue
#4daad5cornflowerblue

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.92:1AAA
Text on card18.84:1AAA
Primary button8.05:1AAA
Secondary button6.65:1AA
Muted text4.64:1AA
Accent6.65:1AA
Destructive6.44:1AA
Dark mode
Text on background20.00:1AAA
Text on card19.68:1AAA
Primary button8.05:1AAA
Secondary button6.65:1AA
Muted text6.06:1AA
Accent6.65:1AA
Destructive6.16:1AA

CSS variables

Paste this into your globals.css to use Fibrosis in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.005 226.916);
  --foreground: oklch(0.149 0.016 225.283);
  --muted: oklch(0.923 0.007 46.771);
  --muted-foreground: oklch(0.508 0.029 46.298);
  --popover: oklch(0.985 0.005 226.916);
  --popover-foreground: oklch(0.149 0.016 225.283);
  --card: oklch(0.978 0.007 226.947);
  --card-foreground: oklch(0.134 0.014 221.804);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.7 0.108 231.189);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.668 0.13 44.759);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.668 0.13 44.759);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.499 0.148 39.196);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.7 0.108 231.189);
  --chart-1: oklch(0.7 0.108 231.189);
  --chart-2: oklch(0.668 0.13 44.759);
  --chart-3: oklch(0.668 0.13 44.759);
  --chart-4: oklch(0.69 0.12 45.106);
  --chart-5: oklch(0.703 0.112 231.513);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.013 221.891);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.215 0.01 46.379);
  --muted-foreground: oklch(0.68 0.027 46.453);
  --popover: oklch(0.134 0.013 221.891);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.149 0.015 225.346);
  --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.7 0.108 231.189);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.668 0.13 44.759);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.668 0.13 44.759);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.655 0.179 40.167);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.7 0.108 231.189);
  --chart-1: oklch(0.7 0.108 231.189);
  --chart-2: oklch(0.668 0.13 44.759);
  --chart-3: oklch(0.668 0.13 44.759);
  --chart-4: oklch(0.69 0.12 45.106);
  --chart-5: oklch(0.703 0.112 231.513);
}