a642bf16a2
design/ 同步自最新设计导出,新增 ui_kits/tablet/ 平板分栏布局;todo/ 录入 18 个并行实施任务。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
271 lines
6.5 KiB
JSON
271 lines
6.5 KiB
JSON
{
|
|
"plugins": [
|
|
"react",
|
|
"import"
|
|
],
|
|
"rules": {
|
|
"react/forbid-elements": [
|
|
"warn",
|
|
{
|
|
"forbid": []
|
|
}
|
|
],
|
|
"no-restricted-imports": [
|
|
"warn",
|
|
{
|
|
"patterns": [
|
|
{
|
|
"group": [
|
|
"ui_kits/desktop/**",
|
|
"ui_kits/mobile/**",
|
|
"ui_kits/tablet/**",
|
|
"ui_kits/usercenter/**",
|
|
"ui_kits/website/**"
|
|
],
|
|
"message": "Import design-system components from 'index.js', not component internals."
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"no-restricted-syntax": [
|
|
"warn",
|
|
{
|
|
"selector": "Literal[value=/#[0-9a-fA-F]{3,8}\\b/]",
|
|
"message": "Raw hex color — use a design-system color token via var()."
|
|
},
|
|
{
|
|
"selector": "Literal[value=/\\b\\d+px\\b/]",
|
|
"message": "Raw px value — use a design-system spacing token via var()."
|
|
},
|
|
{
|
|
"selector": "Literal[value=/font-family\\s*:\\s*(?!['\\\"]?(?:Sora|Manrope|Noto Sans SC|JetBrains Mono))/i]",
|
|
"message": "Font not provided by the design system. Available: Sora, Manrope, Noto Sans SC, JetBrains Mono."
|
|
}
|
|
]
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"**/index.js"
|
|
],
|
|
"rules": {
|
|
"no-restricted-imports": "off"
|
|
}
|
|
}
|
|
],
|
|
"x-omelette": {
|
|
"components": {},
|
|
"tokens": [
|
|
"--accent",
|
|
"--accent-border",
|
|
"--accent-hover",
|
|
"--accent-press",
|
|
"--accent-subtle",
|
|
"--amber-400",
|
|
"--amber-500",
|
|
"--amber-600",
|
|
"--bg",
|
|
"--bg-subtle",
|
|
"--border",
|
|
"--border-strong",
|
|
"--clay-100",
|
|
"--clay-200",
|
|
"--clay-300",
|
|
"--clay-400",
|
|
"--clay-50",
|
|
"--clay-500",
|
|
"--clay-600",
|
|
"--clay-700",
|
|
"--clay-800",
|
|
"--clay-900",
|
|
"--danger",
|
|
"--danger-subtle",
|
|
"--dur-base",
|
|
"--dur-fast",
|
|
"--dur-slow",
|
|
"--ease-in-out",
|
|
"--ease-out",
|
|
"--fg-on-accent",
|
|
"--fg1",
|
|
"--fg2",
|
|
"--fg3",
|
|
"--font-cjk",
|
|
"--font-display",
|
|
"--font-mono",
|
|
"--font-sans",
|
|
"--green-400",
|
|
"--green-500",
|
|
"--green-600",
|
|
"--leading-normal",
|
|
"--leading-relaxed",
|
|
"--leading-snug",
|
|
"--leading-tight",
|
|
"--overlay",
|
|
"--radius-2xl",
|
|
"--radius-full",
|
|
"--radius-lg",
|
|
"--radius-md",
|
|
"--radius-sm",
|
|
"--radius-xl",
|
|
"--red-400",
|
|
"--red-500",
|
|
"--red-600",
|
|
"--ring",
|
|
"--sand-100",
|
|
"--sand-200",
|
|
"--sand-300",
|
|
"--sand-400",
|
|
"--sand-50",
|
|
"--sand-500",
|
|
"--sand-600",
|
|
"--sand-700",
|
|
"--sand-800",
|
|
"--sand-900",
|
|
"--sand-950",
|
|
"--shadow-focus",
|
|
"--shadow-lg",
|
|
"--shadow-md",
|
|
"--shadow-sm",
|
|
"--shadow-xl",
|
|
"--space-0",
|
|
"--space-1",
|
|
"--space-10",
|
|
"--space-12",
|
|
"--space-16",
|
|
"--space-2",
|
|
"--space-3",
|
|
"--space-4",
|
|
"--space-5",
|
|
"--space-6",
|
|
"--space-8",
|
|
"--success",
|
|
"--success-subtle",
|
|
"--surface",
|
|
"--surface-2",
|
|
"--text-body",
|
|
"--text-body-lg",
|
|
"--text-caption",
|
|
"--text-display",
|
|
"--text-display-xl",
|
|
"--text-h1",
|
|
"--text-h2",
|
|
"--text-h3",
|
|
"--text-sm",
|
|
"--tracking-caps",
|
|
"--tracking-snug",
|
|
"--tracking-tight",
|
|
"--tracking-wide",
|
|
"--warning",
|
|
"--warning-subtle"
|
|
],
|
|
"tokenKinds": {
|
|
"--clay-50": "color",
|
|
"--clay-100": "color",
|
|
"--clay-200": "color",
|
|
"--clay-300": "color",
|
|
"--clay-400": "color",
|
|
"--clay-500": "color",
|
|
"--clay-600": "color",
|
|
"--clay-700": "color",
|
|
"--clay-800": "color",
|
|
"--clay-900": "color",
|
|
"--sand-50": "color",
|
|
"--sand-100": "color",
|
|
"--sand-200": "color",
|
|
"--sand-300": "color",
|
|
"--sand-400": "color",
|
|
"--sand-500": "color",
|
|
"--sand-600": "color",
|
|
"--sand-700": "color",
|
|
"--sand-800": "color",
|
|
"--sand-900": "color",
|
|
"--sand-950": "color",
|
|
"--green-400": "color",
|
|
"--green-500": "color",
|
|
"--green-600": "color",
|
|
"--amber-400": "color",
|
|
"--amber-500": "color",
|
|
"--amber-600": "color",
|
|
"--red-400": "color",
|
|
"--red-500": "color",
|
|
"--red-600": "color",
|
|
"--bg": "color",
|
|
"--bg-subtle": "color",
|
|
"--surface": "color",
|
|
"--surface-2": "color",
|
|
"--overlay": "color",
|
|
"--fg1": "color",
|
|
"--fg2": "color",
|
|
"--fg3": "color",
|
|
"--fg-on-accent": "color",
|
|
"--accent": "color",
|
|
"--accent-hover": "color",
|
|
"--accent-press": "color",
|
|
"--accent-subtle": "color",
|
|
"--accent-border": "color",
|
|
"--border": "color",
|
|
"--border-strong": "color",
|
|
"--ring": "color",
|
|
"--success": "color",
|
|
"--success-subtle": "color",
|
|
"--warning": "color",
|
|
"--warning-subtle": "color",
|
|
"--danger": "color",
|
|
"--danger-subtle": "color",
|
|
"--font-display": "font",
|
|
"--font-sans": "font",
|
|
"--font-cjk": "font",
|
|
"--font-mono": "font",
|
|
"--text-display-xl": "font",
|
|
"--text-display": "font",
|
|
"--text-h1": "font",
|
|
"--text-h2": "font",
|
|
"--text-h3": "font",
|
|
"--text-body-lg": "font",
|
|
"--text-body": "font",
|
|
"--text-sm": "font",
|
|
"--text-caption": "font",
|
|
"--leading-tight": "font",
|
|
"--leading-snug": "font",
|
|
"--leading-normal": "font",
|
|
"--leading-relaxed": "font",
|
|
"--tracking-tight": "font",
|
|
"--tracking-snug": "font",
|
|
"--tracking-wide": "font",
|
|
"--tracking-caps": "font",
|
|
"--space-0": "spacing",
|
|
"--space-1": "spacing",
|
|
"--space-2": "spacing",
|
|
"--space-3": "spacing",
|
|
"--space-4": "spacing",
|
|
"--space-5": "spacing",
|
|
"--space-6": "spacing",
|
|
"--space-8": "spacing",
|
|
"--space-10": "spacing",
|
|
"--space-12": "spacing",
|
|
"--space-16": "spacing",
|
|
"--radius-sm": "radius",
|
|
"--radius-md": "radius",
|
|
"--radius-lg": "radius",
|
|
"--radius-xl": "radius",
|
|
"--radius-2xl": "radius",
|
|
"--radius-full": "radius",
|
|
"--shadow-sm": "shadow",
|
|
"--shadow-md": "shadow",
|
|
"--shadow-lg": "shadow",
|
|
"--shadow-xl": "shadow",
|
|
"--shadow-focus": "shadow",
|
|
"--ease-out": "other",
|
|
"--ease-in-out": "other",
|
|
"--dur-fast": "other",
|
|
"--dur-base": "other",
|
|
"--dur-slow": "other"
|
|
},
|
|
"fontFamilies": [
|
|
"JetBrains Mono",
|
|
"Manrope",
|
|
"Noto Sans SC",
|
|
"Sora"
|
|
]
|
|
}
|
|
} |