design-system-3

Design System 3

CI/CD Pipeline GitHub Package License Storybook

A modern, composable design system built with TypeScript, React, and CSS Modules, using ES6+ features.

Features

Installation

GitHub Packages

# 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

Usage

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>
  );
}

Development

Setup

# Install dependencies
pnpm install

# Run Storybook
pnpm storybook

# Build the package
pnpm build

Commands

License

MIT