ShtukbaseStandard

The Shtukbase style

shtukbase-style · версия 0.1.2
Другое6 норм4 проверки

The Shtukbase identity as a style package: raspberry on white paper, a 12-hue palette, Outfit and Onest, the Viewfinder mark, even edges. Tokens in DTCG filling the shadcn theme names, built CSS, fonts, group backgrounds, the mark and wordmark, and six norms.

О пакете

Этот текст ещё не переведён. Ниже английский оригинал.

The visual identity of Shtukbase as a style package of the design contract: swap it for another style and every component and lens built to the contract changes its look.

What it puts in the project, in /design/shtukbase-style/:

  • tokens.json and tokens.dark.json: the style in the W3C DTCG format. They fill every name of the contract: the shadcn theme names (--background, --primary, --card, --chart-1 ...), the Tailwind v4 names (--font-sans, --shadow-md) and the extension --sb- (the twelve hues with -tint, -soft, -ink, the shadows --sb-edge, --sb-shadow-lift, --sb-shadow-sheet, the glow --sb-glow, the motion --sb-ease, --sb-dur).
  • tokens.css: the CSS built from the two files (light on :root, dark on .dark, [data-theme="dark"]). The build action writes it; the check fresh keeps it honest.
  • style.css: what tokens alone do not give: the group backgrounds .sb-bg-dots, -grid, -lines, -paper, -tint, -fade and others, the canvas .sb-canvas, edges .sb-edge, .sb-sheet, .sb-glow, .sb-glow-area, .sb-lift. Only var(--...) of the contract.
  • fonts.css: Google Fonts links for Onest, Outfit and Geist Mono (all SIL Open Font License 1.1).
  • assets/: the mark (mark.svg), the wordmark (wordmark.svg), a favicon with fixed colours and the five package icons in icon style 79 (icons/).
  • the pages of the style: style.md (principles), surfaces.md (surfaces, edges, shadows, backgrounds), mark.md (the mark and the wordmark), icons.md (icon style 79). The specimen shows them as sections.
  • norms in /norms/rules/shtukbase-style/:
    • SBS-R01: the document is white; check background.
    • SBS-R02: the icon stands left, its top level with the title; a person judges it (judges/icon-left.md).
    • SBS-R03: a card is at most 3:1; check card-ratio.
    • SBS-R04: edges and shadows are even on all sides; check shadow-even.
    • SBS-R05: the CSS of the style is rebuilt from its tokens; check fresh.
    • SBS-R06: no plate under an icon; a person judges it (judges/no-plate.md).

On install the action adopt writes style: shtukbase-style in the header of /design/design.md when it names no style yet.

How to use: put <link rel="stylesheet" href="/design/shtukbase-style/fonts.css">, then tokens.css, then style.css into a page; use var(--primary), var(--sb-hue-5-soft) and the rest. A dark theme is a class dark or data-theme="dark" on any element.

Boundary: the package gives the values and the few classes of the style itself, not components: cards, chips and buttons are in the component libraries (shtukbase-ui-html, shtukbase-ui-react). The fonts are linked, not shipped: offline the system fonts named in the tokens are used. The mark has an accent token (--sb-accent, raspberry); the open question of raspberry or blue for the mark stays open in the identity notes.

Sources: the identity decisions of 28-29.11.2026 (shtuks/projects/shtukbase/assets/logo/identity.md), the palette (palette.css) and the package map mock (card edge, glow, chips, group backgrounds).

Нормы 6

IDНормаУровеньРежимEnforcer
SBS-R01
The page of a document, a form or a screen has a white background: html, body and :root take var(--background) or white in the light theme, with no grey paper, dots, grid or gradient behind the text. Patterns and tints belong to canvases and areas.
MUST не пускает
проверка
SBS-R02
In a card, a row and a header the icon stands on the left and the title and text on the right; the top of the drawn icon is level with the top of the first line of the title. The icon is not above the text and the text is not under the icon, except a tile with no description (the icon above the name).
SHOULD наблюдает
судья
SBS-R03
A card is not longer than 3:1 (width to height, or height to width); a longer element is a row of a list. A card is as tall as its content, with no empty space added. A tile without text (an icon over a name) is almost square, 5:4.
SHOULD не пускает
проверка
SBS-R04
An edge, a glow or a shadow is the same on all sides: the offset is 0 (at most 1 px), the line is a ring of 1 px, the halo a blur. A shadow pushed down or sideways, or pulled in with a negative spread so that only one side shows, is not used. Take var(--sb-edge), var(--sb-shadow-lift), var(--sb-shadow-sheet) or var(--sb-glow).
MUST не пускает
проверка
SBS-R05
The file /design/shtukbase-style/tokens.css is exactly what the action build writes from tokens.json and tokens.dark.json of the style.
MUST не пускает
проверка
SBS-R06
An icon is drawn on the surface it stands on. No coloured or grey plate, tile, circle or square goes under an icon: not in a card, a row, a header, a tile or a button. Style 79 brings its own white rim and soft shadow; that is all the backing an icon gets.
MUST наблюдает
судья

«Не пускает» — enforcer останавливает нарушение; «наблюдает» — только отмечает его. Уровень MUST — обязательно, SHOULD — по умолчанию да.

Действия 6

ИмяЧто делаетФайлКогда
buildBuild tokens.css of the style from its tokensactions/build.ts
после установки после обновления
adoptSet this style in /design/design.md when the project has noneactions/adopt.ts
после установки после обновления
backgroundThe document is white
норма SBS-R01
checks/background.ts
проверка
card-ratioA card is at most 3:1
норма SBS-R03
checks/card-ratio.ts
проверка
shadow-evenShadows are even on all sides
норма SBS-R04
checks/shadow-even.ts
проверка
freshThe CSS of the style is rebuilt from its tokens
норма SBS-R05
checks/fresh.ts
проверка

Проверки запускает shtuk check, любое действие — shtuk run shtukbase-style <имя>. Действия «после установки» запускаются сами, только если пакет из доверенного источника.

Страницы 23

Ложатся в проект по этим путям.

Файлы пакета 12

Ложатся в .shtukbase/packages/shtukbase-style/; отсюда запускаются действия.