Fibroblast for shadcn/ui

Fibroblast is a shadcn/ui theme built around a vivid light indigo primary color (#ece8fd) with vivid light green accents (#e8fdec). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light indigo primary (#ece8fd) on an indigo-tinted background (#05030c).

Color palette

TokenLightDark
Background
#ffffffwhite
#05030cblack
Foreground
#04020dblack
#ffffffwhite
Card
#ffffffwhite
#05030cblack
Card foreground
#04020dblack
#ffffffwhite
Popover
#ffffffwhite
#05030cblack
Popover foreground
#04020dblack
#ffffffwhite
Primary
#ece8fdlavender
#ece8fdlavender
Primary foreground
#2c0ea4indigo
#2c0ea4indigo
Secondary
#fdece8linen
#fdece8linen
Secondary foreground
#a42c0efirebrick
#a42c0efirebrick
Muted
#e3d7d3gainsboro
#2c1f1cblack
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#e8fdechoneydew
#e8fdechoneydew
Accent foreground
#064613darkgreen
#064613darkgreen
Destructive
#c64110firebrick
#ec4d13orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ece8fdlavender
#ece8fdlavender

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button10.24:1AAA
Secondary button6.21:1AA
Muted text5.99:1AA
Accent10.38:1AAA
Destructive5.04:1AA
Dark mode
Text on background20.47:1AAA
Text on card20.47:1AAA
Primary button10.24:1AAA
Secondary button6.21:1AA
Muted text7.60:1AAA
Accent10.38:1AAA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.106 0.031 293.85);
  --muted: oklch(0.887 0.015 34.298);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.106 0.031 293.85);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.106 0.031 293.85);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.939 0.029 295.007);
  --primary-foreground: oklch(0.354 0.209 276.142);
  --secondary: oklch(0.955 0.02 34.297);
  --secondary-foreground: oklch(0.479 0.161 34.238);
  --accent: oklch(0.974 0.032 151.506);
  --accent-foreground: oklch(0.346 0.102 145.561);
  --destructive: oklch(0.56 0.178 37.366);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.939 0.029 295.007);
  --chart-1: oklch(0.939 0.029 295.007);
  --chart-2: oklch(0.955 0.02 34.297);
  --chart-3: oklch(0.974 0.032 151.506);
  --chart-4: oklch(0.982 0.008 34.305);
  --chart-5: oklch(0.938 0.03 294.986);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.025 294.336);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.253 0.021 34.439);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.111 0.025 294.336);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.111 0.025 294.336);
  --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.939 0.029 295.007);
  --primary-foreground: oklch(0.354 0.209 276.142);
  --secondary: oklch(0.955 0.02 34.297);
  --secondary-foreground: oklch(0.479 0.161 34.238);
  --accent: oklch(0.974 0.032 151.506);
  --accent-foreground: oklch(0.346 0.102 145.561);
  --destructive: oklch(0.637 0.204 37.163);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.939 0.029 295.007);
  --chart-1: oklch(0.939 0.029 295.007);
  --chart-2: oklch(0.955 0.02 34.297);
  --chart-3: oklch(0.974 0.032 151.506);
  --chart-4: oklch(0.982 0.008 34.305);
  --chart-5: oklch(0.938 0.03 294.986);
}