Static sites · Server-side rendering · Islands · SPAs
One component model, from static pages to full-stack apps
Write components in TSX with their styles in the same file. Each route picks how it renders, with no rewrite.
import { signal } from "lumiose";
export default function Counter() {
const count = signal(0);
return (
<button onClick={() => count.update((n) => n + 1)}>
Clicked {count()} times
</button>
);
}
<style>
button {
padding: 8px 16px;
border: 1px solid;
background: none;
}
</style>try it
- 01
Write
TSX and its styles in one
.stsxfile, typed by stock TypeScript. - 02
Render
Each route picks static, server or SPA. The component doesn't change.
- 03
Hydrate
Add
client:idlewhere you use a component. It becomes an island. - 04
Measure
Compared with the stacks you know, from committed benchmark runs.
@lumiose/ui
Components without opinions.
Accessible behaviour on native HTML, in plain black and white. Style them your way.
Browse components- First panelSecond panel
Enlighten your next project.
npm create lumiose@latest my-app