A Svelte-first, human-first, agent-first UI library for building beautiful sites and apps with components you can make your own.
The documentation includes component
playgrounds and the Todo, House Shop and RunnerAI demos.
Explore New Paris, VS Code, Glassy and Crystal Code
through individual bref-ui-themes entry points.
bref-ui-demo.mp4
Three apps side by side. Import components, customize a theme and copy the source into your codebase. Then explore New Paris shopping, the ADE workbench with VS Code styling and a Glassy workspace—all in one minute.
The Svelte production app and storyboard include the repeatable video renderer.
In a Svelte 5.56.1+ or SvelteKit project:
npm install bref-ui
Render Theme once in your app root, then use components anywhere:
<script lang="ts"> import { Button, Theme } from 'bref-ui'; </script> <Theme /> <Button label="Save" />
Paint native HTML with the same recipe as Surface and Button:
<script> import { surface } from 'bref-ui'; </script> <button class={surface({ variant: 'filled', color: 'primary', shadow: 'small' })}>Save</button>
Or own the source: the optional CLI (runs on Node.js) copies components into your project.
npx bref-ui init npx bref-ui add button
init adds a #bref import to package.json, pointing at src/lib/ui by default:
"imports": { "#bref": "./src/lib/ui/index.js", "#bref/*": "./src/lib/ui/*" }
add previews every file and asks before overwriting anything. Import your copies from
#bref and keep bref-ui installed for its shared types:
<script lang="ts"> import { Button, Theme } from '#bref'; </script>
Components: button, checkbox, combobox, dialog, icon, pill,
pill-choice-group, pill-group, popover, progress, select, spinner,
surface, switch, tabs, text-area, text-input, theme and tree-view.
- Svelte-first. Strictly Svelte: no runtime dependencies, scoped CSS, native HTML, events, bindings and snippets. No class names to memorize.
- Human-first. Simple to use, simpler to customize: copy the source and grow it as your own.
- Agent-first. Typed APIs and an
/llms.txtreference help agents discover, compose and verify interfaces.
Explore the component gallery for examples, props and theme customization. Get started with Use the package, Own the code and Use a prebuilt theme.
Install workspace dependencies with Bun, then run commands from the repository root. Bun is used for workspace development; the published CLI runs through Node.js and npm.
bun install bun run dev # docs from workspace source exports bun run check # all package checks bun run lint bun run --workspaces --if-present test # CLI contract tests bun run build # both libraries and the static docs site bun run preview # preview docs/build
core: thebref-uipackage, with components, the copy CLI.themes: New Paris, VS Code, Glassy and Crystal Code, each with its own package entry point.docs: the static component documentation, playgrounds, demos and palette previews.video-demo: the Svelte showcase app, storyboard and repeatable video renderer.
The root lint/format configuration covers every package. The docs site imports public package source exports directly; no package prebuild is required for development or checks.
On main, each package publishes directly when its manifest changes; npm rejects
already-published versions. Releases use tags such as [email protected]. Docs deploy on
every push to main and support manual dispatch. Publishing requires npm trusted-publisher
configuration for publish-core.yml and publish-themes.yml; see npm setup.
flowchart LR
foundation["✅ Component foundation<br/>19 components · npm + copy CLI"]
themes["✅ Theme tooling<br/>static light/dark palettes · contrast reports"]
agents["✅ Agent tooling<br/>/llms.txt today · CLI/SDK (WIP: MCP)"]
sites["🗓️ Marketing sites<br/>sections, recipes, generated SvelteKit sites"]
genui["🗓️ Generative UI<br/>json-render experiment"]
foundation --> themes --> agents --> sites --> genui
✅ shipped · 🚧 in progress · 🗓️ planned. Generation and agent integrations will stay optional. Accessibility depends on your final composition and theme; component checks cannot guarantee every customization is accessible.
For questions and examples, join Discord and use the
bref-ui channel. Report bugs and suggest features through
GitHub Issues.
See CONTRIBUTING.md for contribution guidelines.
MIT.