Zero/Packages/Zero Basic/API reference
@sigx/zero-basic · Beta

API reference#

Exports of @sigx/zero-basic v0.2.0-beta.1.

Runtime module#

ExportWhat it is
installThemes()Hands tokens to registerThemes — registers basic and basic-dark with their schemes, pairing and derived swatches. The only thing an app calls.
tokensThe TokensInput declaration — roles, sizes, variants, modifiers, scopes, breakpoints, system, systemDark, the two themes.
recipesThe RecipeInput[] — one recipe per zero component.
designSystem{ name: 'basic', tokens, recipes } — the DesignSystemInput the build compiles.

Stylesheets#

SubpathContents
./cssdist/css/index.css — the layer-order statement, tokens and every recipe.
./css/tokensdist/css/tokens.css.
./css/*dist/css/components/<scope>.css.
./lynx/index.css, ./lynx/tokens.cssThe class-grammar projection.

Generated artifacts#

SubpathContents
./registerregister.d.ts — augments ZeroVocabulary with theme: 'basic' | 'basic-dark', breakpoint: 'sm' | 'md' | 'lg', every emitted custom property, the token keys per category, and one entry per scope; register.js is empty.
./manifest.jsonThe design-system manifest (manifestVersion: 1).
./report.jsonThe coverage report.
./lynx/manifest.jsonThe Lynx manifest.

The wired surface#

Scopecolorsizevariantmods
every scopethe eight recommended rolesxsxl
buttonsolid (default) · outline · soft · ghost
selectoutline (default) · soft · ghost
badgesolid · soft (default) · outline
tablezebra · hover

The manifest's components record is the authoritative version of this table.