Which package do I need?
The design system is one Blade package. Its design tokens are packaged separately for projects that are not on Blade.
| You are building | Install | Where | Status |
|---|---|---|---|
| Laravel + Blade, with or without Livewire | shipbytes/blade-ui | Composer | Available |
| Anything else | @shipbytes/design-tokens | npm | Planned |
@shipbytes/design-tokens is the dist/ folder of the same repo and can be
consumed from a git dependency until it is published.
A Blade project needs nothing from npm
The Composer package ships the compiled CSS. The whole install is one composer require and three lines of CSS, covered in Getting started. Add the tokens package only if your own JavaScript needs the token values, for example a chart palette reading tokens.js rather than repeating hex literals.
A project that is not on Blade
Take the tokens. dist/tokens.css and dist/theme.css carry every colour, size and motion value with its light and dark reading, so components you write yourself draw from the same values as the Blade ones. That case is the reason the system is token-first rather than component-first.
Why token-first
Sharing components across frameworks does not survive contact with a real app. The dashboard this system was extracted from had roughly 1,100 Livewire directives in its markup, and the worst of it was structural rather than cosmetic. Any behaviour layer has to be rewritten per framework regardless. What genuinely travels:
| Layer | Portability |
|---|---|
| Tokens | Perfect. One CSS file every framework consumes. |
| Recipes, the class strings per variant, size and state | Near perfect. |
| Specs: anatomy, variants, states, the accessibility contract | As documentation. |
Implementations are thin leaves on top of that, not the shared thing. The tokens page lists every value with its light and dark reading; the specs carry the reasoning behind each component.