Zero/Packages/Zero DaisyUI/Installation
@sigx/zero-daisyui · Beta

Installation#

Add @sigx/zero-daisyui beside @sigx/zero, import the two stylesheets, and register its five themes. Tailwind is not involved.

Install the package#

Terminal
pnpm add @sigx/zero @sigx/zero-daisyui

@sigx/zero-daisyui peer-depends on @sigx/zero; the two publish in lockstep.

Wire it up#

TypeScript
import '@sigx/zero/css';                    // layer order + structural fallbacks
import '@sigx/zero-daisyui/css';            // the whole design system
import { installThemes } from '@sigx/zero-daisyui';

installThemes();

installThemes() registers light and dark as a pair and dim, nord and sunset alongside. With no explicit choice the page follows the system preference; an explicit setTheme('nord') persists. See Theming.

Exports#

SubpathWhat
@sigx/zero-daisyuiinstallThemes(), plus the tokens, recipes and designSystem declarations.
@sigx/zero-daisyui/componentsThe daisy-native typed surface — Button with wide / block / square / circle / active / loading and variant up to dash and link; Table with zebra / hover; every other component re-exported.
@sigx/zero-daisyui/cssThe complete compiled stylesheet.
@sigx/zero-daisyui/css/tokensTokens and the five theme blocks only.
@sigx/zero-daisyui/css/<scope>One component's recipe.
@sigx/zero-daisyui/registerThe generated ZeroVocabulary augmentation.
@sigx/zero-daisyui/manifest.jsonThe design-system manifest.
@sigx/zero-daisyui/report.jsonThe coverage report.
@sigx/zero-daisyui/lynx/index.css, …/lynx/tokens.css, …/lynx/manifest.jsonThe Lynx projection.

Choose a typing path#

Either narrow zero's own props:

TypeScript
import '@sigx/zero-daisyui/register';       // once, at the app entry

or take daisy's names:

TSX
import { Button } from '@sigx/zero-daisyui/components';
<Button wide variant="dash" color="primary">Save</Button>

One or the other per program — see Vendor-named component APIs.

Verify#

TSX
import { Button } from '@sigx/zero/button';

<Button.Root color="primary" mods={{ wide: true }}>daisy</Button.Root>

A wide, primary-filled daisy button with daisy's light palette means the stylesheet is live; setTheme('sunset') should repaint it warm.