ShtukbaseStandard
страница пакета→ /design/design-lenses.md

pages/design/design-lenses.md

23 строки, 1.0 КБ. Как страница.

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

  1. ---
  2. type: Page
  3. title: "Design lenses"
  4. description: "The style specimen and the component catalog of the project: what they show, where the data comes from, how to rebuild."
  5. ---
  6. # Design lenses
  7. - [Style](style.html) — the chosen style: every token by group, light and dark side by side, with its CSS name; the
  8. style's pictures and pages. A click on a name copies `var(--name)`.
  9. - [Components](components.html) — the catalog: a tree by level, every state of a component side by side, its controls in
  10. the explore panel, the style and theme switch, links to the source and the page. The panel's values stay in the link.
  11. The style is the field `style` in the header of [/design/design.md](/design/design.md). After changing it, or the style's
  12. tokens, or a component:
  13. ```sh
  14. shtuk run lenses build # the kit and the pages' texts
  15. shtuk run design-components sync # lib/design/components.data.js
  16. shtuk run design-lenses build # lib/design/style.data.js
  17. ```
  18. `shtuk run design-lenses check` says when the specimen's data is stale.