页面/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。源文本