Fiberglass for shadcn/ui

Fiberglass is a shadcn/ui theme built around a light yellow primary color (#f0eed1) with neutral gray accents (#d4d4ce). The light mode uses a neutral background (#fcfcf7). Dark mode keeps the light yellow primary (#f0eed1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfcf7snow
#000000black
Foreground
#050401black
#fbfbf9snow
Card
#fbfbf4floralwhite
#030303black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fbfbf4floralwhite
#030303black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#f0eed1antiquewhite
#f0eed1antiquewhite
Primary foreground
#1f1e0ablack
#1f1e0ablack
Secondary
#ebebealinen
#171612black
Secondary foreground
#535350darkslategray
#b6b5a4darkgray
Muted
#ebebe5linen
#1a1a14black
Muted foreground
#464643darkslategray
#bcbbb9silver
Accent
#d4d4celightgrey
#27261cblack
Accent foreground
#3c3c34darkslategray
#c6c5aesilver
Destructive
#773108saddlebrown
#ee6211chocolate
Destructive foreground
#fad0b7peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0eed1antiquewhite
#f0eed1antiquewhite

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card20.17:1AAA
Primary button14.31:1AAA
Secondary button6.46:1AA
Muted text7.92:1AAA
Accent7.47:1AAA
Destructive6.62:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.31:1AAA
Primary button14.31:1AAA
Secondary button8.71:1AAA
Muted text9.10:1AAA
Accent8.68:1AAA
Destructive6.40:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.006 104.08);
  --foreground: oklch(0.107 0.019 107.396);
  --muted: oklch(0.939 0.009 104.13);
  --muted-foreground: oklch(0.394 0.004 104.159);
  --popover: oklch(0.986 0.009 104.134);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.009 104.134);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.943 0.038 104.642);
  --primary-foreground: oklch(0.229 0.033 106.035);
  --secondary: oklch(0.94 0.001 103.99);
  --secondary-foreground: oklch(0.442 0.005 104.164);
  --accent: oklch(0.868 0.008 104.135);
  --accent-foreground: oklch(0.353 0.013 104.564);
  --destructive: oklch(0.405 0.11 44.982);
  --destructive-foreground: oklch(0.887 0.058 51.75);
  --ring: oklch(0.943 0.038 104.642);
  --chart-1: oklch(0.943 0.038 104.642);
  --chart-2: oklch(0.94 0.001 103.99);
  --chart-3: oklch(0.868 0.008 104.135);
  --chart-4: oklch(0.962 0.001 103.983);
  --chart-5: oklch(0.945 0.04 104.677);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.002 104.009);
  --muted: oklch(0.216 0.012 104.898);
  --muted-foreground: oklch(0.793 0.004 104.05);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.993 0.001 103.99);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 103.99);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.943 0.038 104.642);
  --primary-foreground: oklch(0.229 0.033 106.035);
  --secondary: oklch(0.201 0.008 104.651);
  --secondary-foreground: oklch(0.771 0.024 104.485);
  --accent: oklch(0.267 0.019 105.108);
  --accent-foreground: oklch(0.817 0.03 104.588);
  --destructive: oklch(0.666 0.19 43.462);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.943 0.038 104.642);
  --chart-1: oklch(0.943 0.038 104.642);
  --chart-2: oklch(0.201 0.008 104.651);
  --chart-3: oklch(0.267 0.019 105.108);
  --chart-4: oklch(0.237 0.011 104.726);
  --chart-5: oklch(0.945 0.04 104.677);
}