skip section navigation

Loafkit UI

Loafkit gives your Svelte app controls, content surfaces and dialogs that share one set of colors. those colors are called flavors. you can bring your own palette and artwork without rebuilding every component around them.

start with a small piece of your app. a saved reading list only needs a Card and normal HTML:

Weekend reading

one good article for later.
svelte
<script>
	import { Card } from '@ciabi/loafkit-ui';
	let saved = $state(false);
</script>

<Card title="Weekend reading" description="one good article for later.">
	<button type="button" onclick={() => saved = !saved} aria-pressed={saved}>
		{saved ? 'saved for later' : 'save article'}
	</button>
</Card>

the button belongs to your app, so you decide what saving means. Card handles the surrounding surface. this split runs through the library: components provide their interaction and structure; your app owns data, network requests and persistence.

where to start

install the package, then choose the layout your app needs. you can also use individual components inside an existing layout.

the component chooser lets you try the public components. flavors and app artwork cover customization once the basic screen works.

what you’re installing

@ciabi/loafkit-ui is the Svelte 5 library. @ciabi/loaf-web is a second package name for the same library build. these docs use the first name throughout; use one consistently in your app.

the documentation site contains app examples too. those examples aren’t all package exports, and the site’s flavor collection and illustrations don’t arrive with an import. a future starter isn’t part of the current consumer setup. you can build the app you need with the library today.