Skip to the content

An exhibition of parts for Svelte 5

Parts that look finished

Styled components that you copy into your project. From then on the code is yours. The behaviour and the accessibility come from human-kit ui, and this kit adds the look.

On show
58 parts for Svelte 5
Admission
Free, under the MIT licence
Hours
Open in light and in dark
To take home
Any of them, as source

Please touch
the works

13 of the 58, live and at the size they have in an app. Each label gives the size of the work as it hangs in your window. The colour is yours to change.

November 2026

SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Calendar

A month to pick a day or a stretch of days from.

Svelte 5 and Tailwind CSS

Last visit on 12 March, next one in two weeks.

Tabs

Sections of one place, one in view at a time, picked from a strip or a rail.

Svelte 5 and Tailwind CSS

Everyone with access to the agenda sees them.

Switch

An on and off setting that takes effect at once, with its label.

Svelte 5 and Tailwind CSS

Weight 72 kg
Slider

A number, or a range of two, picked by moving a thumb along a track.

Svelte 5 and Tailwind CSS

Select

A form field with one or more values from a list of options.

Svelte 5 and Tailwind CSS

Screening tests

Pick every test the lab will run.

Checkbox Group

Several checkboxes answering one question, with its label, its hint and its error.

Svelte 5 and Tailwind CSS

We sent it by text to the number ending in 4417.

Pin Input

One box per character, for a PIN or the code a message brings.

Svelte 5 and Tailwind CSS

Exporting records
Uploading results
Progress

How far a task that takes time has gone, or that it is still going.

Svelte 5 and Tailwind CSS

Button

A button with variants, sizes and a pending state.

Svelte 5 and Tailwind CSS

How was the visit? 4 of 5
Rating

A score on a small scale, given with a press on a star or with the arrows.

Svelte 5 and Tailwind CSS

gray blue cyan teal green amber orange red pink violet
Badge

A short label in a colour: a state, a category, a count.

Svelte 5 and Tailwind CSS

AM JO LF +2
Avatar

A person or a place as a picture, or their initials in a colour of their own.

Svelte 5 and Tailwind CSS

Toggle Group

Toggles side by side, one of them in or several, reached by the arrow keys.

Svelte 5 and Tailwind CSS

Take one home.

The command writes the component into your project as source. There is no package to update and no wrapper to work around.

Change a class, a variant or the whole file. Nothing comes back to undo it.

pnpm dlx @human-kit/design init
npx @human-kit/design init
yarn dlx @human-kit/design init
bunx @human-kit/design init
pnpm dlx @human-kit/design add button dialog select
npx @human-kit/design add button dialog select
yarn dlx @human-kit/design add button dialog select
bunx @human-kit/design add button dialog select

Nothing is behind glass.

Under each part there is a primitive of human-kit ui. The keyboard, the focus, the roles and the states are set there, and tested there.

This kit never writes that again. It only says how the part looks.

Keyboard
Every part can be used without a pointer.
Focus
It goes where it must, and it comes back.
Screen readers
Roles, names and states, set for you.
Forms
Native names and values, and their errors.

Repaint the walls.

Colours, corners and heights live in one stylesheet. Change the hue of the primary and every part follows, in light and in dark.

The swatches here are the ones of the room above. Pick one, and the token changes.

Read about theming

:root {
	--primary: oklch(0.55 0.2 277);
}

The checklist

All 58 works, room by room.