ShtukbaseStandard

The Shtukbase style

shtukbase-style · versión 0.1.2
Otros6 normas4 comprobaciones

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.

Sobre el paquete

Este texto aún no está traducido. Debajo está el original en inglés.

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).

Normas 6

IDNormaNivelModoEnforcer
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 bloquea
comprobación
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 observa
juez
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 bloquea
comprobación
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 bloquea
comprobación
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 bloquea
comprobación
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 observa
juez

«Bloquea»: el enforcer detiene la infracción. «Observa»: solo la anota. El nivel MUST es obligatorio; SHOULD significa «sí, salvo que haya motivo».

Acciones 6

NombreQué haceArchivoCuándo
buildBuild tokens.css of the style from its tokensactions/build.ts
tras instalar tras actualizar
adoptSet this style in /design/design.md when the project has noneactions/adopt.ts
tras instalar tras actualizar
backgroundThe document is white
norma SBS-R01
checks/background.ts
comprobación
card-ratioA card is at most 3:1
norma SBS-R03
checks/card-ratio.ts
comprobación
shadow-evenShadows are even on all sides
norma SBS-R04
checks/shadow-even.ts
comprobación
freshThe CSS of the style is rebuilt from its tokens
norma SBS-R05
checks/fresh.ts
comprobación

shtuk check ejecuta las comprobaciones; shtuk run shtukbase-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 23

Se copian al proyecto en estas rutas.

Archivos del paquete 12

Van a .shtukbase/packages/shtukbase-style/; las acciones se ejecutan desde ahí.