@mento-protocol/ui
v0.1.0
Published
Mento Protocol React component library and design tokens.
Keywords
Readme
@mento-protocol/ui
Mento Protocol's shared React component library, Tailwind v4 token layer, and bundled brand stylesheet.
Install
pnpm add @mento-protocol/uiThe package expects React 19. It ships compiled CSS, so Tailwind is optional for consumers that only import the stylesheet.
Usage
Import the bundled stylesheet once at the application root:
import "@mento-protocol/ui/globals.css";Then import components from the package entrypoint:
import { Button } from "@mento-protocol/ui";
export function Example() {
return <Button>Continue</Button>;
}Consumers that only need the Mento CSS variables and Tailwind theme tokens may import:
import "@mento-protocol/ui/theme.css";globals.css already includes theme.css, Tailwind's generated utilities, component styles, and the bundled Aspekta font face.
Peer Dependencies
reactreact-domtailwindcssis optional unless the consuming app compiles or extends the package's Tailwind v4 token layer.
Font
The package bundles the unmodified AspektaVF.ttf font as dist/AspektaVF.ttf and loads it from the exported CSS. Aspekta is licensed under the SIL Open Font License 1.1; the font license is included beside the font in the published package as dist/Aspekta-OFL.txt.
Release
This package is prepared for public npm publishing, but publishing is intentionally manual. Create a release tag such as @mento-protocol/[email protected] only when the npm release is approved.
The tag-driven publish workflow builds the package before publishing, and prepublishOnly runs the same build for any manual pnpm publish. During local package development, pnpm dev also watches src/theme.css and keeps the exported dist/theme.css file fresh.
