@bsuite/ui
v0.2.0
Published
Shared UI primitives for the BSuite apps (D2C Neon Electric + Corporate brands).
Readme
@bsuite/ui
Shared UI primitives for the BSuite apps (D2C Neon Electric + Corporate brands).
Ships as an npm package because Vercel deploys each BSuite app from its own
GitHub repo — the parent monorepo's packages/ directory does NOT exist in
the Vercel build context. Consumers install from npm with a pinned semver.
Components
DotPattern
Full-viewport dot-pattern background. SVG <pattern> tiling — ~1 DOM node
(vs ~1,800 motion.circle nodes on a typical viewport).
import { DotPattern } from '@bsuite/ui'
<div className="relative">
<DotPattern
width={28}
height={28}
cr={1.5}
className="opacity-[0.35] [color:var(--accent-primary)]"
/>
{/* page content */}
</div>Colour control via Tailwind text-* utilities or inline [color:var(...)]
(dots use fill="currentColor").
Utils
cn(...classes)
shadcn-style className merger — clsx + tailwind-merge. Available for
consumers that want to compose @bsuite/ui components with local overrides
without pulling shadcn again.
Releases
- Edit source under
src/. pnpm -C packages/ui test— all cases must pass.pnpm -C packages/ui build— emitsdist/.- Bump version in
package.json(semver). npm publish --access publicfrompackages/ui/.- Update consumer
package.jsonto the new version, regenerate lockfile outside the bsuite tree (see rootCLAUDE.mdrule 7), commit the lockfile + a consumer-side bump PR.
NEVER use workspace:* or file:../packages/ui for this package in a
consumer — Vercel builds can't resolve those.
