ShtukbaseStandard
страница/design/design-lenses.md

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

Design lenses

The style specimen and the component catalog of the project: what they show, where the data comes from, how to rebuild.

  • Style — the chosen style: every token by group, light and dark side by side, with its CSS name; the style's pictures and pages. A click on a name copies var(--name).
  • Components — the catalog: a tree by level, every state of a component side by side, its controls in the explore panel, the style and theme switch, links to the source and the page. The panel's values stay in the link.

The style is the field style in the header of /design/design.md. After changing it, or the style's tokens, or a component:

shtuk run lenses build              # the kit and the pages' texts
shtuk run design-components sync    # lib/design/components.data.js
shtuk run design-lenses build       # lib/design/style.data.js

shtuk run design-lenses check says when the specimen's data is stale.

Пакет Design lenses кладёт эту страницу в /design/design-lenses.md.Исходный текст