@reference-ui/lib
v0.0.46
Published
Foundational design system package built on `@reference-ui/core`.
Readme
@reference-ui/lib
Foundational design system package built on @reference-ui/core.
Exports
@reference-ui/lib: exportsbaseSystemfor downstreamextends: [baseSystem]@reference-ui/lib/theme: exports the plain theme objects used to build that system
Usage
pnpm run sync # Run ref sync once
pnpm run dev # Watch modeComponent playground (React Cosmos)
Follows the Vite getting started layout: react-cosmos-plugin-vite in cosmos.config.json, and cosmos / cosmos-export scripts. globalImports loads @reference-ui/react/styles.css for Panda fixtures. On macOS, Node’s port probe can throw (EADDRNOTAVAIL for 0.0.0.0); portRetries / rendererUrl avoid that upstream behavior so the dev server can start.
Run ref sync before Cosmos so @reference-ui/react exists. From the repo root: pnpm run dev:lib. Or pnpm run sync in this package, then pnpm run cosmos. Open http://localhost:5000. Static export: pnpm run cosmos-export.
import { baseSystem } from '@reference-ui/lib'
import { colors, fonts } from '@reference-ui/lib/theme'