@quddify/ui
v0.1.0
Published
Shared UI library for the Quddify platform and sales-trainer-lp.
Readme
@quddify/ui
Shared UI library for the Quddify platform and sales-trainer-lp. Tokens, primitives, density scale.
Specs live in quddify-platform/ui-audit/ — read those first if you're touching the package design.
Install
npm install @quddify/uiUse
Import tokens once in your global CSS:
@import "tailwindcss";
@import "@quddify/ui/tokens.css";
@source "../node_modules/@quddify/ui/dist";Components:
import { Button } from '@quddify/ui';
<Button>Submit</Button>
<Button variant="outline" size="sm">Cancel</Button>
<Button render={<a href="/somewhere" />}>Link button</Button>Density
Set on the consuming app's <html>:
<html data-density="compact"> <!-- platform: tight operator UI -->
<html> <!-- LP: comfortable default -->Develop
npm run dev # watch build
npm run build # one-shot build
npm run typecheckFor local iteration in a consuming app, use npm link:
# in this package
npm run build && npm link
# in the consuming app
npm link @quddify/uiPublish
npm version patch # 0.1.0 → 0.1.1
git push origin main --tagsGitHub Actions publishes on tag push. See .github/workflows/publish.yml.
