Skip to main content

Installation

Install the package alongside Hono, then import its stylesheet once at your application entry point.

Import the CSS

The package exposes this stylesheet as the silva-ui/style.css subpath. Import it once in the module shared by your routes. It contains the component styles and built-in theme variables, so this one-line setup does not need a visual preview.

Start a new app

Use create-silva-ui to start a static SPA, a full-stack Hono SSR app, or an SSR-only Hono app. The prompt asks you to choose the starter and, for SSR, the target runtime.
See Create a Silva UI app for starter choices, supported runtimes, and scripted generation. Existing Hono JSX applications can install silva-ui directly.

Create a route

Theme renders a div by default. Set as when a different HTML element is needed.

Package entry points

Next: create a starter or apply a theme.