@pittorica/pitto
v0.4.5
Published
A modern, accessible React component library for building beautiful UIs, featuring composable primitives, utility-first styling, and theming powered by [vanilla-extract](https://vanilla-extract.style/).
Downloads
51
Readme
pittorica/pitto
A modern, accessible React component library for building beautiful UIs, featuring composable primitives, utility-first styling, and theming powered by vanilla-extract.
Features
- Rich Component Set:
- Primitives: Box, Stack, Container, Grid, Surface, Sheet
- Typography: Heading, Text, Paragraph, Blockquote, Codeblock, Pre, Quote, Abbreviation, Inline, Linebreak, Divider
- Inputs: Button, IconButton, Checkbox, Switch, Input, Textarea
- Utilities: Background (with variants), Divider, Icon set
- TypeScript-first: Full type safety and autocompletion
- Theming: Customizable via vanilla-extract theme contracts
- Composable & Accessible: Components are unstyled by default, accessible, and easy to extend
- Storybook: All components are documented with interactive stories
Getting Started
Install via your package manager:
pnpm add @pittorica/pitto
# or
yarn add @pittorica/pitto
# or
npm install @pittorica/pittoImport and use components:
import { Button, Checkbox, Stack } from '@pittorica/pitto';
export function Example() {
return (
<Stack gap="medium">
<Button>Click me</Button>
<Checkbox label="Accept terms" />
</Stack>
);
}Folder Structure
src/components/– All React components, organized by typesrc/icons/– SVG icon componentssrc/styles/– Theme contracts, global styles, palette, and utility CSS
Theming & Styling
- Built with vanilla-extract for type-safe, scalable theming
- Customize tokens in
src/styles/contract.css.tsandsrc/styles/contracts/ - Utility classes via
src/styles/sprinkles.css.ts
Storybook
Interactive documentation for all components is available via Storybook. To run locally:
pnpm exec nx storybook @pittorica/pittoLicense
This project is licensed under the MIT License.
Copyright (c) 2025 Davide Di Criscito
For full details, see the LICENSE file.
