A robust, type-safe Design System featuring design tokens, React components, and automated documentation. Built as a monorepo for maximum scalability and performance.
This repository is managed as an npm monorepo using TurboRepo for optimized task execution and Changesets for automated versioning and publishing.
@zizao/tokens: Core design tokens (colors, spacing, fonts, etc.).@zizao/react: Component library built with Stitches and Radix UI.@zizao/docs: Documentation site and interactive playground powered by Storybook.@zizao/eslint-config/@zizao/ts-config: Shared development configurations.
- Framework: React 18+
- Styling: Stitches (CSS-in-JS)
- Language: TypeScript
- Primitives: Radix UI (Accessible components)
- Icons: Phosphor Icons
- Build System: TurboRepo
- Bundler: tsup (esbuild-powered)
- Documentation: Storybook 7
- Versioning: Changesets
Fully configurable tokens for:
- Colors: Custom palette with primary brand colors.
- Typography: Fonts, font sizes, font weights, and line heights.
- Layout: Spacing scale, border radii, and breakpoints.
Accessible and highly customizable React components:
- Layout:
Box,Text,Heading - Actions:
Button - Forms:
TextInput,TextArea,Checkbox - Display:
Avatar,MultiStep
- Node.js (LTS recommended)
npm(Workspaces support)
Clone the repository and install dependencies:
npm installRun all packages in parallel (TurboRepo):
npm run dev- Storybook: http://localhost:6006
Generate production-ready bundles:
npm run buildimport { Button, Text } from '@zizao/react'
export function App() {
return (
<Button variant="primary">
<Text size="sm">Click Me</Text>
</Button>
)
}import { colors, space } from '@zizao/tokens'
const myStyle = {
backgroundColor: colors.ignite500,
padding: space[4],
}This project uses Changesets for automated versioning.
- Create a changeset:
npm run changeset - Update versions:
npm run version-packages - Publish to npm:
npm run release
Distributed under the MIT License. See LICENSE for more information.
Built with β€οΈ as part of hours studying from Rocketseat contents.