@labcat2020/rocketship
v0.1.0
Published
Rocketship — Astro-focused, CSS-first component library: design tokens, default theme, and core components
Downloads
179
Readme
@labcat2020/rocketship
Astro-focused, CSS-first component library. Design tokens, the default theme, and core components built with SCSS (BEM + --rs-* CSS custom properties).
Install
npm install @labcat2020/rocketshipUsage
Import a component:
---
import Button from '@labcat2020/rocketship/components/Button'
---
<Button variant="primary">Click me</Button>Import the base styles (tokens + default theme) once in your app:
import '@labcat2020/rocketship/styles'Theming
Theming is CSS-variable based. Components reference --rs-* tokens (from src/styles/variables.scss) and expose --rs-<component>-* override hooks. Adopters can override tokens and component variables from :root or any ancestor.
