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.
Sobre el paquete
Este texto aún no está traducido. Debajo está el original en inglés.
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 thekeer-stylestyle (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'stokens.csswears 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(--checkonly compares); - in a project with
keer-style: theskin-keeraction (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.
Acciones 1
| Nombre | Qué hace | Archivo | Cuándo |
|---|---|---|---|
| skin-keer | Rebuild the Draft skin (design/kit-style/skins/keer.css) from the keer-style tokens (design/keer-style/tokens.css) | scripts/skin-keer.ts | shtuk run |
shtuk check ejecuta las comprobaciones; shtuk run kit-style <nombre> ejecuta cualquier acción. Las acciones «tras instalar» solo se ejecutan solas si el paquete viene de una fuente de confianza.
Páginas 9
Se copian al proyecto en estas rutas.
- /design/
- The lens kit style página
- /design/kit-style/
- kit.css archivo
- page.js archivo
- showcase.html archivo
- /design/kit-style/skins/
- calm.css archivo
- desktop.css archivo
- keer.css archivo
- kit.css archivo
- shtukbase.css archivo
Archivos del paquete 2
Van a .shtukbase/packages/kit-style/; las acciones se ejecutan desde ahí.