包页面→ /design/tokens.json
pages/design/tokens.json
68 行, 2.8 KB. 直接打开 (在项目中它旁边还有其他文件,这里可能缺失).
文件按包中的原样显示:代码及其注释不做翻译。
- {
- "$description": "Design tokens of the project in the W3C DTCG format. Build the CSS: shtuk run design-tokens build",
- "color": {
- "$type": "color",
- "neutral": {
- "0": { "$value": { "colorSpace": "oklch", "components": [1, 0, 0], "hex": "#ffffff" } },
- "100": { "$value": { "colorSpace": "oklch", "components": [0.97, 0, 0], "hex": "#f5f5f5" } },
- "500": { "$value": { "colorSpace": "oklch", "components": [0.54, 0, 0], "hex": "#6f6f6f" } },
- "900": { "$value": { "colorSpace": "oklch", "components": [0.205, 0, 0], "hex": "#171717" } }
- },
- "brand": { "$value": { "colorSpace": "srgb", "components": [0.204, 0.388, 0.922], "hex": "#3463eb" } },
- "background": { "$value": "{color.neutral.0}", "$description": "Page background" },
- "foreground": { "$value": "{color.neutral.900}", "$description": "Body text" },
- "muted": { "$value": "{color.neutral.100}" },
- "muted-foreground": { "$value": "{color.neutral.500}" },
- "primary": { "$value": "{color.brand}" },
- "primary-foreground": { "$value": "{color.neutral.0}" }
- },
- "space": {
- "$type": "dimension",
- "1": { "$value": { "value": 4, "unit": "px" } },
- "2": { "$value": { "value": 8, "unit": "px" } },
- "4": { "$value": { "value": 16, "unit": "px" } },
- "6": { "$value": { "value": 24, "unit": "px" } }
- },
- "radius": {
- "$type": "dimension",
- "sm": { "$value": { "value": 4, "unit": "px" } },
- "md": { "$value": { "value": 8, "unit": "px" } }
- },
- "font": {
- "family": { "$type": "fontFamily", "sans": { "$value": ["Inter", "system-ui", "sans-serif"] } },
- "size": {
- "$type": "dimension",
- "body": { "$value": { "value": 1, "unit": "rem" } },
- "title": { "$value": { "value": 1.5, "unit": "rem" } }
- },
- "weight": { "$type": "fontWeight", "regular": { "$value": 400 }, "bold": { "$value": "bold" } }
- },
- "motion": {
- "fast": { "$type": "duration", "$value": { "value": 150, "unit": "ms" } },
- "ease": { "$type": "cubicBezier", "$value": [0.2, 0, 0, 1] }
- },
- "shadow": {
- "$type": "shadow",
- "sm": {
- "$value": {
- "color": { "colorSpace": "srgb", "components": [0, 0, 0], "alpha": 0.08 },
- "offsetX": { "value": 0, "unit": "px" },
- "offsetY": { "value": 1, "unit": "px" },
- "blur": { "value": 2, "unit": "px" },
- "spread": { "value": 0, "unit": "px" }
- }
- }
- },
- "border": {
- "default": {
- "$type": "border",
- "$value": { "color": "{color.muted}", "width": { "value": 1, "unit": "px" }, "style": "solid" }
- }
- },
- "text": {
- "body": {
- "$type": "typography",
- "$value": { "fontFamily": "{font.family.sans}", "fontSize": "{font.size.body}", "fontWeight": "{font.weight.regular}", "letterSpacing": { "value": 0, "unit": "px" }, "lineHeight": 1.5 }
- }
- }
- }