Shared shadcn-based UI components for Sealos frontend apps.
# package + peer deps
pnpm add @labring/sealos-ui react-hook-form sonner
# Tailwind v4 + PostCSS
pnpm add -D tailwindcss @tailwindcss/postcss postcssFor workspace usage, you can also add this in package.json:
// postcss.config.mjs
export default {
plugins: {
'@tailwindcss/postcss': {}
}
};Import in your root stylesheet (for example global.css):
/* Tailwind CSS + theme tokens + base shared styles + shared component @source */
@import '@labring/sealos-ui/shadcn.css';import { Button, cn } from '@labring/sealos-ui';Subpath import is also supported:
import { Button } from '@labring/sealos-ui/button';pnpm typecheckThe repository now includes a private showcase app generated with shadcn create at apps/showcase.
It is for local UI preview only and is not published to npm.
pnpm install
pnpm showcase:devBuild preview app:
pnpm showcase:buildSee: shadcn/ui docs
This repository also ships the sealos-design agent skill alongside the UI package.
Install it from the GitHub repo with the Skills CLI:
npx skills add mlhiter/sealos-ui --skill sealos-designOr install by path:
npx skills add https://github.com/mlhiter/sealos-ui/tree/main/skills/sealos-design
{ "dependencies": { "@labring/sealos-ui": "workspace:^" } }