A small component library for quickly spinning up a pretty Next.js project.
bun add stoop
Import the global styles in your app:
import "stoop/styles";
import { Button } from "stoop";
function MyComponent() {
return <Button>Click me</Button>;
}
The theme system provides CSS variables that you can use in your components:
.my-component {
color: var(--color-text);
background-color: var(--color-background);
padding: var(--space-medium);
border-radius: var(--radius-small);
}
For local development:
# Install dependencies
bun install
# Start development server
bun run dev
# Build the library
bun run build
# Lint and format
bun run lint
bun run prettier
Feel free to get in touch with feedback, advice or suggestions. See Conventional Commits for new contributors.
MIT © Jackson Dolman