shtukbasehub

The lens kit style

The Shtukbase lens kit style as connectable CSS for any HTML pages of a project: classes (header, chips, cards, text, board) and skins, Calm (the quiet look of the package map, the default for pages), Kit, Draft (an earlier product's style) and Shtukbase (the names of the token contract, so a lens wears the chosen style), each in a light and a dark theme; page.js, the style and theme switch for any page, shared with the lenses; plus a showcase. The lenses package builds its own style from it.

Packagekit-stylev0.4.112 files

The lens kit style

Compatibility package (2026-11-29). The kit is now two kinds of packages: a style (style-desktop, style-calm: CSS variables only) and components (components-kit: the classes and page.js). Pages link the stable addresses /_kit/components.css and /_kit/style.css; the space's settings style and components pick the packages. This package requires them and keeps its old files (kit.css, skins/*.css, page.js under design/kit-style/, served at /_kit/<path>) so pages that link them keep working; they are frozen: change the new packages. See components-kit/README.md.

Shtukbase lenses are drawn in one style: quiet surfaces, option chips as in Notion, white cards with a light shadow. This package gives the same style to any HTML page of a project: a report, a dashboard, a help page. The page does not have to be a lens.

The style lives only here. The lenses package requires kit-style and builds its own lib/kit.css from this style and its own part (canvas, arrows, panels, kinds).

What it puts in the project:

  • /design/kit-style.md: what the style is, classes, skins, how to connect it;
  • /design/kit-style/kit.css: classes: the page base, a header with breadcrumbs and buttons, chips and links, a card, markdown, a board, a gallery; the page column .kx-page;
  • /design/kit-style/skins/calm.css: the Calm skin: the look of the package map in the explore kit: white and warm grey surfaces, thin lines, colour only as an accent (dots, icons, a thin line), grey outlined chips, no tinted areas;
  • /design/kit-style/skins/desktop.css: the Desktop skin: the look of the Shtukbase desktop app (the grounds, text tones, borders and accent of its light and dark sets, chips tinted with its select option palette, faintly tinted board columns); the default of the layouts and lenses;
  • /design/kit-style/page.js: the style and theme choice for a page that is not a lens: the same keys as the lenses (lx-skin, lx-theme), so one choice changes every page; it draws a small switch in the corner and offers the skins the page links;
  • /design/kit-style/skins/kit.css: the Kit skin: values of the variables (--bg, --ink, --lx-card, --line, --lx-accent, --shadow, --lx-radius, --font, option colors --c-* …) for a light and a dark theme;
  • /design/kit-style/skins/keer.css: the Draft skin: the same variables from the tokens of the keer-style style (graphite, champagne, the Geist font);
  • /design/kit-style/skins/shtukbase.css: the Shtukbase skin: every variable reads a name of the token contract (/design/contract.json) with the Shtukbase look as the fallback, so a page that links the chosen style's tokens.css wears that style;
  • /design/kit-style/showcase.html: a showcase with switches for style and theme, opened with a double click.

Skins

A skin is a set of values of the kit's variables for a light and a dark theme. Kit stands on :root and always applies. Another skin is turned on by the attribute data-skin="<id>" on <html> and overrides the values of Kit. The dark theme is turned on by data-theme="dark".

The Draft skin is not written by hand: the script scripts/skin-keer.ts builds it from the tokens.css of the keer-style package. The light theme is the draft theme, the dark one is draft-dark. If you change the tokens, run it again:

  • in the standard repository: bun apps/standard/packages/kit-style/scripts/skin-keer.ts (--check only compares);
  • in a project with keer-style: the skin-keer action (shtuk run kit-style skin-keer).

The package has no norms or checks.

Boundary: the canvas, arrows, the record panel, lens kinds, the kit script (kit.js) and the style switch in the lens header are in the lenses package.