Zero/Packages/Zero DaisyUI/API reference
@sigx/zero-daisyui · Beta

API reference#

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

Runtime module#

ExportWhat it is
installThemes()Hands tokens to registerThemes — registers light, dark, dim, nord and sunset with their schemes, the light / dark pairing and derived swatches.
tokensThe TokensInput declaration — the recommended roles and sizes, the six-value variant union, the eight modifiers, per-scope scopes for button and table, the depth / depth-shade / depth-sheen / noise / fx-noise custom tokens, system, the five themes.
recipesThe RecipeInput[] — one recipe per zero component.
designSystem{ name: 'daisyui', tokens, recipes, api } — the DesignSystemInput the build compiles.

./components#

The generated vendor-named module. Button and Table are adapt()ed; everything else is a plain re-export of the zero component.

ExportProps beyond zero's own
Buttonwide, block, square, circle, active, loading (booleans → data-mod-*); variant narrowed to solid | outline | soft | ghost | dash | link; color and size narrowed to the wired sets.
Tablezebra, hover on Table.Root.
Tabs, Dialog, Select, …zero's components, unchanged.

Stylesheets#

SubpathContents
./cssdist/css/index.css — the layer-order statement, tokens, the five theme blocks 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: 'light' | 'dark' | 'dim' | 'nord' | 'sunset', every emitted custom property (the daisy customs included), the token keys per category, and one entry per scope.
./manifest.jsonThe design-system manifest, with the api routing.
./report.jsonThe coverage report, with its api section.
./lynx/manifest.jsonThe Lynx manifest.

The wired surface#

Scopecolorsizevariantmods
every scopethe eight recommended rolesxsxl
button✓ (default primary)✓ (default md)solid (default) · outline · soft · ghost · dash · linkwide · block · square · circle · active · loading
tablezebra · hover

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