Introduction
Blazix is a set of beautifully-designed Blazor components and a code distribution platform. Built with .NET tooling only. Open Source. Open Code.
This is not a component library. It is how you build your component library.
You know how most traditional component libraries work: you install a package from NuGet, use its components, and style them through whatever options it gives you.
This approach works well until you need to customize a component to fit your design system or require one that isn't included in the library. Often, you end up wrapping library components, writing workarounds to override styles, or mixing components from different libraries with incompatible APIs.
This is what Blazix aims to solve. It is built around the following principles:
- Open Code: The top layer of your component code is open for modification.
- Composition: Every component uses a common, composable interface, making them predictable.
- Distribution: A flat-file registry and a .NET tool make it easy to distribute components.
- Beautiful Defaults: Carefully chosen default styles, so you get great design out-of-the-box.
- AI-Ready: Open code for LLMs to read, understand, and improve.
Open Code
Blazix hands you the actual component code: .razor files in your project. You have full control to
customize and extend the components to your needs. This means:
- Full Transparency: You see exactly how each component is built.
- Easy Customization: Modify any part of a component to fit your design and functionality requirements.
- AI Integration: Access to the code makes it straightforward for LLMs to read, understand, and even improve your components.
In a typical library, if you need to change a button's behavior, you have to override styles or wrap the component. With Blazix, you simply edit the button code directly.
Accessibility
Blazix aims for WCAG 2.2 AA and follows the WAI-ARIA Authoring Practices patterns. Keyboard use, focus management, ARIA state and axe scans have been checked in Chromium and Firefox.
It hasn't been tested with screen readers or voice control, and it hasn't been audited. Automated checks like axe find only some issues. If your project needs to be accessible, use Blazix at your own risk and test it yourself with the assistive technology your users have. If you find a problem, please open an issue.
Composition
Every component in Blazix shares a common, composable interface. If a component does not exist, we bring it in, make it composable, and adjust its style to match and work with the rest of the design system.
A shared, composable interface means it's predictable for both your team and LLMs. You are not learning different APIs for every new component.
Distribution
Blazix is also a code distribution system. It defines a registry of components and a CLI to distribute them.
- Registry: A flat-file structure that defines the components, their files and their dependencies.
- CLI: A .NET tool that copies components into your project, with everything they depend on. No Node.js needed.
Beautiful Defaults
Blazix comes with a large collection of components that have carefully chosen default styles. They are designed to look good on their own and to work well together as a consistent system:
- Good Out-of-the-Box: Your UI has a clean and minimal look without extra work.
- Unified Design: Components naturally fit with one another. Each component is built to match the others, keeping your UI consistent.
- Easily Customizable: If you want to change something, it's simple to override and extend the defaults.
AI-Ready
The design of Blazix makes it easy for AI tools to work with your code. Its open code and consistent API allow AI models to read, understand, and even generate new components.
An AI model can learn how your components work and suggest improvements or even create new components that integrate with your existing design.