@yo-yo.art/ui
v0.3.0
Published
The Grupo Yo-Yo design system: shared React components and tokens.
Maintainers
Readme
@yo-yo.art/ui
The Grupo Yo-Yo design system: shared React components, tokens and styles.
- Workshop: https://yo-yo.codeberg.page/ui/
- Repository: https://codeberg.org/yo-yo/ui
Alpha (
0.x). The API can change between minor releases.
Install
pnpm add @yo-yo.art/uiReact, React DOM, lucide-react and Tailwind 4 are peers.
Tailwind
@import "tailwindcss";
@import "@yo-yo.art/ui/styles.css";The stylesheet carries the tokens and a @source that points at the package's
compiled JS, so Tailwind finds the classes the components use.
For the scenography overlay, also import:
@import "@yo-yo.art/ui/scenography.css";The package does not ship fonts. Set --font-sans and --font-mono in the app.
Next.js
The package is framework-agnostic and does not ship "use client" directives.
Wrap the interactive components (ThemeToggle, LoadingScreen,
SetupNotice) in a local client component.
Entry points
@yo-yo.art/ui components and tokens
@yo-yo.art/ui/gallery loading cover, home button, setup notice and artwork panel
@yo-yo.art/ui/styles.css design tokens and Tailwind source
@yo-yo.art/ui/scenography.css compatibility layer for the overlay presetsLicense
MIT.
