Bus for shadcn/ui

Bus is a shadcn/ui theme built around a vivid light cyan primary color (#98eefb) with vivid light blue accents (#98bcfb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light cyan primary (#98eefb) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#f9fafbghostwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#fcfdfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#f9fafbghostwhite
Primary
#98eefbpaleturquoise
#98eefbpaleturquoise
Primary foreground
#03515edarkslategray
#03515edarkslategray
Secondary
#98fbd7aquamarine
#98fbd7aquamarine
Secondary foreground
#035e3cdarkslategray
#035e3cdarkslategray
Muted
#d3e9e1gainsboro
#162c24darkslategray
Muted foreground
#3b4a44darkslategray
#b5c4bfsilver
Accent
#98bcfblightskyblue
#98bcfblightskyblue
Accent foreground
#03245emidnightblue
#03245emidnightblue
Destructive
#b7470bsienna
#f26a21chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#98eefbpaleturquoise
#98eefbpaleturquoise

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.80:1AA
Secondary button6.41:1AA
Muted text7.32:1AAA
Accent7.71:1AAA
Destructive5.35:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.29:1AAA
Primary button6.80:1AA
Secondary button6.41:1AA
Muted text8.16:1AAA
Accent7.71:1AAA
Destructive6.87:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.915 0.026 171.743);
  --muted-foreground: oklch(0.393 0.021 170.952);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.899 0.085 208.123);
  --primary-foreground: oklch(0.401 0.069 212.002);
  --secondary: oklch(0.917 0.108 168.472);
  --secondary-foreground: oklch(0.424 0.094 160.493);
  --accent: oklch(0.793 0.099 261.101);
  --accent-foreground: oklch(0.281 0.109 260.482);
  --destructive: oklch(0.543 0.158 42.338);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.899 0.085 208.123);
  --chart-1: oklch(0.899 0.085 208.123);
  --chart-2: oklch(0.917 0.108 168.472);
  --chart-3: oklch(0.793 0.099 261.101);
  --chart-4: oklch(0.927 0.094 169.172);
  --chart-5: oklch(0.901 0.087 208.152);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.001 207.928);
  --muted: oklch(0.272 0.032 168.458);
  --muted-foreground: oklch(0.808 0.018 171.929);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.985 0.001 207.928);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 207.931);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.899 0.085 208.123);
  --primary-foreground: oklch(0.401 0.069 212.002);
  --secondary: oklch(0.917 0.108 168.472);
  --secondary-foreground: oklch(0.424 0.094 160.493);
  --accent: oklch(0.793 0.099 261.101);
  --accent-foreground: oklch(0.281 0.109 260.482);
  --destructive: oklch(0.683 0.185 44.107);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.899 0.085 208.123);
  --chart-1: oklch(0.899 0.085 208.123);
  --chart-2: oklch(0.917 0.108 168.472);
  --chart-3: oklch(0.793 0.099 261.101);
  --chart-4: oklch(0.927 0.094 169.172);
  --chart-5: oklch(0.901 0.087 208.152);
}