@lark-apaas/coding-steering 0.1.67 → 0.1.68-alpha.20261016070747

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/README.md +21 -19
  2. package/package.json +6 -6
  3. package/steering/design-html/skills/animated-video/SKILL.md +2 -2
  4. package/steering/design-html/skills/charts/SKILL.md +8 -60
  5. package/steering/design-html/skills/{data-viz → data-report}/SKILL.md +9 -65
  6. package/steering/design-html/skills/frontend-design/SKILL.md +2 -2
  7. package/steering/design-html/skills/hi-fi-design/SKILL.md +1 -1
  8. package/steering/design-html/skills/interactive-prototype/SKILL.md +2 -19
  9. package/steering/design-html/skills/{slide-deck → make-a-deck}/SKILL.md +11 -35
  10. package/steering/design-html/skills/{visual-report → visual-exposure}/SKILL.md +2 -24
  11. package/steering/design-html/skills_local/creative-design/agents/assets/vision-probe.png +0 -0
  12. package/steering/design-html/skills_local/creative-design/agents/fork-verifier-agent.md +71 -0
  13. package/steering/design-html/skills_local/creative-design/agents/vision-probe-agent.md +41 -0
  14. package/steering/design-html/skills_local/creative-design/assets/index.html +27 -0
  15. package/steering/design-html/skills_local/creative-design/references/aily.md +39 -0
  16. package/steering/design-html/skills_local/creative-design/references/animated-video.md +35 -0
  17. package/steering/design-html/skills_local/creative-design/references/charts.md +165 -0
  18. package/steering/design-html/skills_local/creative-design/references/claude.md +36 -0
  19. package/steering/design-html/skills_local/creative-design/references/codex.md +32 -0
  20. package/steering/design-html/skills_local/creative-design/references/data-report.md +108 -0
  21. package/steering/{nestjs-react-fullstack/skills/design-guide → design-html/skills_local/creative-design}/references/frontend-design.md +26 -21
  22. package/steering/design-html/skills_local/creative-design/references/hi-fi-design.md +32 -0
  23. package/steering/design-html/skills_local/creative-design/references/interactive-prototype.md +24 -0
  24. package/steering/design-html/skills_local/creative-design/references/make-a-deck.md +133 -0
  25. package/steering/design-html/skills_local/creative-design/references/visual-exposure.md +82 -0
  26. package/steering/design-html/skills_local/creative-design/references/wireframe.md +14 -0
  27. package/steering/design-html/skills_local/creative-design/skill.md +273 -0
  28. package/steering/design-html/skills_local/creative-design/starter-components/android-frame.jsx +188 -0
  29. package/steering/design-html/skills_local/creative-design/starter-components/animations.jsx +773 -0
  30. package/steering/design-html/skills_local/creative-design/starter-components/browser-window.jsx +122 -0
  31. package/steering/design-html/skills_local/creative-design/starter-components/deck-stage.js +2483 -0
  32. package/steering/design-html/skills_local/creative-design/starter-components/design-canvas.jsx +1432 -0
  33. package/steering/design-html/skills_local/creative-design/starter-components/ios-frame.jsx +270 -0
  34. package/steering/design-html/skills_local/creative-design/starter-components/macos-window.jsx +197 -0
  35. package/steering/design-html/skills_local/creative-design/starter-components/tweaks-panel.jsx +752 -0
  36. package/steering/nestjs-react-fullstack/skills/app-init-feasibility-guide/SKILL.md +0 -5
  37. package/steering/nestjs-react-fullstack/skills/authn-guide/SKILL.md +0 -7
  38. package/steering/nestjs-react-fullstack/skills/authz-guide/SKILL.md +10 -43
  39. package/steering/nestjs-react-fullstack/skills/authz-guide/references/dynamic-permission-guide.md +1 -1
  40. package/steering/nestjs-react-fullstack/skills/authz-guide/references/runtime-role-controller-spec.md +8 -6
  41. package/steering/nestjs-react-fullstack/skills/authz-guide/references/sdk-examples.md +1 -6
  42. package/steering/nestjs-react-fullstack/skills/authz-guide/references/sdk-types.md +5 -8
  43. package/steering/nestjs-react-fullstack/skills/client-add-aily-web-chat/SKILL.md +139 -0
  44. package/steering/nestjs-react-fullstack/skills/client-builtins-file-storage-service/SKILL.md +116 -45
  45. package/steering/nestjs-react-fullstack/skills/client-builtins-user-service/SKILL.md +2 -15
  46. package/steering/nestjs-react-fullstack/skills/code-fix/SKILL.md +9 -15
  47. package/steering/nestjs-react-fullstack/skills/coding-guide/SKILL.md +102 -360
  48. package/steering/nestjs-react-fullstack/skills/contacts-service/SKILL.md +11 -88
  49. package/steering/nestjs-react-fullstack/skills/feishu/SKILL.md +269 -0
  50. package/steering/nestjs-react-fullstack/skills/feishu/references/approval.md +214 -0
  51. package/steering/nestjs-react-fullstack/skills/feishu/references/attendance.md +163 -0
  52. package/steering/nestjs-react-fullstack/skills/feishu/references/bitable.md +311 -0
  53. package/steering/nestjs-react-fullstack/skills/feishu/references/calendar.md +190 -0
  54. package/steering/nestjs-react-fullstack/skills/feishu/references/contacts.md +160 -0
  55. package/steering/nestjs-react-fullstack/skills/feishu/references/doc.md +257 -0
  56. package/steering/nestjs-react-fullstack/skills/feishu/references/drive.md +104 -0
  57. package/steering/nestjs-react-fullstack/skills/feishu/references/events.md +199 -0
  58. package/steering/nestjs-react-fullstack/skills/feishu/references/id-convert.md +128 -0
  59. package/steering/nestjs-react-fullstack/skills/feishu/references/messaging.md +207 -0
  60. package/steering/nestjs-react-fullstack/skills/feishu/references/oauth.md +165 -0
  61. package/steering/nestjs-react-fullstack/skills/feishu/references/perm.md +91 -0
  62. package/steering/nestjs-react-fullstack/skills/feishu/references/wiki.md +165 -0
  63. package/steering/nestjs-react-fullstack/skills/openapi-guide/SKILL.md +0 -44
  64. package/steering/nestjs-react-fullstack/skills/plugin-guide/SKILL.md +541 -179
  65. package/steering/nestjs-react-fullstack/skills/plugin-guide/references/plugin-coding-guide.md +17 -199
  66. package/steering/nestjs-react-fullstack/skills/plugin-guide/references/table.md +14 -30
  67. package/steering/nestjs-react-fullstack/skills/server-builtins-file-storage-service/SKILL.md +177 -210
  68. package/steering/nestjs-react-fullstack/{skills_common → skills}/trigger-guide/SKILL.md +5 -30
  69. package/steering/nestjs-react-fullstack/skills_common/user-identity/SKILL.md +40 -33
  70. package/steering/nestjs-react-fullstack/skills_local/authz-guide/SKILL.md +6 -39
  71. package/steering/nestjs-react-fullstack/skills_local/authz-guide/references/runtime-role-controller-spec.md +8 -6
  72. package/steering/nestjs-react-fullstack/skills_local/authz-guide/references/sdk-examples.md +1 -6
  73. package/steering/nestjs-react-fullstack/skills_local/authz-guide/references/sdk-types.md +5 -8
  74. package/steering/nestjs-react-fullstack/skills_local/client-builtins-user-service/SKILL.md +0 -2
  75. package/steering/nestjs-react-fullstack/skills_local/code-fix/SKILL.md +2 -8
  76. package/steering/nestjs-react-fullstack/skills_local/coding-guide/SKILL.md +81 -145
  77. package/steering/nestjs-react-fullstack/skills_local/plugin-guide/SKILL.md +3 -14
  78. package/steering/nestjs-react-fullstack/skills_local/plugin-guide/references/plugin-coding-guide.md +16 -150
  79. package/steering/vite-react/skills/plugin-guide/SKILL.md +6 -8
  80. package/steering/vite-react/skills/react-three-fiber/SKILL.md +0 -5
  81. package/steering/vite-react/tech.md +0 -3
  82. package/steering/design-html/skills/mini-game/SKILL.md +0 -71
  83. package/steering/design-html/skills/mini-game/references/three-js.md +0 -54
  84. package/steering/design-html/skills/pptx-style-extract/SKILL.md +0 -157
  85. package/steering/design-html/skills/pptx-style-extract/font-fallback.yaml +0 -129
  86. package/steering/design-html/skills/pptx-style-extract/scripts/census.py +0 -967
  87. package/steering/design-html/skills/pptx-style-extract/scripts/check_v2.py +0 -1052
  88. package/steering/design-html/skills/pptx-style-extract/scripts/draft.py +0 -3483
  89. package/steering/design-html/skills/pptx-style-extract/scripts/export_consumer_md.py +0 -75
  90. package/steering/design-html/skills/pptx-style-extract/scripts/export_consumer_zip.py +0 -175
  91. package/steering/design-html/skills/pptx-style-extract/scripts/extract.py +0 -1287
  92. package/steering/design-html/skills/pptx-style-extract/scripts/ooxml.py +0 -716
  93. package/steering/design-html/skills/pptx-style-extract/scripts/package.py +0 -1946
  94. package/steering/design-html/skills/pptx-style-extract/scripts/parts.py +0 -480
  95. package/steering/design-html/skills/pptx-style-extract/scripts/query.py +0 -557
  96. package/steering/design-html/skills/pptx-style-extract/scripts/render_pages.py +0 -687
  97. package/steering/design-html/skills/pptx-style-extract/scripts/test_asset_judgment_package.py +0 -556
  98. package/steering/design-html/skills/pptx-style-extract/scripts/test_background_composite.py +0 -364
  99. package/steering/design-html/skills/pptx-style-extract/scripts/test_color_contract.py +0 -60
  100. package/steering/design-html/skills/pptx-style-extract/scripts/test_design_consumer_contract.py +0 -76
  101. package/steering/design-html/skills/pptx-style-extract/scripts/test_flow_layout_contract.py +0 -528
  102. package/steering/design-html/skills/pptx-style-extract/scripts/test_layout_css.py +0 -1814
  103. package/steering/design-html/skills/pptx-style-extract/scripts/test_logo_scope.py +0 -600
  104. package/steering/design-html/skills/pptx-style-extract/scripts/test_rounded_contract.py +0 -112
  105. package/steering/design-html/skills/pptx-style-extract/scripts/test_text_role_contract.py +0 -315
  106. package/steering/design-html/skills/pptx-style-extract/scripts/verify_font.py +0 -68
  107. package/steering/design-html/skills/pptx-style-extract/scripts/verify_layout_assets.py +0 -421
  108. package/steering/design-html/skills/pptx-style-extract/scripts/verify_logo_scope.py +0 -12
  109. package/steering/design-html/skills/pptx-style-extract/v2-format-spec.md +0 -205
  110. package/steering/design-html/skills/social-card/SKILL.md +0 -263
  111. package/steering/nestjs-react-fullstack/skills/connections-sdk/SKILL.md +0 -202
  112. package/steering/nestjs-react-fullstack/skills/design-guide/SKILL.md +0 -190
  113. package/steering/nestjs-react-fullstack/skills/design-guide/references/broadsheet.md +0 -313
  114. package/steering/nestjs-react-fullstack/skills/design-guide/references/claude-editorial-research.md +0 -375
  115. package/steering/nestjs-react-fullstack/skills/design-guide/references/crimson-frosted-glass.md +0 -221
  116. package/steering/nestjs-react-fullstack/skills/design-guide/references/cybernetic-vault-terminal.md +0 -74
  117. package/steering/nestjs-react-fullstack/skills/design-guide/references/dashboard.md +0 -234
  118. package/steering/nestjs-react-fullstack/skills/design-guide/references/digital-e-guide.md +0 -349
  119. package/steering/nestjs-react-fullstack/skills/design-guide/references/finance-report.md +0 -169
  120. package/steering/nestjs-react-fullstack/skills/design-guide/references/flowbite.md +0 -179
  121. package/steering/nestjs-react-fullstack/skills/design-guide/references/handwritten-sketch.md +0 -215
  122. package/steering/nestjs-react-fullstack/skills/design-guide/references/industry.md +0 -348
  123. package/steering/nestjs-react-fullstack/skills/design-guide/references/metabase.md +0 -226
  124. package/steering/nestjs-react-fullstack/skills/design-guide/references/minimal-jade.md +0 -205
  125. package/steering/nestjs-react-fullstack/skills/design-guide/references/nebula-crimson.md +0 -306
  126. package/steering/nestjs-react-fullstack/skills/design-guide/references/nexuscore-analytics.md +0 -74
  127. package/steering/nestjs-react-fullstack/skills/design-guide/references/organic-minimalism.md +0 -253
  128. package/steering/nestjs-react-fullstack/skills/design-guide/references/pm-spec.md +0 -234
  129. package/steering/nestjs-react-fullstack/skills/design-guide/references/pop-art.md +0 -272
  130. package/steering/nestjs-react-fullstack/skills/design-guide/references/sap-fiori-horizon.md +0 -154
  131. package/steering/nestjs-react-fullstack/skills/design-guide/references/token-mapping.md +0 -68
  132. package/steering/nestjs-react-fullstack/skills/design-guide/references/warm-elegance.md +0 -217
  133. package/steering/nestjs-react-fullstack/skills/design-guide/references/wild-orange.md +0 -203
  134. package/steering/nestjs-react-fullstack/skills/nestjs-cache/SKILL.md +0 -254
  135. package/steering/nestjs-react-fullstack/skills/raw-sql-boundary-audit/SKILL.md +0 -63
  136. package/steering/nestjs-react-fullstack/skills_common/mcp-guide/SKILL.md +0 -78
  137. package/steering/nestjs-react-fullstack/skills_common/mcp-guide/assets/eslint.mcp-ui.config.cjs +0 -19
  138. package/steering/nestjs-react-fullstack/skills_common/mcp-guide/assets/ui-tsconfig.json +0 -19
  139. package/steering/nestjs-react-fullstack/skills_common/mcp-guide/references/client-onboarding.md +0 -82
  140. package/steering/nestjs-react-fullstack/skills_common/mcp-guide/references/debugging.md +0 -81
  141. package/steering/nestjs-react-fullstack/skills_common/mcp-guide/references/mcp-apps.md +0 -197
  142. package/steering/nestjs-react-fullstack/skills_common/mcp-guide/references/tool-authoring.md +0 -249
  143. package/steering/nestjs-react-fullstack/skills_common/server-contacts-contract/SKILL.md +0 -19
@@ -1,179 +0,0 @@
1
- ---
2
- version: alpha
3
- name: flowbite
4
- name_zh: Flowbite
5
- description: "教科书式 Tailwind 营销/应用风 DSM:蓝色 CTA(blue-700,hover 800) + gray-900 大标题 + 规整 8px 圆角 + Inter 字体;组件用 Flowbite canonical class 组合书写,交互一律 data-attributes 声明式(不手写 JS);暗色模式全程 dark: 前缀成对;务实、快速、可深浅切换。"
6
-
7
- colors:
8
- primary: "#1d4ed8"
9
- primary-hover: "#1e40af"
10
- heading: "#111827"
11
- foreground: "#4b5563"
12
- surface-50: "#f9fafb"
13
- surface-100: "#f3f4f6"
14
- border: "#e5e7eb"
15
- input: "#d1d5db"
16
- success: "#047857"
17
- danger: "#be123c"
18
- warning: "#f97316"
19
- badge-bg: "#dbeafe"
20
- badge-text: "#1e40af"
21
-
22
- typography:
23
- heading:
24
- fontFamily: 'Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif'
25
- fontWeight: 800
26
- letterSpacing: "-0.025em"
27
- body:
28
- fontFamily: 'Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif'
29
- fontSize: 14px
30
- fontWeight: 400
31
-
32
- rounded:
33
- xs: 4px
34
- sm: 6px
35
- default: 8px
36
- base: 12px
37
- lg: 16px
38
-
39
- spacing:
40
- section-y: 32px
41
- section-y-lg: 64px
42
- card-padding: 24px
43
-
44
- components:
45
- button:
46
- background: "{colors.primary}"
47
- description: "主按钮 canonical class:text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5(bg-blue-700 = {colors.primary}、hover = {colors.primary-hover})。"
48
- button-secondary:
49
- description: "次按钮:白底 border border-gray-200 text-gray-900 hover:bg-gray-100(边 = {colors.border})。"
50
- input:
51
- background: "{colors.surface-50}"
52
- description: "bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 p-2.5(底 = {colors.surface-50}、边 = {colors.input})。"
53
- badge:
54
- background: "{colors.badge-bg}"
55
- color: "{colors.badge-text}"
56
- description: "bg-blue-100 text-blue-800 text-xs font-medium px-2.5 py-0.5 rounded-sm(底 = {colors.badge-bg}、字 = {colors.badge-text};状态换色族)。"
57
- card:
58
- border: "1px solid {colors.border}"
59
- description: "bg-white border border-gray-200 rounded-lg shadow-sm p-6(边 = {colors.border}、内距见 spacing.card-padding)。"
60
-
61
- anchors:
62
- - id: blue-cta
63
- type: token
64
- desc: "主按钮/链接用品牌蓝(见 colors.primary),hover 加深;不混用多个蓝"
65
- - id: tailwind-canonical-classes
66
- type: pattern
67
- desc: "组件用 Flowbite canonical class 组合书写,不自造与之重复的组件样式"
68
- - id: rounded-language
69
- type: token
70
- desc: "规整圆角语言,按钮/输入/卡片统一中圆角(见 rounded.default)"
71
- - id: dark-mode-pairs
72
- type: pattern
73
- desc: "暗色模式全程 dark: 前缀成对书写,浅深两态同时给出"
74
- - id: data-attribute-interactions
75
- type: component
76
- desc: "Modal/Dropdown/Drawer/Tooltip 用 data-attributes 声明式,不手写 JS"
77
- - id: adaptable-page-composition
78
- type: pattern
79
- desc: "按产品需求组合 Flowbite 组件,营销页和后台示例只提供组件用法,不固定页面骨架"
80
-
81
- gaps:
82
- - "Pro 付费区块:不纳入(许可限制),开源项目禁止复制 Pro 代码"
83
- - "官方另有 minimal/enterprise/playful/mono 四套主题,换主题 = 换语义变量映射;此处只给 default 主题的映射值"
84
- - "暗色映射:heading dark:white、foreground dark:gray-400、边框 dark:gray-800 等 dark 侧值源以 Tailwind scale 给出,此处未逐一展开为 hex"
85
- ---
86
-
87
- ## Overview
88
-
89
- 教科书式的 Tailwind 营销/应用风:蓝色 CTA、gray-900 大标题、规整 8px 圆角。务实、快速、可深浅切换,单文件 HTML 原型到工程化 admin dashboard 都能覆盖。
90
-
91
- **One-liner:** 蓝 CTA + Inter 大标题 + 规整圆角的 Tailwind 教科书风。
92
- **Keywords:** Tailwind · 营销页 · CTA · 暗色模式 · 声明式交互
93
- **Analogy:** 一套 Flowbite 官方落地页 + admin dashboard:蓝按钮 + 特性卡 + 定价表。
94
-
95
- ## Colors
96
-
97
- default 主题的语义层,映射到 Tailwind 调色板;换主题即换映射。
98
-
99
- - **品牌 `colors.primary` `#1d4ed8`(blue-700)** / **hover `colors.primary-hover` `#1e40af`(blue-800)** — 主按钮/链接。
100
- - **标题 `colors.heading` `#111827`(gray-900,dark: white)** — 大标题。
101
- - **正文 `colors.foreground` `#4b5563`(gray-600,dark: gray-400)** — 正文。
102
- - **次要底 `colors.surface-50` `#f9fafb`(gray-50)** / **`colors.surface-100` `#f3f4f6`(gray-100)** — 区块/输入底。
103
- - **边框 `colors.border` `#e5e7eb`(gray-200,dark: gray-800)** / **输入边 `colors.input` `#d1d5db`(gray-300)** — 结构线。
104
- - **成功 `colors.success` `#047857`(emerald-700)** / **危险 `colors.danger` `#be123c`(rose-700)** / **警告 `colors.warning` `#f97316`(orange-500)** — 状态色(各配 50 淡底)。
105
- - **徽章 `colors.badge-bg` `#dbeafe`(blue-100)** / **`colors.badge-text` `#1e40af`(blue-800)** — 状态徽章。
106
-
107
- **用色原则:** 不混用多个蓝;暗色模式全程 `dark:` 前缀成对写,浅深两态同时给出。
108
-
109
- ## Typography
110
-
111
- Inter 承载全部角色,大标题 font-extrabold + tracking-tight,中文用 Noto Sans SC 兜底。
112
-
113
- - **@import(HARD REQUIREMENT / 禁止替换,原样写入全局样式首行):**
114
- `@import url('https://miaoda.feishu.cn/fonts/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');`
115
- - **字体栈:** `Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif` —— 拉丁用 Inter(几何无衬线),中文用 Noto Sans SC(气质相近),系统字体末位保底。
116
-
117
- | 角色 | Size | Weight | Letter-spacing | 用法 |
118
- |---|---|---|---|---|
119
- | heading | text-4xl~5xl | 800(extrabold) | -0.025em(tracking-tight) | Hero 大标题 |
120
- | body | 14px(text-sm) | 400 | — | 正文 |
121
-
122
- **字体规则:**
123
- - Hero 标题用 `text-4xl~5xl font-extrabold tracking-tight`。
124
- - 中文标题回退到 Noto Sans SC 900 时 line-height ≥1.05、正文 ≥1.5,中文场景负字距清零(tracking-tight 仅作用于拉丁)。
125
-
126
- ## Layout
127
-
128
- 按实际任务组合 Flowbite 组件,节区纵向留白规整。
129
-
130
- - **营销页与后台:** Navbar、Hero、特性卡、定价、FAQ、Footer、侧栏和卡片栅格都是可选组件,不要求成套出现或保持示例顺序。
131
- - **节区间距:** 纵向 `py-8 lg:py-16`(见 spacing.section-y / spacing.section-y-lg)。
132
- - **卡片内距:** `p-6`(见 spacing.card-padding)。
133
-
134
- ## Elevation & Depth
135
-
136
- 层级靠卡片 `shadow-sm` 轻投影 + `colors.border` 1px 描边 + `colors.surface-50/100` 浅底分区;不堆叠重投影,深度克制。
137
-
138
- ## Shapes
139
-
140
- 规整圆角语言,按钮/输入/卡片统一中圆角。
141
-
142
- - **Radius:** xs 4px(rounded.xs) · sm 6px(rounded.sm) · default 8px(rounded.default) · base 12px(rounded.base) · lg 16px(rounded.lg)。
143
- - **Borders:** 1px `colors.border`(卡片/次按钮),输入用 `colors.input`。
144
-
145
- ## Components
146
-
147
- canonical class 写法,原样保留:
148
-
149
- - **button(主):** `text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5`(bg-blue-700 = {colors.primary}、hover = {colors.primary-hover})。
150
- - **button-secondary(次):** 白底 `border border-gray-200 text-gray-900 hover:bg-gray-100`(边 = {colors.border})。
151
- - **input:** `bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 p-2.5`(底 = {colors.surface-50}、边 = {colors.input})。
152
- - **badge:** `bg-blue-100 text-blue-800 text-xs font-medium px-2.5 py-0.5 rounded-sm`(底 = {colors.badge-bg}、字 = {colors.badge-text};状态换色族)。
153
- - **card:** `bg-white border border-gray-200 rounded-lg shadow-sm p-6`(边 = {colors.border}、内距见 spacing.card-padding)。
154
- - **交互组件(Modal/Dropdown/Drawer/Tooltip):** 用 data-attributes(`data-modal-target` 等)声明式驱动,不手写 JS。
155
-
156
- ## Do's and Don'ts
157
-
158
- **Do:**
159
- - 暗色模式全程 `dark:` 前缀成对写。
160
- - 节区纵向 `py-16`。
161
- - 图标用 Flowbite Icons / Heroicons。
162
-
163
- **Don't:**
164
- - 别自造与 Flowbite 重复的组件样式。
165
- - 别把 Pro 区块代码复制进开源项目(付费许可)。
166
- - 别混用多个蓝。
167
-
168
- ## Hard Rules
169
-
170
- - 组件优先用 Flowbite canonical class 组合,禁止自造与之重复的组件样式。
171
- - 交互组件(Modal/Dropdown/Drawer/Tooltip)一律 data-attributes 声明式,禁止手写 JS。
172
- - 暗色模式必须 `dark:` 前缀成对书写,浅深两态齐全。
173
- - 品牌蓝只用 `colors.primary` 一种,禁止一页混用多个蓝。
174
- - 禁止把 Pro 付费区块代码复制进开源(MIT)项目。
175
-
176
- ## Exceptions
177
-
178
- - 官方另有 minimal / enterprise / playful / mono 四套主题:切换主题即整体替换 `colors` 语义映射,不视为对 default 主题的违例。
179
- - 单文件 HTML 原型允许直接用 CDN 两行(jsdelivr flowbite.min.css + flowbite.min.js)运行,免 npm 构建。
@@ -1,215 +0,0 @@
1
- ---
2
- version: alpha
3
- name: handwritten-sketch
4
- name_zh: 手绘草稿
5
- description: 手绘白板笔记风——米黄纸张底(圆点网格纹理)上散落白色卡片,卡片一律有机不规则 wobbly 圆角+3px 墨黑粗边框+纯偏移硬阴影(无模糊),配 Kalam(标题)/Patrick Hand(正文)手写体、透明胶带/图钉/别针物理装饰与卡片微旋转(±0.5~2deg 奇偶交替);标记笔红/钢笔蓝/便利贴黄点缀,黑板反色区块作全页唯一对比锚点。亲和、创意、手工感。
6
- colors:
7
- background: "#fdfbf7"
8
- card: "#ffffff"
9
- muted: "#e5e0d8"
10
- foreground: "#2d2d2d"
11
- border: "#2d2d2d"
12
- muted-foreground: "rgba(45,45,45,0.6)"
13
- primary: "#ff4d4d"
14
- primary-foreground: "#ffffff"
15
- pen-blue: "#2d5da1"
16
- postit-yellow: "#fff9c4"
17
- highlight-bg: "#fef9c3"
18
- success: "#16a34a"
19
- typography:
20
- marker:
21
- fontFamily: 'Kalam, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", cursive'
22
- fontWeight: 700
23
- usage: 标题/强调标记(Tailwind font-marker)
24
- hand:
25
- fontFamily: '"Patrick Hand", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", cursive'
26
- usage: 正文/描述/列表(Tailwind font-hand)
27
- rounded:
28
- wobbly-1: "255px 15px 225px 15px / 15px 225px 15px 255px"
29
- wobbly-2: "20px 225px 15px 255px / 255px 15px 225px 15px"
30
- wobbly-3: "15px 225px 15px 255px / 255px 15px 225px 15px"
31
- wobbly-4: "225px 15px 225px 15px / 15px 225px 15px 255px"
32
- badge: 9999px
33
- postit: 8px
34
- spacing:
35
- section-gap: 80px
36
- grid-gap: 24px~32px
37
- grid-gap-lg: 48px
38
- container-max: 1024px
39
- container-px: 24px
40
- card-padding: 24px~48px
41
- page-bottom: 80px
42
- components:
43
- wobbly-card:
44
- border: "3px solid {colors.border}"
45
- borderRadius: "{rounded.wobbly-1}(四组预设按 index 轮换)"
46
- boxShadow: "4px 4px 0px 0px {colors.foreground}"
47
- transform: rotate(±0.5~2deg,index 奇偶交替)
48
- variants: "white={colors.card}底 | yellow={colors.postit-yellow}底 | black={colors.foreground}底白字 | blue={colors.pen-blue}底白字"
49
- decoration: tape(透明胶带)/tack(红图钉)/none
50
- section-header:
51
- layout: flex items-center gap-3 mb-8
52
- badge: "{colors.primary} 或 {colors.pen-blue} 底白字图标,border-2 {colors.border},rounded-full,shadow 2px 2px 0 {colors.foreground},rotate(±1~3deg)"
53
- title: "text-4xl font-marker,波浪下划线 decoration-wavy decoration-2 underline-offset-4,{colors.primary} / {colors.pen-blue} 交替"
54
- kpi-card:
55
- base: "wobbly-card p-6,hover:-translate-y-1 hover:shadow(8px 8px 0 {colors.foreground})"
56
- value: "text-5xl font-marker {colors.primary}"
57
- old-value: "text-lg font-hand line-through,foreground 40% 透明度"
58
- mini-chart: "底部迷你水平条形图,border-t-2 dashed 分隔,h-24"
59
- feature-card:
60
- header: "muted/30 底 p-4,border-b-2 dashed {colors.border},圆形图标徽章"
61
- keyword-highlight: "{colors.highlight-bg} px-1"
62
- tag: "bg-white border-2 {colors.border} wobbly 圆角,hover:-rotate-2"
63
- roadmap-card:
64
- connector: "阶段间垂直连接线 w-1 {colors.foreground}"
65
- priority: "P0={colors.primary}底白字 | P1={colors.postit-yellow}底墨字,rounded-full rotate-2"
66
- deadline: "font-hand {colors.pen-blue},bg-white border-2 {colors.border} -rotate-1"
67
- chalkboard-block:
68
- base: "wobbly-card variant=black,p-8~12,rotate(1deg),圆点 SVG 纹理 opacity 0.10 叠加"
69
- keyword: "{colors.postit-yellow} 波浪下划线"
70
- note: 每页最多一处
71
- charts:
72
- palette: "{colors.primary} {colors.muted} {colors.pen-blue} {colors.postit-yellow}"
73
- container: "透明背景继承卡片底色,border-t-2 dashed 分隔,迷你内嵌 h-24(96px)"
74
- tooltip: "{colors.postit-yellow}底,2px {colors.border}边框,硬阴影 4px 4px 0 {colors.foreground},圆角 10px"
75
- axis: "轴标签 Patrick Hand 14px {colors.muted-foreground},网格线 {colors.muted} 虚线,轴刻度隐藏"
76
- legend: "Patrick Hand 14px {colors.foreground},icon=roundRect 14×10,itemGap 16"
77
- anchors:
78
- - id: wobbly-radius
79
- type: pattern
80
- desc: 全部卡片有机不规则圆角(rounded 四组 wobbly 预设按 index 轮换),每张卡片形态各异如手撕纸片
81
- - id: hard-shadow-ink-border
82
- type: token
83
- desc: 纯偏移无模糊硬阴影(见 components.wobbly-card.boxShadow)配粗墨线边框(colors.border),平面插画式深度
84
- - id: handwriting-type
85
- type: token
86
- desc: 标题 Kalam+正文 Patrick Hand 全页手写体(见 typography),无任何无衬线体
87
- - id: physical-decorations
88
- type: component
89
- desc: 透明胶带/红图钉/别针装饰散布卡片顶部,每 Section 一至两处
90
- - id: micro-rotation
91
- type: pattern
92
- desc: 所有卡片微旋转,index 奇偶交替正负方向,白板随意粘贴感
93
- - id: dot-grid-paper
94
- type: pattern
95
- desc: 米黄纸张底色(colors.background)叠加圆点网格纹理(radial-gradient,间距见正文),整页如牛皮纸白板
96
- - id: chalkboard-contrast
97
- type: component
98
- desc: 深色黑板反色区块(components.chalkboard-block)作全页唯一视觉对比锚点
99
- gaps:
100
- - 无 deck 画布/幻灯片专属排版规格(源为单页纵向滚动白板布局,幻灯片场景沿用同一体系)
101
- - 无暗色模式定义
102
- - 无表单控件(input/select 等)规范
103
- exceptions:
104
- - 痛点便签用常规 8px 圆角(rounded.postit)与虚线边框,是唯一非 wobbly 圆角的卡片
105
- - 圆形徽章/优先级标签用全圆(rounded.badge)
106
- - 语义色 colors.success 仅用于成功状态图标,不入主色板
107
- ---
108
-
109
- ## Overview
110
-
111
- 手绘白板笔记 × 便利贴质感 × 有机不规则形态。模拟在大白板/牛皮纸上自由排列的笔记卡片,各内容组可用「图标徽章+波浪下划线大字标题」划分,并以宽松间距营造自然散落的节奏。情绪基调:亲和、创意、手工感、轻松自由。
112
-
113
- ## Colors
114
-
115
- | 角色 | 值 | 用法 |
116
- |-----|-----|-----|
117
- | background | {colors.background} | 页面纸张背景,叠加圆点网格纹理 |
118
- | card | {colors.card} | 卡片白色底;黑板区块上的粉笔白文字也用这个白色值 |
119
- | muted | {colors.muted} | 次级背景、网格点、分隔区域、灰底标签 |
120
- | foreground | {colors.foreground} | 墨水黑:主要文字、硬阴影;黑板区块反转为底色 |
121
- | border | {colors.border} | 墨水黑粗边框与描边(与 foreground 同值) |
122
- | muted-foreground | {colors.muted-foreground} | 次要文字、描述、坐标轴标签 |
123
- | primary | {colors.primary} | 标记笔红:强调数值、重点标记、图钉;每屏 1-2 处 |
124
- | primary-foreground | {colors.primary-foreground} | 压在 primary 红底上的白字(P0 标签、文字选中) |
125
- | pen-blue | {colors.pen-blue} | 钢笔蓝:链接、标签、辅助强调、工时数值 |
126
- | postit-yellow | {colors.postit-yellow} | 便利贴黄:高亮卡片背景、Tooltip 背景 |
127
- | highlight-bg | {colors.highlight-bg} | 行内关键词底色标记 |
128
- | success | {colors.success} | 成功状态图标(仅此用途) |
129
-
130
- 文字选中色:`selection:bg-primary selection:text-white`。
131
-
132
- ## Typography
133
-
134
- 全局样式首行原样写入(HARD REQUIREMENT,禁止替换):
135
-
136
- ```css
137
- @import url('https://fonts.googleapis.com/css2?family=Kalam:wght@700&family=Patrick+Hand&display=swap');
138
- ```
139
-
140
- Kalam/Patrick Hand 为拉丁手写体,无中文字形,fontFamily 已含 CJK 兜底(PingFang SC/Microsoft YaHei/Noto Sans SC,系统字体无需 @import)。
141
-
142
- | 层级 | 样式(Tailwind) | 颜色 |
143
- |-----|-----|-----|
144
- | 页面主标题 | text-3xl font-marker font-bold tracking-wide | foreground |
145
- | Section 标题 | text-4xl font-marker font-bold + 波浪下划线(decoration-wavy decoration-2 underline-offset-4,{colors.primary} / {colors.pen-blue} 交替) | foreground |
146
- | 卡片标题 | text-2xl font-marker font-bold | foreground |
147
- | 列表项标题 | text-xl font-marker font-bold | foreground |
148
- | KPI 数值 | text-5xl font-marker font-bold | primary |
149
- | KPI 旧值 | text-lg font-hand line-through decoration-2 | foreground 40% |
150
- | 正文描述 | text-lg font-hand leading-relaxed | foreground 70% |
151
- | 标签/分类 | text-sm font-bold uppercase tracking-widest | foreground 50% |
152
- | 副标题 | text-lg font-hand | foreground 60% |
153
- | 辅助小字 | text-sm font-hand | foreground 50% |
154
-
155
- ## Layout
156
-
157
- - 内容容器:max-w-5xl(1024px),px-6;Section 间 space-y-20(80px);页底 pb-20。
158
- - 网格 gap-6~gap-8(24~32px),大组件 gap-12(48px);卡片内边距 p-6 或 p-8 md:p-12。
159
- - 标题、导航或状态区若存在,可使用白色 wobbly 卡片、胶带装饰和轻微旋转;是否固定以及放置位置由实际交互决定。
160
- - 痛点便签、指标卡、功能卡、路线图和黑板区块均是可选视觉组件,不构成固定页面顺序,也不要求为无关内容补齐。
161
- - 响应式按卡片内容和任务优先级减少列数;窄屏避免装饰遮挡文字,并适当缩小内边距。
162
- - 滚动条:宽 12px,轨道 background 色,滑块 foreground 色+3px background 色边框+20px 圆角。
163
-
164
- ## Elevation & Depth
165
-
166
- 硬阴影三档,全部纯偏移 0 模糊,颜色一律 foreground:
167
-
168
- | 档位 | 值 |
169
- |-----|-----|
170
- | small | 2px 2px 0px 0px |
171
- | 标准(hard) | 4px 4px 0px 0px |
172
- | extra-large | 8px 8px 0px 0px |
173
-
174
- 层次感 = 粗墨线边框 + 硬阴影 + 微旋转,不用模糊阴影/渐变。Hover 交互:KPI 卡片上浮(-translate-y-1 → xl 阴影,300ms);列表项右移(translate-x-1,阴影消失,边框变 primary);标签 hover:-rotate-2;图标 group-hover rotate-12 或 scale-110;分组标题 hover 变 pen-blue 或 primary。
175
-
176
- ## Shapes
177
-
178
- - 卡片圆角一律 wobbly 四组预设轮换(见 frontmatter rounded);标签/tag 同 wobbly-1;圆形徽章全圆;痛点便签 8px(唯一例外)。
179
- - 边框语言:全局卡片 3px 实线 border;卡片内分区 2px 虚线;列表项 2px 实线;表格行分隔 1px 浅虚线(border 20%);页脚 4px 粗虚线;痛点便签 2px 虚线(primary 或 border)。
180
- - 装饰元素:透明胶带(absolute -top-3 居中,w-24 h-6,灰 30% 透明+backdrop-blur,rotate-1)、图钉(w-4 h-4 圆点,primary 底+2px border 边)、别针(lucide Pin 图标,fill primary,rotate-12,卡片右上角)、圆点背景纹理(radial-gradient,muted 色 1px 点,24px 间距)、黑板纹理(SVG 圆点 pattern,opacity 0.10)、波浪下划线(Section 标题)。
181
- - 动画:transition-all duration-300(卡片)/transition-transform(标签、图标),无入场动画定义。
182
-
183
- ## Components
184
-
185
- 核心组件规格见 frontmatter components(wobbly-card / section-header / kpi-card / feature-card / roadmap-card / chalkboard-block / charts)。补充细节:
186
-
187
- - **WobblyCard**:所有卡片的基座。variant=black 时阴影升级为 extra-large 档。
188
- - **KPI 卡片**:顶部标题(左)+归属标签(右,-rotate-2 白底小标签),中部大数值+单位+删除线旧值+描述,底部虚线分隔迷你条形图。
189
- - **功能卡片**:卡片头 muted 30% 底+虚线下边框,卡片体 p-6 space-y-6,小标题带左侧 {colors.primary} 圆点标记,列表项左侧 ArrowRight 图标(primary,strokeWidth=3)。
190
- - **路线图表格**:表头 font-marker foreground 60% 下边框 2px;行 font-hand text-lg,hover 淡黄底;复选框 w-5 h-5 2px border 边框;负责人标签 muted 30% 底;工时 pen-blue 加粗右对齐。
191
- - **图表(ECharts)**:序列色按 charts.palette 顺序;水平条形用 yAxis category+xAxis value(符合手绘阅读习惯);折线 smooth+areaStyle opacity 0.08;柱状 barWidth 32+不对称圆角(4/10/10/4)+2px border 描边;饼图环形 40%~65%+2px border 描边;雷达/散点同样 muted 网格+border 描边。
192
- - **页脚**:4px 粗虚线上边框,居中引言(font-marker text-3xl,hover:rotate-2),primary 20% 圆条下划线装饰,副文字 hand 体 foreground 50%。
193
-
194
- ## Do's and Don'ts
195
-
196
- - 微旋转通过 index 奇偶切换正负方向,保持视觉韵律;幅度 ±0.5~2deg,不要超过 3deg。
197
- - 装饰元素(胶带/图钉/别针)是点睛之笔:每个 Section 1~2 处,过度堆砌会削弱自然随意感。
198
- - 扩展新组件时延续 wobbly 圆角预设轮换模式。
199
- - 大面积暖白底中插入黑板反色区块可打断视觉疲劳,建议作对比锚点使用。
200
-
201
- ## Hard Rules
202
-
203
- - 全部文字使用 Kalam(标题)/Patrick Hand(正文)手写体,禁止混入其他无衬线/衬线体(CJK 兜底字体除外)。
204
- - 字体 @import 必须原样写入全局样式首行,禁止替换或省略(HARD REQUIREMENT)。
205
- - 所有阴影必须纯偏移硬阴影(0 模糊,foreground 色),禁止 blur 阴影。
206
- - 卡片圆角必须使用 wobbly 四组预设(rounded.wobbly-1~4)轮换,禁止常规 rounded-* 类(Exceptions 列明的除外)。
207
- - 黑板反色区块每页最多一处。
208
- - 卡片必须带 3px border 实线边框,禁止无边框卡片。
209
-
210
- ## Exceptions
211
-
212
- - 痛点便签:常规 8px 圆角+2px 虚线边框(primary 或 border),是唯一非 wobbly 圆角卡片。
213
- - 圆形图标徽章/优先级标签/滚动条滑块:全圆或 20px 常规圆角。
214
- - success 绿仅限成功状态图标,不得用于装饰或强调。
215
- - 透明胶带装饰自带 backdrop-blur,是唯一允许的模糊效果(不属于阴影)。