Fabulous for shadcn/ui

Fabulous is a shadcn/ui theme built around a light blue primary color (#b5c7f2) with muted light blue accents (#cad0dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#b5c7f2) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020712black
#f9fafbghostwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#02050eblack
#fcfcfdwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#02050eblack
#fcfcfdwhite
Primary
#b5c7f2lightsteelblue
#b5c7f2lightsteelblue
Primary foreground
#122964midnightblue
#122964midnightblue
Secondary
#dfe1e7gainsboro
#272b35darkslategray
Secondary foreground
#3f4555darkslategray
#bec3d0silver
Muted
#d7dadfgainsboro
#202228darkslategray
Muted foreground
#494b50darkslategray
#afb1b6darkgray
Accent
#cad0ddlightgrey
#353f5adarkslategray
Accent foreground
#2e3548darkslategray
#d8dde8gainsboro
Destructive
#632003maroon
#f96c2ftomato
Destructive foreground
#fcb99cburlywood
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b5c7f2lightsteelblue
#b5c7f2lightsteelblue

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card19.93:1AAA
Primary button8.10:1AAA
Secondary button7.32:1AAA
Muted text6.21:1AA
Accent7.87:1AAA
Destructive7.23:1AAA
Dark mode
Text on background20.09:1AAA
Text on card20.16:1AAA
Primary button8.10:1AAA
Secondary button8.05:1AAA
Muted text7.41:1AAA
Accent7.64:1AAA
Destructive7.18:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.127 0.03 258.884);
  --muted: oklch(0.887 0.008 268.726);
  --muted-foreground: oklch(0.413 0.008 268.654);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.115 0.025 257.305);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.115 0.025 257.305);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.83 0.064 268.08);
  --primary-foreground: oklch(0.302 0.108 264.45);
  --secondary: oklch(0.91 0.009 268.724);
  --secondary-foreground: oklch(0.392 0.028 268.136);
  --accent: oklch(0.856 0.02 268.615);
  --accent-foreground: oklch(0.331 0.034 267.77);
  --destructive: oklch(0.344 0.104 40.181);
  --destructive-foreground: oklch(0.84 0.088 44.184);
  --ring: oklch(0.83 0.064 268.08);
  --chart-1: oklch(0.83 0.064 268.08);
  --chart-2: oklch(0.91 0.009 268.724);
  --chart-3: oklch(0.856 0.02 268.615);
  --chart-4: oklch(0.935 0.006 268.744);
  --chart-5: oklch(0.828 0.067 268.041);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.001 268.781);
  --muted: oklch(0.252 0.011 268.425);
  --muted-foreground: oklch(0.761 0.007 268.73);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.992 0.001 268.786);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 268.786);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.83 0.064 268.08);
  --primary-foreground: oklch(0.302 0.108 264.45);
  --secondary: oklch(0.288 0.02 268.16);
  --secondary-foreground: oklch(0.817 0.019 268.615);
  --accent: oklch(0.372 0.048 267.455);
  --accent-foreground: oklch(0.897 0.016 268.656);
  --destructive: oklch(0.695 0.187 41.334);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.83 0.064 268.08);
  --chart-1: oklch(0.83 0.064 268.08);
  --chart-2: oklch(0.288 0.02 268.16);
  --chart-3: oklch(0.372 0.048 267.455);
  --chart-4: oklch(0.317 0.023 268.132);
  --chart-5: oklch(0.828 0.067 268.041);
}