跳到主要内容
menumenu tanreiexpand_morecontrasttranslate
tanreiexpand_more
开始使用WebReactSwiftUIJetpack ComposeFlutterReact Native预设你自己的设计系统与 AI 代理一起使用 Tanrei品牌设计令牌设计系统与定制Theme Studio颜色字体排印图标形状层级动效交互状态行为布局无障碍文字颜色令牌字阶令牌形状令牌层级令牌动效令牌状态令牌间距与度量令牌组件按钮主操作按钮分段按钮按钮组带菜单的按钮工具栏复制按钮复选框单选按钮开关纸片(Chip)菜单滑块滑块字段日历DateTimePicker字段组单选组复选框组下拉选择框下拉选择字段菜单栏文件上传文件选择器 进阶放置区文本输入框 进阶文本字段纸片字段字段组合框 进阶组合框字段数字输入框 进阶数字字段颜色输入框 进阶颜色字段一次性验证码输入框 进阶一次性验证码字段嵌入式文本输入框 进阶聊天输入栏卡片分隔线模态层 进阶对话框列表列表行底部面板侧边面板轮播代码块表格弹出框步骤折叠面板描述列表图示应用外壳页头树视图时间线图片预览调整手柄可调整大小的框滚动区域徽标进度指示器计量条数字滚动器加载指示器消息条(Snackbar)工具提示键盘快捷键标签(Tag)行内代码提示块(Callout)头像空状态标签组(Tag group)骨架屏文件项色块跑马灯文本标签页标签页视图应用栏导航栏导航抽屉搜索链接分页上一页/下一页链接步骤条面包屑目录链接卡片FAB 菜单状态Tanrei 是如何构建的参与贡献许可与致谢
首页令牌参考间距与度量令牌

间距与度量令牌

间距阶梯、最小目标、图标尺寸、边框宽度和焦点环的各项尺寸。

content_copy以 Markdown 格式查看

tanrei.sys 下的尺寸令牌。使用指引请阅读布局和无障碍。

间距

令牌 值 预览
--tanrei-sys-space-space0 0px
--tanrei-sys-space-space25 2px
--tanrei-sys-space-space50 4px
--tanrei-sys-space-space75 6px
--tanrei-sys-space-space100 8px
--tanrei-sys-space-space125 10px
--tanrei-sys-space-space150 12px
--tanrei-sys-space-space175 14px
--tanrei-sys-space-space200 16px
--tanrei-sys-space-space250 20px
--tanrei-sys-space-space300 24px
--tanrei-sys-space-space400 32px
--tanrei-sys-space-space450 36px
--tanrei-sys-space-space500 40px
--tanrei-sys-space-space600 48px
--tanrei-sys-space-space700 56px
--tanrei-sys-space-space800 64px
--tanrei-sys-space-space900 72px

生成自 design/tokens/tanrei.light.tokens.json, tokens/sys/space.tokens.json

最小目标

The least sizes of what a person presses. minimum is the least height (and, for an icon-only control, width) anything pressable is drawn at; touch and pointer are the least hit areas, which a control reaches past what it draws where it stands alone.

令牌 值 预览
--tanrei-sys-target-minimum 32px
--tanrei-sys-target-pointer 44px
--tanrei-sys-target-spacing 8px
--tanrei-sys-target-touch 48px

生成自 design/tokens/tanrei.light.tokens.json, tokens/sys/measure.tokens.json

图标

令牌 值 预览
--tanrei-sys-icon-extra-small 16px
--tanrei-sys-icon-large 32px
--tanrei-sys-icon-medium 24px
--tanrei-sys-icon-small 20px

生成自 design/tokens/tanrei.light.tokens.json, tokens/sys/measure.tokens.json

边框

令牌 值 预览
--tanrei-sys-border-hairline 1px
--tanrei-sys-border-thick 2px

生成自 design/tokens/tanrei.light.tokens.json, tokens/sys/measure.tokens.json

焦点环

The focus indicator, from the control outwards: `offset` (negative = drawn inside the control), then an optional inner stroke in sys.color.focus-ring-inner, then the outer stroke in sys.color.focus-ring. Never animated.

令牌 值 预览
--tanrei-sys-focus-inner-width 0px
--tanrei-sys-focus-offset 2px
--tanrei-sys-focus-outer-width 2px

生成自 design/tokens/tanrei.light.tokens.json, tokens/sys/measure.tokens.json