Fabulous for shadcn/ui

Fabulous is a shadcn/ui theme built around a light blue primary color (#e8edf8) with neutral gray accents (#d0d1d2). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the light blue primary (#e8edf8) on a blue-tinted background (#05070a).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#05070ablack
Foreground
#010205black
#ffffffwhite
Card
#f4f6fbghostwhite
#07090eblack
Card foreground
#000000black
#ffffffwhite
Popover
#f4f6fbghostwhite
#07090eblack
Popover foreground
#000000black
#ffffffwhite
Primary
#e8edf8lavender
#e8edf8lavender
Primary foreground
#2a4884darkslateblue
#2a4884darkslateblue
Secondary
#d0d1d2lightgrey
#1c1f26black
Secondary foreground
#36383adarkslategray
#afb6c5silver
Muted
#eceef4whitesmoke
#0b0e13black
Muted foreground
#464a53darkslategray
#acb0b9darkgray
Accent
#d0d1d2lightgrey
#1c1f26black
Accent foreground
#36383adarkslategray
#afb6c5silver
Destructive
#6e2608maroon
#f16f37tomato
Destructive foreground
#f9c5aepeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e8edf8lavender
#e8edf8lavender

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.43:1AAA
Primary button7.58:1AAA
Secondary button7.67:1AAA
Muted text7.67:1AAA
Accent7.67:1AAA
Destructive7.01:1AAA
Dark mode
Text on background20.18:1AAA
Text on card19.92:1AAA
Primary button7.58:1AAA
Secondary button8.07:1AAA
Muted text8.88:1AAA
Accent8.07:1AAA
Destructive7.05:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 264.537);
  --foreground: oklch(0.082 0.016 252.518);
  --muted: oklch(0.95 0.007 264.526);
  --muted-foreground: oklch(0.409 0.016 264.376);
  --popover: oklch(0.973 0.007 264.529);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.007 264.529);
  --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.945 0.015 264.494);
  --primary-foreground: oklch(0.41 0.107 262.627);
  --secondary: oklch(0.859 0.003 264.541);
  --secondary-foreground: oklch(0.339 0.004 264.509);
  --accent: oklch(0.859 0.003 264.541);
  --accent-foreground: oklch(0.339 0.004 264.509);
  --destructive: oklch(0.373 0.109 40.235);
  --destructive-foreground: oklch(0.863 0.068 44.35);
  --ring: oklch(0.945 0.015 264.494);
  --chart-1: oklch(0.945 0.015 264.494);
  --chart-2: oklch(0.859 0.003 264.541);
  --chart-3: oklch(0.859 0.003 264.541);
  --chart-4: oklch(0.883 0.002 264.543);
  --chart-5: oklch(0.945 0.016 264.49);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.01 259.891);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.164 0.012 264.182);
  --muted-foreground: oklch(0.757 0.014 264.484);
  --popover: oklch(0.139 0.012 261.386);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.012 261.386);
  --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.945 0.015 264.494);
  --primary-foreground: oklch(0.41 0.107 262.627);
  --secondary: oklch(0.24 0.015 264.251);
  --secondary-foreground: oklch(0.777 0.022 264.436);
  --accent: oklch(0.24 0.015 264.251);
  --accent-foreground: oklch(0.777 0.022 264.436);
  --destructive: oklch(0.689 0.175 41.904);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.945 0.015 264.494);
  --chart-1: oklch(0.945 0.015 264.494);
  --chart-2: oklch(0.24 0.015 264.251);
  --chart-3: oklch(0.24 0.015 264.251);
  --chart-4: oklch(0.271 0.017 264.226);
  --chart-5: oklch(0.945 0.016 264.49);
}