bridge23 theme for shadcn/ui

bridge23 theme is a shadcn/ui theme built around a near-black primary color (#1b1b1d) with muted light blue accents (#c8cad5). The light mode uses a neutral background (#fbfcfe). Dark mode switches to a vivid blue primary (#2d62ec) on a blue-tinted background (#01081b).

Color palette

TokenLightDark
Background
#fbfcfewhite
#01081bblack
Foreground
#04050cblack
#ffffffwhite
Card
#f7f8fcghostwhite
#01081bblack
Card foreground
#020308black
#fcfcfdwhite
Popover
#f7f8fcghostwhite
#01081bblack
Popover foreground
#020308black
#fcfcfdwhite
Primary
#1b1b1dblack
#2d62ecroyalblue
Primary foreground
#b2b3b8darkgray
#ffffffwhite
Secondary
#c8cad5lightgrey
#262c34darkslategray
Secondary foreground
#2f303ddarkslategray
#ffffffwhite
Muted
#ececeewhitesmoke
#262c34darkslategray
Muted foreground
#5b5d67dimgray
#a4a4a7darkgray
Accent
#c8cad5lightgrey
#2d62ecroyalblue
Accent foreground
#2f303ddarkslategray
#ffffffwhite
Destructive
#c02007firebrick
#e72608orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e9e9eclavender
#262c34darkslategray
Input
#e9e9eclavender
#262c34darkslategray
Ring
#1b1b1dblack
#262c34darkslategray

Contrast

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

Light mode
Text on background19.76:1AAA
Text on card19.44:1AAA
Primary button8.20:1AAA
Secondary button7.98:1AAA
Muted text5.56:1AA
Accent7.98:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.96:1AAA
Text on card19.47:1AAA
Primary button5.15:1AA
Secondary button14.07:1AAA
Muted text5.65:1AA
Accent5.15:1AA
Destructive4.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 279.297);
  --foreground: oklch(0.115 0.019 273.548);
  --muted: oklch(0.944 0.003 279.301);
  --muted-foreground: oklch(0.479 0.016 278.809);
  --popover: oklch(0.98 0.006 279.252);
  --popover-foreground: oklch(0.101 0.017 273.494);
  --card: oklch(0.98 0.006 279.252);
  --card-foreground: oklch(0.101 0.017 273.494);
  --border: oklch(0.935 0.004 279.272);
  --input: oklch(0.935 0.004 279.272);
  --primary: oklch(0.224 0.004 279.082);
  --primary-foreground: oklch(0.767 0.007 279.197);
  --secondary: oklch(0.841 0.015 279.063);
  --secondary-foreground: oklch(0.314 0.022 278.203);
  --accent: oklch(0.841 0.015 279.063);
  --accent-foreground: oklch(0.314 0.022 278.203);
  --destructive: oklch(0.52 0.196 31.248);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.224 0.004 279.082);
  --chart-1: oklch(0.224 0.004 279.082);
  --chart-2: oklch(0.841 0.015 279.063);
  --chart-3: oklch(0.841 0.015 279.063);
  --chart-4: oklch(0.866 0.013 279.117);
  --chart-5: oklch(0.221 0.007 278.872);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.045 259.015);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.291 0.017 255.663);
  --muted-foreground: oklch(0.72 0.004 279.264);
  --popover: oklch(0.139 0.045 259.015);
  --popover-foreground: oklch(0.992 0.001 279.328);
  --card: oklch(0.139 0.045 259.015);
  --card-foreground: oklch(0.992 0.001 279.328);
  --border: oklch(0.291 0.017 255.663);
  --input: oklch(0.291 0.017 255.663);
  --primary: oklch(0.547 0.216 264.315);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.291 0.017 255.663);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.547 0.216 264.315);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.596 0.227 31.131);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.291 0.017 255.663);
  --chart-1: oklch(0.547 0.216 264.315);
  --chart-2: oklch(0.291 0.017 255.663);
  --chart-3: oklch(0.547 0.216 264.315);
  --chart-4: oklch(0.32 0.019 255.669);
  --chart-5: oklch(0.546 0.223 264.181);
}