Blazor UI components you own: headless primitives + styled components delivered as source by a dotnet tool. Tailwind CSS v4, 8 skins, 16 palettes, RTL and WCAG AA out of the box.
A Blazor UI component framework built on headless primitives and Tailwind CSS v4. Components are distributed as source - the CLI copies them into your project, rewrites the namespace, and from then on the code is yours to edit.
Documentation, component gallery and the theme composer live at blaiz.io.
.razor source in your repository, under
your namespace. Read it, change it, delete it. There is no black box to work around.Blaizio.Base ships the headless primitives: ARIA, keyboard
interaction, focus management, positioning, a data-state contract. Styling never lives there,
so a fix to behavior reaches you as a version bump and never overwrites your edits.@your-namespace/component.| Project | Ships as | What it is |
|---|---|---|
Blaizio.Base | NuGet | Headless, unstyled primitives: behavior, ARIA, keyboard interaction and a data-state attribute contract. Zero CSS. JS interop served from _content/Blaizio.Base/dist/. |
Blaizio.Icons | NuGet | BzIcon, one tree-shakeable Blazor SVG component, and the typed Icon value every set is made of. |
Blaizio.Icons.Tabler, .Lucide, .Phosphor, .Remix, .HugeIcons | NuGet | Five icon sets as generated Icon members (Tabler.Outline.*, Lucide.Outline.*, Phosphor.Regular.* and five more weights, Remix.Line.*, HugeIcons.StrokeRounded.*). Mix freely; a trimmed publish keeps only the icons you reference. Tabler is what the styled components use, so the CLI installs it; the rest are one dotnet add package away. Browse all of them at blaiz.io/docs/components/icons. |
Blaizio.Syntax | NuGet | Syntax highlighting in C# for 19 languages, tokenized per line, with no script: it looks the same in static rendering, Server and WebAssembly. The Code Block highlights with it, so the CLI installs it with code-block. |
Blaizio.Syntax.Languages | NuGet | 31 more languages for Blaizio.Syntax (Python, Go, Rust, Kotlin, ...), added where the app calls AddBlaizio. A trimmed publish keeps only the ones you add. |
Blaizio.Ui | Source via registry | 73 styled components over the primitives. Copied into your app by the CLI - never referenced as a package. |
Blaizio.Cli | dotnet tool (blaizio) | new, add, remove, apply, registry queries, Tailwind pipeline wiring, uninstall. |
Blaizio.Docs | - | Documentation site. Also hosts the component registry (/r) and the /themes theme configurator. |
All packages release in lockstep under one version; Blaizio.Cli.Core and Blaizio.Cli.Contracts are the tool's own dependencies, not something an app references.
| Package | Version | Downloads |
|---|---|---|
Blaizio.Base | ||
Blaizio.Icons | ||
Blaizio.Icons.Tabler | ||
[Blaizio.Icons.Lucide |
Implementing missing components
https://github.com/blaizio/blaizio/issues/50
Labels: enhancement
Custom Component Prefix
https://github.com/blaizio/blaizio/issues/47
Labels: enhancement
cli: write the MIT notice next to the copied components
https://github.com/blaizio/blaizio/issues/31
Labels: enhancement, good first issue, area:cli
a11y: hover-opened tooltip cannot be dismissed with Escape unless the trigger has focus (WCAG 1.4.13)
https://github.com/blaizio/blaizio/issues/23
Labels: accessibility, bug, area:base
a11y: focus ring is the same colour as the primary fill in most presets (WCAG 1.4.11, 2.4.13)
https://github.com/blaizio/blaizio/issues/22
Labels: accessibility, bug, area:ui
update: warn when the project still references Icons.Outline.* / Icons.Filled.* after the icon split
https://github.com/blaizio/blaizio/issues/17
Labels: enhancement, good first issue, area:cli
docs: document the 0.1.x to 0.2.0 icon namespace migration on the CLI and Icons pages
https://github.com/blaizio/blaizio/issues/16
Labels: documentation, good first issue, area:docs
Thanks for considering a contribution. This page covers the local setup, the layout, and the conventions pull requests are expected to follow.
global.json pins the exact patch and rolls forward within it)git clone https://github.com/blaizio/blaizio
cd blaizio
(cd src/Blaizio.Base/lib && pnpm install && pnpm build)
(cd docs/Blaizio.Docs/lib && pnpm install)
dotnet build Blaizio.slnx
dotnet test
The build is self-contained: the docs project packs Blaizio.Base/Blaizio.Icons into
artifacts/local-nuget, builds the component registry into its wwwroot/r, and copies the styled
components through the CLI - the same pipeline consumers use.
| Path | What |
|---|---|
src/Blaizio.Base | Headless primitives (NuGet): behavior, ARIA, data-* contract, JS assets |
src/Blaizio.Icons | Icon components (NuGet) |
src/Blaizio.Ui | Styled components + styles/presets - the registry's source of truth |
src/Blaizio.Cli / src/Blaizio.Cli.Core | The blaizio dotnet tool and its engine |
src/Blaizio.Cli.Contracts | Dependency-free contracts shared by the CLI and the docs site (preset codec, option tables, registry wire model) |
docs/Blaizio.Docs | Docs site, registry host, /themes configurator |
docs/*.md | Engineering notes and historical plans; see docs/README.md before treating one as current |
tests/ | Base, Core and CLI suites, the Base allocation benchmarks, and the docs Playwright E2E suite (opt-in via BLAIZIO_E2E=1) |
Blaizio.Base; styling in Blaizio.Ui. Keep the split strict - Base ships
no CSS, Ui ships no behavior.Blaizio.Ui source, refresh the docs site's copies:
dotnet build docs/Blaizio.Docs -p:BlaizioRefresh=true.src/Blaizio.Base/lib): pnpm build there, then rebuild.docs/Blaizio.Docs/lib the same way: pnpm install there once; the build runs Tailwind and esbuild itself.tests/Blaizio.Cli.Core.Tests/Goldens) - update the
goldens deliberately, never to silence a diff you don't understand.feat(cli): ..., fix(ui): ..., docs: ...).dotnet test green for every suite (dotnet test at the repository root).CHANGELOG.md.Unreleased in CHANGELOG.md for anything a user of the packages, the CLI
or the docs site would notice.Blaizio is MIT licensed. By submitting a contribution you agree that it is licensed under the same MIT license as the rest of the project. There is no CLA to sign.
Packages publish from .github/workflows/publish.yml on a v* tag, through NuGet trusted
publishing (OIDC, no API key). Every package (Blaizio.Base, Blaizio.Icons and the icon sets,
Blaizio.Syntax and Blaizio.Syntax.Languages, and the three CLI packages) releases in lockstep under
one version; the tag must equal BlaizioVersionBase. A version nuget.org already holds is skipped,
so re-running a release is safe.
BlaizioVersionBase in
Directory.Build.props (Base, Icons, the icon sets and the Syntax packages, and the version the
docs site displays), the floating <version>.* rows of those packages in
Directory.Packages.props (the docs site's own references), and Version in
src/Blaizio.Cli/Blaizio.Cli.csproj, src/Blaizio.Cli.Core/Blaizio.Cli.Core.csproj and
src/Blaizio.Cli.Contracts/Blaizio.Cli.Contracts.csproj. A packed version is immutable: never
republish different bytes under one version.Unreleased entries in CHANGELOG.md under a heading for the new version, and add
the short notes for it to the docs Changelog page
(docs/Blaizio.Docs/Pages/ChangelogPage.razor).git tag v0.1.1, then git push origin v0.1.1.
Leave main where it is.main: git push origin main.The order of steps 3 to 5 matters. The docs site deploys from .github/workflows/pages.yml on
every push to main, and the site is also the component registry the CLI reads. A registry
that is live before its packages has blaizio add and blaizio update handing out components
that need a Blaizio.Base nobody can restore yet. Pushing the tag publishes the packages without
deploying the site, because the Pages workflow does not run on a tag.
The same tag also creates the GitHub Release (.github/workflows/release.yml), with that
version's CHANGELOG.md section as the notes, so the heading in step 2 must be exactly
## <version> - <date>. For a tag that already exists, run that workflow by hand with the tag.
One-time setup: a trusted publishing policy on nuget.org (owner blaizio, repository blaizio,
workflow file publish.yml, environment release) and a release environment on the repository
holding the NUGET_USER secret (the nuget.org profile name). Before the first publish, run
dotnet pack -c Release -o ./artifacts/publish for each project and inspect the packages.
Open a GitHub issue with the smallest reproduction you can manage - a failing test or a minimal
blaizio command sequence is ideal. For security issues see SECURITY.md.