Skip to Content
Wirebird Docs

Theming

Match Wirebird to your app with a handful of tokens.

Wirebird components render inside a Shadow DOM boundary. Your global CSS can't reach them and theirs never leaks into your app, so you style them with tokens on the provider instead of CSS:

<WirebirdProvider
  fetchToken={fetchToken}
  theme={{
    colorPrimary: '#0a7cff',
    fontFamily: 'Inter, sans-serif',
    radius: '6px',
    density: 'compact',
  }}
>

Tokens

TokenDefaultUsed for
colorPrimary#2f6fedPrimary buttons, links, focus rings, selected items
colorPrimaryForeground#ffffffText on primary buttons
colorText#1f2328Body text
colorMuted#656d76Secondary text and hints
colorBackground#ffffffSurfaces
colorBorder#d0d7deBorders and dividers
colorDanger#cf222eErrors and destructive actions
fontFamilySystem font stackAll text
radius8pxCorners of cards, inputs and buttons
density'comfortable''compact' tightens spacing everywhere

Everything else (hover states, tints, subtle backgrounds) is derived from these. Defaults are exported as DEFAULT_THEME.

Sizes are fixed in pixels, so a root font-size on your page doesn't shrink the embed.

On this page