Getting started
Install Brick, load its visual foundation, and compose your first finished interface.
Three steps from package to product
Brick is intentionally a short setup: install the package, load its static visual foundation once, then compose public parts.
- 01InstallOne npm package
- 02Load stylesStatic CSS once
- 03ComposePublic React parts
Install Brick
Brick is distributed as a normal npm package. React and React DOM 18 or newer are peers; Brick installs its compatible Atom foundation automatically.
Load the visual foundation
Import the reset when your application wants Brick's opt-in baseline, then import the complete component stylesheet once at the application root.
The complete stylesheet is the recommended default and the reset remains optional. When production measurement shows that all-component CSS is material, replace styles.css with the shared foundation plus every Brick component stylesheet the route renders.
Do not combine the modular path with styles.css or tokens.css. Each component page lists its matching stylesheet.
Compose a finished surface
Confirm your setup
Before customizing anything, confirm three things:
- the component stylesheet is loaded once at the application root;
- keyboard focus is visible when you move through the surface; and
- the same component remains readable in light and dark appearance.
If those are true, your Brick foundation is working and you can move on to content, layout, and theme decisions.
Choose the right layer
Use Brick when you want finished components. Use Atom directly when you want headless behavior and intend to own every visual decision. Applications own routing, data, persistence, content, and business workflows.