theme_tokens
Retrieve design tokens and theme information for UI development, including colors, spacing, typography, and theme-specific values to ensure consistent styling across applications.
Instructions
获取 my-design 的 Design Token(设计令牌)和主题信息。包括颜色、间距、圆角、字体等 token 定义,以及不同主题(light/dark)下的值差异。生成代码时应优先使用 token(CSS 变量),避免硬编码颜色、间距等值。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Token 类型过滤。可选值:color(颜色)、spacing(间距)、radius(圆角)、font(字体)、shadow(阴影)、all(全部)。默认返回全部。 | |
| theme | No | 主题名称。可选值:light、dark。如果指定,则返回该主题下的 token 值。 |