包页面→ /design/design-lenses.md
pages/design/design-lenses.md
23 行, 1.0 KB. 以页面形式查看.
这段内容尚未翻译,下面是英文原文。
- ---
- type: Page
- title: "Design lenses"
- description: "The style specimen and the component catalog of the project: what they show, where the data comes from, how to rebuild."
- ---
- # Design lenses
- - [Style](style.html) — 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](components.html) — 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](/design/design.md). After changing it, or the style's
- tokens, or a component:
- ```sh
- 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.