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 buildingInstallWhereStatus
Laravel + Blade, with or without Livewireshipbytes/blade-uiComposerAvailable
Anything else@shipbytes/design-tokensnpmPlanned

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:

LayerPortability
TokensPerfect. One CSS file every framework consumes.
Recipes, the class strings per variant, size and stateNear perfect.
Specs: anatomy, variants, states, the accessibility contractAs 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.

Was this page helpful?