stableui
v0.1.24
Published
A React UI component library built with shadcn/ui components and precompiled CSS.
Readme
stableui
A React UI component library built with shadcn/ui components and precompiled CSS.
Install
npm install stableuiPeer dependencies:
- react: ^18 || ^19
- react-dom: ^18 || ^19
Usage
// Import styles once in your app (required)
import 'stableui/dist/style.css'
import { Button } from 'stableui'
export default function Example() {
return <Button>Click me</Button>
}No Tailwind setup required
This library ships with fully precompiled CSS, so consuming apps don't need Tailwind or any additional configuration. Just import the CSS and use the components.
Development
npm run build– builds ESM and CJS todist/npm run typecheck– TS type checkingnpm run lint– lint sourcenpm run storybook– start Storybook for component development
Adding new components
The CSS management has been streamlined! When adding new shadcn/ui components:
Option 1: Use the helper script (Recommended)
npm run add-component <component-name>This will:
- Add the component using shadcn CLI
- Automatically update
src/index.tswith the new exports - Ensure CSS is properly configured
Option 2: Manual process
Add the component:
npx shadcn@latest add <component-name>Export the component in
src/index.ts:import { NewComponent } from '@/components/ui/new-component' export { NewComponent }Build and test:
npm run build
CSS Management
- Single source of truth: All styles are managed in
src/index.css - Automatic scanning: Tailwind automatically scans all component files
- No manual CSS updates needed: New components will work automatically
- Build integration: CSS is automatically included in the build process
The consuming apps will automatically get the new styles without any changes needed.
License
MIT © 2025 Gabriel Zárate
