Build Hono UIs with composable primitives
silva-ui is a TypeScript component library for Hono JSX. It ships prebuilt CSS generated with Vanilla Extract, a token-driven styling API, and components that remain framework-neutral at render time.The package has a peer dependency on
hono@^4.13.13. Components and the stylesheet are imported from the package root and silva-ui/style.css respectively.What you get
- Zero runtime styles: CSS is generated at build time.
- Theme scopes: apply one of the included themes to a subtree with
Theme. - Sprinkles props: use typed spacing, colour, layout, sizing and state props on every primitive.
- Visual primitives: apply named gradients and lightweight animations without application CSS.
- Hono-first JSX: lean components designed for Hono, while keeping framework-specific types out of the public API.
Start building
Install the package and CSS.
Use tokens
Explore built-in themes and colours.
Browse components
Build forms, layouts and overlays.
See every export
Use the public API as a reference.
A small profile card
- Preview
- Code