SLAB isn't an npm package — it's a source tree (tokens/, components/, styles.css) that's the single source of truth. Clone or copy it as a sibling folder to your new project, not inside it:
Copy slab/SKILL.md into my-new-app/CLAUDE.md (or .cursorrules / your tool's equivalent). This hands the agent the neo-brutalist rules — borders, hard shadows, type, motion — so you don't have to restate them every prompt.
One prompt is enough — the agent can read SKILL.md, styles.css, and components/ itself:
- Added
"@slab/*": ["../slab/*"]totsconfig.jsonpaths - Imported
@slab/styles.cssexactly once, in the root layout/entry file - Imports components as
import { Button } from "@slab/components/core/Button" - Left
slab/itself untouched — no edits to tokens or components
Tell it to skim slab/guidelines/components.html and a relevant slab/ui_kits/ example before generating new screens. Left alone, AI tools default to soft shadows and rounded minimalism that fights the SLAB aesthetic.
styles.css needs importing — never re-import individual token files.