FB for shadcn/ui

FB is a shadcn/ui theme built around an indigo primary color (#2533cb) with yellow accents (#cbbd25). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the indigo primary (#2533cb) on an indigo-tinted background (#06070e).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#06070eblack
Foreground
#060713black
#ffffffwhite
Card
#f3f4fcaliceblue
#080912black
Card foreground
#05060fblack
#ffffffwhite
Popover
#f3f4fcaliceblue
#080912black
Popover foreground
#05060fblack
#ffffffwhite
Primary
#2533cbmediumblue
#2533cbmediumblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cbbd25goldenrod
#cbbd25goldenrod
Secondary foreground
#1e1c06black
#1e1c06black
Muted
#f3f3ecwhitesmoke
#13120cblack
Muted foreground
#615f4cdimgray
#b3b19edarkgray
Accent
#cbbd25goldenrod
#000b81navy
Accent foreground
#1e1c06black
#ffffffwhite
Destructive
#b53c08firebrick
#e64c0aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e6e7ealavender
#242429darkslategray
Input
#e6e7ealavender
#242429darkslategray
Ring
#2533cbmediumblue
#2533cbmediumblue

Contrast

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

Light mode
Text on background18.85:1AAA
Text on card18.41:1AAA
Primary button8.71:1AAA
Secondary button8.83:1AAA
Muted text5.79:1AA
Accent8.83:1AAA
Destructive5.81:1AA
Dark mode
Text on background20.09:1AAA
Text on card19.87:1AAA
Primary button8.71:1AAA
Secondary button8.83:1AAA
Muted text8.64:1AAA
Accent15.36:1AAA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.007 282.096);
  --foreground: oklch(0.137 0.027 277.39);
  --muted: oklch(0.962 0.009 102.363);
  --muted-foreground: oklch(0.483 0.029 103.134);
  --popover: oklch(0.968 0.01 282.035);
  --popover-foreground: oklch(0.126 0.023 277.296);
  --card: oklch(0.968 0.01 282.035);
  --card-foreground: oklch(0.126 0.023 277.296);
  --border: oklch(0.928 0.004 282.141);
  --input: oklch(0.928 0.004 282.141);
  --primary: oklch(0.434 0.227 268.774);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.785 0.157 103.808);
  --secondary-foreground: oklch(0.223 0.038 104.293);
  --accent: oklch(0.785 0.157 103.808);
  --accent-foreground: oklch(0.223 0.038 104.293);
  --destructive: oklch(0.525 0.166 38.554);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.434 0.227 268.774);
  --chart-1: oklch(0.434 0.227 268.774);
  --chart-2: oklch(0.785 0.157 103.808);
  --chart-3: oklch(0.785 0.157 103.808);
  --chart-4: oklch(0.822 0.165 103.797);
  --chart-5: oklch(0.432 0.235 268.112);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.017 278.987);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.182 0.013 103.285);
  --muted-foreground: oklch(0.756 0.027 102.766);
  --popover: oklch(0.142 0.02 279.17);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.142 0.02 279.17);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.262 0.009 281.614);
  --input: oklch(0.262 0.009 281.614);
  --primary: oklch(0.434 0.227 268.774);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.785 0.157 103.808);
  --secondary-foreground: oklch(0.223 0.038 104.293);
  --accent: oklch(0.283 0.183 264.204);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.626 0.201 38.132);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.434 0.227 268.774);
  --chart-1: oklch(0.434 0.227 268.774);
  --chart-2: oklch(0.785 0.157 103.808);
  --chart-3: oklch(0.283 0.183 264.204);
  --chart-4: oklch(0.822 0.165 103.797);
  --chart-5: oklch(0.432 0.235 268.112);
}