A modern, composable design system built with TypeScript, React, and CSS Modules, using ES6+ features.
# First, configure npm to use GitHub Packages for @supahuman scope
npm config set @supahuman:registry https://npm.pkg.github.com
# Then install the package
npm install @supahuman/design-system-3
# or
yarn add @supahuman/design-system-3
# or
pnpm add @supahuman/design-system-3
import { Button, TextField } from '@supahuman/design-system-3';
import '@supahuman/design-system-3/styles'; // Import styles
function App() {
return (
<div>
<TextField label="Name" placeholder="Enter your name" />
<Button variant="primary">Submit</Button>
</div>
);
}
# Install dependencies
pnpm install
# Run Storybook
pnpm storybook
# Build the package
pnpm build
pnpm build - Build the package for distributionpnpm test - Run testspnpm storybook - Start Storybook for developmentpnpm lint - Run ESLintpnpm format - Format code with PrettierMIT