install Loafkit
you’ll need a Svelte 5 app. install one package name:
npm install @ciabi/loafkit-uiuse Svelte ^5.0.0 and Node.js ^22.12.0 || >=24.0.0, matching the package requirements.
add styles once
import the stylesheet from your root component or layout. styles.css supplies tokens and native element styling. it doesn’t load the reset or font setup.
<script>
import '@ciabi/loafkit-ui/styles.css';
import { Card } from '@ciabi/loafkit-ui';
</script>
<Card title="A place to start">
<p>your reading list is ready for its first article.</p>
</Card>if you want the reset and font setup too, replace the stylesheet import with @ciabi/loafkit-ui/app.css. that file imports styles.css, reset.css and fonts.css together. don’t import both bundles just to be safe.
check the result
A place to start
your reading list is ready for its first article.
you should see a titled card with the same rounded surface as the preview. if the surface or button looks unstyled, check that the root stylesheet import is running. if an import fails, check its exact exported name in the component chooser. don’t import source files from the repository into a consumer app.
add only the setup you need
individual components don’t require Basket, Navbar or a dialog holder. use the app shell when you want Loafkit to manage the viewport layout. register flavors when you want a named palette. managed dialogs mount themselves when opened from a browser event.