Sépale

Do gild the lily

What you need,
as you like it

Sépale is a low-key component library, available in CSS or Svelte. Pick a visual style and adjust it to your colours.

npm install @sepale/components @sepale/style
families
5
themes
49
components
68

New bed

Planted Full sun
In bloom
1,284
+12% this week

Frost is over

The seedlings can go out.

The principles

What Sépale is made of, whichever family you pick: components first, plain CSS after, and a Svelte layer that knows what the stylesheet ships.

  • Sized by font-size

    Components are em-based and carry no breakpoints. Change the font size and the whole component follows.

  • Types that match the CSS

    Import a family’s stylesheet and every prop narrows to what it ships, so a variant it lacks is a compile error.

  • Classes before components

    A component is a DOM structure and a set of classes. The Svelte wrapper is the quick way in, not the only one.

  • Plain compiled CSS

    No Tailwind, no @apply, no config. A family is one stylesheet, and the reset is optional and separate.

  • Data views included

    A data handler drives filters, sort, search, pages and pending edits. Tables, grids, lists and kanbans only draw its rows.

  • Families stand alone

    Each family writes the whole of every component and reads nothing from another, so one can go far without breaking its neighbours.

One markup, 5 families

Changing family is changing a stylesheet and an import, never the markup. Pick one, then drag the cards: this is the kit itself, not a picture of it.

Add yours One CSS file Write it with an AI →
Sown 2
  • Peonies, north bed
  • Cosmos along the fence
Growing 1
  • Dahlias, south wall
In bloom 2
  • Sunflowers by the shed
  • Daisies in the lawn, on purpose
<script>
	import { Card, Kanban } from '@sepale/components';
	import '@sepale/style/peony.css';
	import '@sepale/style/peony/themes/azure.css';
</script>

<Kanban {items} {columns} columnOf={(t) => t.status} key={(t) => t.id} {onmove}>
	{#snippet item(task)}
		<Card size="sm">{task.title}</Card>
	{/snippet}
</Kanban>

Tune it, don’t fork it

Each family declares its own parameters: colours, radii, and knobs of its own, like a shadow offset or a hand-drawn wobble. The theme generator edits them live on a make-believe app, then exports a theme.css to lay over the family’s stylesheet.

Open the theme generator
:root {
	--color-page: #f0f3f8;
	--color-surface-1: #ffffff;
	--color-surface-2: #f4f6fa;
	--color-surface-3: #e8edf4;
	--color-surface-4: #d9e1ec;
	--color-border: #d5dde8;
	--color-on-surface: #17212f;
	--color-primary: #2459d6;
	--color-neutral: #6b778a;
	--color-info: #3aa0d8;
	--color-success: #3faa78;
	--color-warning: #e3a33e;
	/* … */
}

Two ways to get it

Follow the kit as it evolves, or take a snapshot that is yours to change.

The packages follow the kit

@sepale/style is the stylesheets alone, with no dependency. @sepale/components adds the Svelte layer, typed by the stylesheet you import: switching family is changing that import, and the compiler lists what to fix. Parameters, classes and props follow semver.

import { Button } from '@sepale/components';
import '@sepale/style/peony.css';

The files are yours

Download a zip from the theme generator: the family’s stylesheet, your theme and, if you want them, the Svelte components with that family’s types. A snapshot never updates, so change what you like. Without Svelte, write the classes yourself.

<link rel="stylesheet" href="peony.css" />
<link rel="stylesheet" href="theme.css" />

<button class="btn btn-primary">Plant</button>
Sponsor