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
| Token | Default | Used for |
|---|---|---|
colorPrimary | #2f6fed | Primary buttons, links, focus rings, selected items |
colorPrimaryForeground | #ffffff | Text on primary buttons |
colorText | #1f2328 | Body text |
colorMuted | #656d76 | Secondary text and hints |
colorBackground | #ffffff | Surfaces |
colorBorder | #d0d7de | Borders and dividers |
colorDanger | #cf222e | Errors and destructive actions |
fontFamily | System font stack | All text |
radius | 8px | Corners 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.