Skip to content
Browse documentation
whisk/ui

Integrate whisk/ui

Install whisk/ui, provide its theme, and connect it to the application host without hiding the runtime boundary.

Install

Install the renderer adapter for your application and the shared stylesheet. This example uses Octane. Use @smoothie-framework/whisk-react instead when your host is React.

bash
bun add @smoothie-framework/whisk-octane @smoothie-framework/whisk-styles

Provide a theme

Wrap the application once with ThemeProvider so Whisk/UI components receive the same color mode, typography, and semantic tokens.

tsx
<ThemeProvider colorMode={colorMode}>
  <App />
</ThemeProvider>

Connect a host

Keep host setup at the application boundary. Component pages should remain focused on the Whisk/UI component contract and its rendered behavior.

Use CSS intentionally

Prefer component props and theme tokens. Use CSS only when the component has no suitable prop, such as a host-specific positioning rule.