inkspireadi/fabric-kit
About
Components that move like real material. A free React library built on fabric, dither and goo; install with the shadcn CLI.
Web & App DevelopmentMeasured star growth
- in 24h
- Collecting history
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalFabric Kit
Components that move like real material. A free React library built on three effects: fabric, dither and goo. A dropdown hangs like cloth, a slider pulls up a drop of goo, a loading orb is drawn in 1-bit dots.
You copy each component into your project with the shadcn CLI, so the code is yours to read and change. No package to install, no lock-in.
fabrickit.org · Docs · Components
Install
Fabric Kit needs React 19. It works with the Next.js App Router, Vite, or any setup that lets a component import its own
.css file.
# 1. set up shadcn, if your project doesn't have a components.json yet
npx shadcn@latest init
# 2. add the theme (once): every colour, radius and curve as --fabric-* variables
npx shadcn@latest add https://fabrickit.org/r/theme.json
# 3. add components
npx shadcn@latest add https://fabrickit.org/r/goo-slider.json
Each component's page has its own command. To use short names instead, add the registry to your components.json:
{
"registries": {
"@fabrickit": "https://fabrickit.org/r/{name}.json"
}
}
npx shadcn@latest add @fabrickit/goo-slider
Light and dark
Components are dark by default. Put data-theme="light" on <html>, or on any element, for light. Everything inside
follows, canvas effects included.
Components
| Group | Components |
|---|---|
| Inputs | Button, Calendar, Checkbox, Combobox, Date picker, Dropzone, Goo Slider, Hold to delete, Input, Radio group, Select, Signature, Switch, Textarea |
| Overlays | Dialog, Drawer, Popover, Sheet, Toast, Tooltip |
| Navigation | Accordion, Command menu, Context menu, Dropdown menu, Scrubber, Tabs |
| Display | Avatar, Badge, Chart, Data table, ID card, Map, Progress, Secret Reveal, Skeleton, Sortable list |
| Orbs | Drape, Moon, Ripple |
| Backgrounds | Gradient |
40 components, 92 with their variants. See them all moving at fabrickit.org.
Running the site locally
npm install
npm run dev # the site and docs at http://localhost:3000
npm run registry # rebuild the installable files in public/r
npm run build # registry + production build
Set NEXT_PUBLIC_SITE_URL=http://localhost:3000 to test installs against your local copy.
How it fits together
| Where | What |
|---|---|
components/fabricui/ |
The components (React and their CSS, with fui- classes). This is what gets installed. |
lib/fabricui/ |
The engines behind the effects (goo.js, dither.js and each component's motion). Plain JS, no framework. |
styles/fabric.css |
The theme: every token as a --fabric-* variable. |
lib/docs/entries/ |
One entry per component: title, description, files, usage and props. Drives the docs pages and the registry. |
demos/ |
The live preview on each docs page. |
scripts/build-registry.mjs |
Writes registry.json from the entries, then runs shadcn build into public/r/. |
app/, components/landing/, components/docs/ |
The website itself. |
Adding a component
- Put the component in
components/fabricui/, and its engine, if it has one, inlib/fabricui/. - Add an entry in
lib/docs/entries/. - Add a demo in
demos/and register it indemos/index.ts. - Run
npm run registry.
Feedback
Found a bug or want a component? Open an issue, email [email protected], or find me on X at @AdityaSur11.
License
MIT. Free for personal and commercial use.
Explore related projects
Loading…