ShtukbaseStandard

The keer-style style

keer-style · versión 0.1.2
Diseño3 normas3 comprobaciones

A graphite-and-champagne style taken from an earlier product: tokens in one CSS file, elements in plain CSS, showcases and three norms: color, corner radius and shadow only from tokens.

Sobre el paquete

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

The style: "Draft, graphite, champagne" from an earlier product. The package suits any project.

What it puts in the project:

  • /design/keer-style.md: what the style is, principles, the formula, when to apply what, how to connect it;
  • /design/keer-style/tokens.css: all the values: colors, corner radii, shadows, spacing, fonts, motion; two themes ("Draft" and "Grain") and a dark variant of "Draft" (draft-dark) for the lens skin;
  • /design/keer-style/elements.css: buttons, cards, fields, a table, badges, empty states in plain CSS (classes ks-…);
  • /design/keer-style/showcase.html and tokens.html: showcases, opened with a double click;
  • norms KS-R01 (color), KS-R02 (corner radius), KS-R03 (shadow) with checks on Bun.

The checks look at the project's CSS, HTML and code. Value files are marked with the word @tokens in the first lines; raw values are allowed in them.

From these tokens the kit-style package builds the "Draft" lens skin (skins/keer.css, the script scripts/skin-keer.ts). If you change the tokens, rebuild the skin.

Boundary: the package does not install the Geist font (without it, the system font is used) and does not bring the ten themes of the source application. The dark draft-dark lies in the tokens only as a source for the lens skin; the style's pages do not turn it on themselves. React components are in the keer-ui package.

Source: An earlier product, shtuks/design/ and packages/ui/src/styles/tokens.css, state as of 28.11.2026.

Normas 3

IDNormaNivelModoEnforcer
KS-R01
El CSS, el HTML y el código del proyecto no tienen colores sin procesar: hex, rgb(), hsl(), oklch() con números, nombres de color en las propiedades de color y la paleta de Tailwind (bg-gray-500, text-white). Un color se toma de var(--ds-…) del estilo keer-style.
MUST bloquea
comprobación
KS-R02
border-radius en CSS y HTML toma var(--ds-radius-…) (o calc() sobre él), 0 o 50%; en Tailwind, rounded-none|xs|sm|md|lg|xl|2xl|3xl|4xl|full, y un rounded-[…] arbitrario solo con una variable de radio.
MUST bloquea
comprobación
KS-R03
box-shadow en CSS y HTML es none o una lista de var(--…); la única forma compuesta permitida es un anillo [inset] 0 0 0 <grosor de hasta 2px o var> <variable de color>. En Tailwind, un shadow-[…] arbitrario se rige por lo mismo.
SHOULD bloquea
comprobación

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

Acciones 3

NombreQué haceArchivoCuándo
colorsColor only from tokens
norma KS-R01
checks/colors.ts
comprobación
radiiCorner radius only from the scale
norma KS-R02
checks/radii.ts
comprobación
shadowsShadow only from tokens
norma KS-R03
checks/shadows.ts
comprobación

shtuk check ejecuta las comprobaciones; shtuk run keer-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 8

Se copian al proyecto en estas rutas.

Archivos del paquete 5

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