@stacksjs/defaults 0.70.207 → 0.70.208

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 (408) hide show
  1. package/TODO.md +21 -0
  2. package/ai/AGENTS.md +79 -0
  3. package/ai/README.md +45 -0
  4. package/ai/claude/launch.json +12 -0
  5. package/ai/skills/stacks-actions/SKILL.md +128 -0
  6. package/ai/skills/stacks-ai/SKILL.md +276 -0
  7. package/ai/skills/stacks-alias/SKILL.md +94 -0
  8. package/ai/skills/stacks-analytics/SKILL.md +91 -0
  9. package/ai/skills/stacks-api/SKILL.md +738 -0
  10. package/ai/skills/stacks-arrays/SKILL.md +277 -0
  11. package/ai/skills/stacks-auth/SKILL.md +422 -0
  12. package/ai/skills/stacks-auto-imports/SKILL.md +138 -0
  13. package/ai/skills/stacks-brandkit/SKILL.md +811 -0
  14. package/ai/skills/stacks-browse/SKILL.md +127 -0
  15. package/ai/skills/stacks-browse/scripts/browse.ts +492 -0
  16. package/ai/skills/stacks-browser/SKILL.md +145 -0
  17. package/ai/skills/stacks-buddy/SKILL.md +676 -0
  18. package/ai/skills/stacks-build/SKILL.md +163 -0
  19. package/ai/skills/stacks-cache/SKILL.md +125 -0
  20. package/ai/skills/stacks-calendar/SKILL.md +113 -0
  21. package/ai/skills/stacks-chat/SKILL.md +371 -0
  22. package/ai/skills/stacks-cli/SKILL.md +112 -0
  23. package/ai/skills/stacks-cloud/SKILL.md +192 -0
  24. package/ai/skills/stacks-cms/SKILL.md +217 -0
  25. package/ai/skills/stacks-collections/SKILL.md +82 -0
  26. package/ai/skills/stacks-commerce/SKILL.md +114 -0
  27. package/ai/skills/stacks-composables/SKILL.md +161 -0
  28. package/ai/skills/stacks-config/SKILL.md +144 -0
  29. package/ai/skills/stacks-configuration/SKILL.md +154 -0
  30. package/ai/skills/stacks-cron/SKILL.md +123 -0
  31. package/ai/skills/stacks-crosswind/SKILL.md +190 -0
  32. package/ai/skills/stacks-dashboard/SKILL.md +173 -0
  33. package/ai/skills/stacks-database/SKILL.md +286 -0
  34. package/ai/skills/stacks-datetime/SKILL.md +269 -0
  35. package/ai/skills/stacks-dependencies/SKILL.md +111 -0
  36. package/ai/skills/stacks-deploy/SKILL.md +102 -0
  37. package/ai/skills/stacks-design-brutalist/SKILL.md +110 -0
  38. package/ai/skills/stacks-design-minimalist/SKILL.md +115 -0
  39. package/ai/skills/stacks-design-output/SKILL.md +55 -0
  40. package/ai/skills/stacks-design-soft/SKILL.md +156 -0
  41. package/ai/skills/stacks-design-taste/SKILL.md +1012 -0
  42. package/ai/skills/stacks-design-taste-codex/SKILL.md +294 -0
  43. package/ai/skills/stacks-desktop/SKILL.md +78 -0
  44. package/ai/skills/stacks-development/SKILL.md +298 -0
  45. package/ai/skills/stacks-dns/SKILL.md +149 -0
  46. package/ai/skills/stacks-docs/SKILL.md +109 -0
  47. package/ai/skills/stacks-email/SKILL.md +236 -0
  48. package/ai/skills/stacks-enums/SKILL.md +100 -0
  49. package/ai/skills/stacks-env/SKILL.md +181 -0
  50. package/ai/skills/stacks-error-handling/SKILL.md +137 -0
  51. package/ai/skills/stacks-events/SKILL.md +228 -0
  52. package/ai/skills/stacks-faker/SKILL.md +158 -0
  53. package/ai/skills/stacks-git/SKILL.md +158 -0
  54. package/ai/skills/stacks-guard/SKILL.md +98 -0
  55. package/ai/skills/stacks-health/SKILL.md +75 -0
  56. package/ai/skills/stacks-http/SKILL.md +316 -0
  57. package/ai/skills/stacks-i18n/SKILL.md +198 -0
  58. package/ai/skills/stacks-image-to-code/SKILL.md +629 -0
  59. package/ai/skills/stacks-imagegen-mobile/SKILL.md +1474 -0
  60. package/ai/skills/stacks-imagegen-web/SKILL.md +998 -0
  61. package/ai/skills/stacks-investigate/SKILL.md +119 -0
  62. package/ai/skills/stacks-jobs/SKILL.md +136 -0
  63. package/ai/skills/stacks-lint/SKILL.md +184 -0
  64. package/ai/skills/stacks-listeners/SKILL.md +99 -0
  65. package/ai/skills/stacks-logging/SKILL.md +78 -0
  66. package/ai/skills/stacks-mail/SKILL.md +120 -0
  67. package/ai/skills/stacks-middleware/SKILL.md +249 -0
  68. package/ai/skills/stacks-migrations/SKILL.md +105 -0
  69. package/ai/skills/stacks-models/SKILL.md +267 -0
  70. package/ai/skills/stacks-new-feature/SKILL.md +206 -0
  71. package/ai/skills/stacks-notifications/SKILL.md +210 -0
  72. package/ai/skills/stacks-objects/SKILL.md +205 -0
  73. package/ai/skills/stacks-office-hours/SKILL.md +134 -0
  74. package/ai/skills/stacks-orm/SKILL.md +342 -0
  75. package/ai/skills/stacks-path/SKILL.md +118 -0
  76. package/ai/skills/stacks-payments/SKILL.md +373 -0
  77. package/ai/skills/stacks-plan-review/SKILL.md +152 -0
  78. package/ai/skills/stacks-plugins/SKILL.md +149 -0
  79. package/ai/skills/stacks-push/SKILL.md +376 -0
  80. package/ai/skills/stacks-query-builder/SKILL.md +128 -0
  81. package/ai/skills/stacks-queue/SKILL.md +559 -0
  82. package/ai/skills/stacks-realtime/SKILL.md +442 -0
  83. package/ai/skills/stacks-redesign/SKILL.md +182 -0
  84. package/ai/skills/stacks-registry/SKILL.md +58 -0
  85. package/ai/skills/stacks-repl/SKILL.md +80 -0
  86. package/ai/skills/stacks-retro/SKILL.md +122 -0
  87. package/ai/skills/stacks-review/SKILL.md +135 -0
  88. package/ai/skills/stacks-router/SKILL.md +231 -0
  89. package/ai/skills/stacks-routes/SKILL.md +105 -0
  90. package/ai/skills/stacks-scaffolding/SKILL.md +162 -0
  91. package/ai/skills/stacks-scheduler/SKILL.md +363 -0
  92. package/ai/skills/stacks-search-engine/SKILL.md +112 -0
  93. package/ai/skills/stacks-security/SKILL.md +129 -0
  94. package/ai/skills/stacks-security-audit/SKILL.md +128 -0
  95. package/ai/skills/stacks-server/SKILL.md +458 -0
  96. package/ai/skills/stacks-shell/SKILL.md +62 -0
  97. package/ai/skills/stacks-slug/SKILL.md +87 -0
  98. package/ai/skills/stacks-sms/SKILL.md +385 -0
  99. package/ai/skills/stacks-socials/SKILL.md +303 -0
  100. package/ai/skills/stacks-storage/SKILL.md +576 -0
  101. package/ai/skills/stacks-strings/SKILL.md +416 -0
  102. package/ai/skills/stacks-stx/SKILL.md +176 -0
  103. package/ai/skills/stacks-technical-diagrams/LICENSE +22 -0
  104. package/ai/skills/stacks-technical-diagrams/SKILL.md +290 -0
  105. package/ai/skills/stacks-technical-diagrams/agents/openai.yaml +4 -0
  106. package/ai/skills/stacks-technical-diagrams/assets/template.html +1252 -0
  107. package/ai/skills/stacks-technical-diagrams/bin/technical-diagrams.mjs +289 -0
  108. package/ai/skills/stacks-technical-diagrams/bunfig.toml +1 -0
  109. package/ai/skills/stacks-technical-diagrams/examples/agent-run.lifecycle.json +64 -0
  110. package/ai/skills/stacks-technical-diagrams/examples/agent-tool-call.workflow.json +88 -0
  111. package/ai/skills/stacks-technical-diagrams/examples/cache-miss-request.sequence.json +75 -0
  112. package/ai/skills/stacks-technical-diagrams/examples/product-analytics.dataflow.json +70 -0
  113. package/ai/skills/stacks-technical-diagrams/examples/web-app.architecture.json +41 -0
  114. package/ai/skills/stacks-technical-diagrams/renderers/architecture/grid.mjs +62 -0
  115. package/ai/skills/stacks-technical-diagrams/renderers/architecture/render-architecture.mjs +371 -0
  116. package/ai/skills/stacks-technical-diagrams/renderers/dataflow/README.md +82 -0
  117. package/ai/skills/stacks-technical-diagrams/renderers/dataflow/render-dataflow.mjs +295 -0
  118. package/ai/skills/stacks-technical-diagrams/renderers/lifecycle/README.md +91 -0
  119. package/ai/skills/stacks-technical-diagrams/renderers/lifecycle/render-lifecycle.mjs +384 -0
  120. package/ai/skills/stacks-technical-diagrams/renderers/sequence/README.md +84 -0
  121. package/ai/skills/stacks-technical-diagrams/renderers/sequence/render-sequence.mjs +257 -0
  122. package/ai/skills/stacks-technical-diagrams/renderers/shared/cli.mjs +42 -0
  123. package/ai/skills/stacks-technical-diagrams/renderers/shared/generated-validators.mjs +13 -0
  124. package/ai/skills/stacks-technical-diagrams/renderers/shared/geometry.mjs +230 -0
  125. package/ai/skills/stacks-technical-diagrams/renderers/shared/layout-report.mjs +40 -0
  126. package/ai/skills/stacks-technical-diagrams/renderers/shared/utils.mjs +88 -0
  127. package/ai/skills/stacks-technical-diagrams/renderers/shared/validator.mjs +40 -0
  128. package/ai/skills/stacks-technical-diagrams/renderers/workflow/README.md +103 -0
  129. package/ai/skills/stacks-technical-diagrams/renderers/workflow/render-workflow.mjs +481 -0
  130. package/ai/skills/stacks-technical-diagrams/schemas/README.md +68 -0
  131. package/ai/skills/stacks-technical-diagrams/schemas/architecture.schema.json +121 -0
  132. package/ai/skills/stacks-technical-diagrams/schemas/common.schema.json +43 -0
  133. package/ai/skills/stacks-technical-diagrams/schemas/dataflow.schema.json +221 -0
  134. package/ai/skills/stacks-technical-diagrams/schemas/lifecycle.schema.json +241 -0
  135. package/ai/skills/stacks-technical-diagrams/schemas/sequence.schema.json +186 -0
  136. package/ai/skills/stacks-technical-diagrams/schemas/workflow.schema.json +332 -0
  137. package/ai/skills/stacks-technical-diagrams/scripts/check-render-output.mjs +297 -0
  138. package/ai/skills/stacks-technical-diagrams/scripts/render-examples.mjs +28 -0
  139. package/ai/skills/stacks-testing/SKILL.md +129 -0
  140. package/ai/skills/stacks-tunnel/SKILL.md +125 -0
  141. package/ai/skills/stacks-types/SKILL.md +178 -0
  142. package/ai/skills/stacks-ui/SKILL.md +246 -0
  143. package/ai/skills/stacks-utils/SKILL.md +444 -0
  144. package/ai/skills/stacks-validation/SKILL.md +371 -0
  145. package/ai/skills/stacks-whois/SKILL.md +315 -0
  146. package/assets/world-map-data.ts +121 -0
  147. package/bootstrap.ts +114 -0
  148. package/docs/api-examples.md +46 -0
  149. package/docs/index.md +24 -0
  150. package/docs/markdown-examples.md +87 -0
  151. package/functions/analytics.ts +97 -0
  152. package/functions/api.ts +143 -0
  153. package/functions/auth.ts +208 -0
  154. package/functions/billing/payments.ts +149 -0
  155. package/functions/blog.ts +120 -0
  156. package/functions/cms/categorizables.ts +107 -0
  157. package/functions/cms/pages.ts +108 -0
  158. package/functions/cms/posts.ts +100 -0
  159. package/functions/cms/taggables.ts +102 -0
  160. package/functions/commerce/coupons.ts +128 -0
  161. package/functions/commerce/customers.ts +128 -0
  162. package/functions/commerce/gift-cards.ts +119 -0
  163. package/functions/commerce/orders.ts +112 -0
  164. package/functions/commerce/payments.ts +119 -0
  165. package/functions/commerce/products/categories.ts +123 -0
  166. package/functions/commerce/products/manufacturers.ts +123 -0
  167. package/functions/commerce/products/products.ts +123 -0
  168. package/functions/commerce/products/reviews.ts +123 -0
  169. package/functions/commerce/products/units.ts +123 -0
  170. package/functions/commerce/products/variants.ts +123 -0
  171. package/functions/commerce/shippings/delivery-routes.ts +123 -0
  172. package/functions/commerce/shippings/digital-deliveries.ts +119 -0
  173. package/functions/commerce/shippings/drivers.ts +123 -0
  174. package/functions/commerce/shippings/license-keys.ts +123 -0
  175. package/functions/commerce/shippings/shipping-methods.ts +123 -0
  176. package/functions/commerce/shippings/shipping-rates.ts +119 -0
  177. package/functions/commerce/shippings/shipping-zones.ts +119 -0
  178. package/functions/commerce/taxes.ts +119 -0
  179. package/functions/commerce/waitlist/products.ts +123 -0
  180. package/functions/commerce/waitlist/restaurants.ts +123 -0
  181. package/functions/craft.ts +107 -0
  182. package/functions/dashboard.ts +153 -0
  183. package/functions/inbox.ts +95 -0
  184. package/functions/jobs.ts +86 -0
  185. package/functions/monitoring/errors.ts +295 -0
  186. package/functions/queue.ts +111 -0
  187. package/functions/realtime/websockets.ts +96 -0
  188. package/functions/realtime.ts +52 -0
  189. package/functions/releases.ts +49 -0
  190. package/functions/search.ts +126 -0
  191. package/functions/toasts.ts +95 -0
  192. package/functions/uploads.ts +216 -0
  193. package/ide/.gitignore +4 -0
  194. package/ide/cursor/rules/auto-imports.mdc +574 -0
  195. package/ide/cursor/rules/code-style.mdc +12 -0
  196. package/ide/cursor/rules/documentation.mdc +9 -0
  197. package/ide/cursor/rules/error-handling-validation.mdc +11 -0
  198. package/ide/cursor/rules/key-conventions.mdc +11 -0
  199. package/ide/cursor/rules/project-structure.mdc +169 -0
  200. package/ide/cursor/rules/readme.mdc +318 -0
  201. package/ide/cursor/rules/syntax-formatting.mdc +9 -0
  202. package/ide/cursor/rules/testing.mdc +10 -0
  203. package/ide/cursor/rules/typescript.mdc +9 -0
  204. package/ide/cursor/rules/ui-styling.mdc +0 -0
  205. package/ide/dictionary.txt +397 -0
  206. package/ide/jetbrains/.fleet/settings.json +4 -0
  207. package/ide/jetbrains/.idea/.gitignore +5 -0
  208. package/ide/jetbrains/.idea/.name +1 -0
  209. package/ide/jetbrains/.idea/inspectionProfiles/Project_Default.xml +6 -0
  210. package/ide/jetbrains/.idea/jsLinters/eslint.xml +7 -0
  211. package/ide/jetbrains/.idea/modules.xml +8 -0
  212. package/ide/jetbrains/.idea/stacks.iml +22 -0
  213. package/ide/jetbrains/.idea/vcs.xml +6 -0
  214. package/ide/jetbrains/.idea/webResources.xml +14 -0
  215. package/ide/jetbrains/IntelliJ IDEA Global Settings +0 -0
  216. package/ide/jetbrains/installed.txt +4 -0
  217. package/ide/jetbrains/options/github-copilot.xml +5 -0
  218. package/ide/jetbrains/options/nodejs.xml +7 -0
  219. package/ide/jetbrains/options/templates.xml +124 -0
  220. package/ide/jetbrains/templates/JavaScript.xml +6 -0
  221. package/ide/jetbrains/templates/Stacks.xml +8 -0
  222. package/ide/vscode/.vscode/README.md +23 -0
  223. package/ide/vscode/.vscode/extensions.json +5 -0
  224. package/ide/vscode/.vscode/settings.json +176 -0
  225. package/ide/vscode/.vscode/stacks.code-snippets +181 -0
  226. package/ide/vscode/LICENSE.md +21 -0
  227. package/ide/vscode/README.md +36 -0
  228. package/ide/vscode/logo.png +0 -0
  229. package/ide/vscode/package.json +79 -0
  230. package/ide/zed/.zed/settings.json +139 -0
  231. package/lang/README.md +28 -0
  232. package/lang/de.yml +14 -0
  233. package/lang/en.yml +15 -0
  234. package/package.json +19 -3
  235. package/project/bootstrap +161 -0
  236. package/project/buddy +175 -0
  237. package/project/storage/framework/tsconfig.app.json +50 -0
  238. package/project/storage/framework/tsconfig.base.json +58 -0
  239. package/routes/core.ts +78 -0
  240. package/routes/dashboard-api.ts +233 -0
  241. package/routes/dashboard.ts +739 -0
  242. package/routes/email.ts +129 -0
  243. package/stores/[name].stx +16 -0
  244. package/stores/git.ts +71 -0
  245. package/stores/payment.ts +474 -0
  246. package/stores/queue.ts +43 -0
  247. package/stores/user.ts +29 -0
  248. package/stx-components-plugin.ts +25 -0
  249. package/styles/design-tokens.css +597 -0
  250. package/types/dashboard.ts +70 -0
  251. package/types/defaults.ts +438 -0
  252. package/vcs/github/CODE_OF_CONDUCT.md +83 -0
  253. package/vcs/github/CONTRIBUTING.md +187 -0
  254. package/vcs/github/EXPLANATIONS.md +41 -0
  255. package/vcs/github/FUNDING.yml +1 -0
  256. package/vcs/github/ISSUE_TEMPLATE/bug_report.yml +49 -0
  257. package/vcs/github/ISSUE_TEMPLATE/config.yml +10 -0
  258. package/vcs/github/ISSUE_TEMPLATE/feature_request.yml +44 -0
  259. package/vcs/github/SECURITY.md +70 -0
  260. package/vcs/github/renovate.json +5 -0
  261. package/vcs/github/stale.yml +14 -0
  262. package/vcs/github/workflows/README.md +16 -0
  263. package/vcs/github/workflows/ci.yml +114 -0
  264. package/vcs/github/workflows/export-size.yml +25 -0
  265. package/vcs/github/workflows/labeler.yml +13 -0
  266. package/vcs/github/workflows/release.yml +219 -0
  267. package/views/[...all].stx +8 -0
  268. package/views/about.md +3 -0
  269. package/views/auth/login.stx +1 -0
  270. package/views/auth/signup.stx +85 -0
  271. package/views/dashboard/.discovered-models.json +542 -0
  272. package/views/dashboard/AUDIT.md +904 -0
  273. package/views/dashboard/[...all].stx +89 -0
  274. package/views/dashboard/access-tokens/index.stx +177 -0
  275. package/views/dashboard/actions/index.stx +129 -0
  276. package/views/dashboard/analytics/blog/index.stx +356 -0
  277. package/views/dashboard/analytics/browsers/index.stx +263 -0
  278. package/views/dashboard/analytics/commerce/sales/index.stx +329 -0
  279. package/views/dashboard/analytics/commerce/web/index.stx +379 -0
  280. package/views/dashboard/analytics/countries/index.stx +289 -0
  281. package/views/dashboard/analytics/devices/index.stx +305 -0
  282. package/views/dashboard/analytics/events/index.stx +536 -0
  283. package/views/dashboard/analytics/index.stx +88 -0
  284. package/views/dashboard/analytics/marketing/index.stx +315 -0
  285. package/views/dashboard/analytics/pages/index.stx +271 -0
  286. package/views/dashboard/analytics/referrers/index.stx +319 -0
  287. package/views/dashboard/analytics/web/index.stx +356 -0
  288. package/views/dashboard/buddy/index.stx +198 -0
  289. package/views/dashboard/ci/index.stx +462 -0
  290. package/views/dashboard/cloud/index.stx +452 -0
  291. package/views/dashboard/commands/index.stx +295 -0
  292. package/views/dashboard/commerce/categories/index.stx +406 -0
  293. package/views/dashboard/commerce/coupons/index.stx +485 -0
  294. package/views/dashboard/commerce/customers/index.stx +410 -0
  295. package/views/dashboard/commerce/dashboard/index.stx +287 -0
  296. package/views/dashboard/commerce/delivery/delivery-routes.stx +305 -0
  297. package/views/dashboard/commerce/delivery/digital-delivery.stx +332 -0
  298. package/views/dashboard/commerce/delivery/drivers.stx +397 -0
  299. package/views/dashboard/commerce/delivery/index.stx +18 -0
  300. package/views/dashboard/commerce/delivery/license-keys.stx +380 -0
  301. package/views/dashboard/commerce/delivery/shipping-methods.stx +346 -0
  302. package/views/dashboard/commerce/delivery/shipping-rates.stx +338 -0
  303. package/views/dashboard/commerce/delivery/shipping-zones.stx +302 -0
  304. package/views/dashboard/commerce/delivery/tabs.ts +25 -0
  305. package/views/dashboard/commerce/gift-cards/index.stx +561 -0
  306. package/views/dashboard/commerce/manufacturers/index.stx +308 -0
  307. package/views/dashboard/commerce/orders/index.stx +247 -0
  308. package/views/dashboard/commerce/payments/index.stx +535 -0
  309. package/views/dashboard/commerce/pos/index.stx +653 -0
  310. package/views/dashboard/commerce/printers/devices/index.stx +273 -0
  311. package/views/dashboard/commerce/printers/receipts/index.stx +308 -0
  312. package/views/dashboard/commerce/products/detail.stx +563 -0
  313. package/views/dashboard/commerce/products/index.stx +370 -0
  314. package/views/dashboard/commerce/reviews/index.stx +656 -0
  315. package/views/dashboard/commerce/reviews/index.ts +0 -0
  316. package/views/dashboard/commerce/taxes/index.stx +377 -0
  317. package/views/dashboard/commerce/units/index.stx +317 -0
  318. package/views/dashboard/commerce/variants/index.stx +319 -0
  319. package/views/dashboard/commerce/waitlist/products.stx +942 -0
  320. package/views/dashboard/commerce/waitlist/restaurant.stx +1024 -0
  321. package/views/dashboard/components/index.stx +330 -0
  322. package/views/dashboard/composables/index.ts +19 -0
  323. package/views/dashboard/composables/useChart.ts +77 -0
  324. package/views/dashboard/composables/useNavigation.ts +99 -0
  325. package/views/dashboard/composables/useRole.ts +58 -0
  326. package/views/dashboard/composables/useTheme.ts +74 -0
  327. package/views/dashboard/content/authors/index.stx +171 -0
  328. package/views/dashboard/content/blog/index.stx +493 -0
  329. package/views/dashboard/content/categories/index.stx +169 -0
  330. package/views/dashboard/content/comments/index.stx +189 -0
  331. package/views/dashboard/content/dashboard.stx +383 -0
  332. package/views/dashboard/content/files/index.stx +706 -0
  333. package/views/dashboard/content/pages/index.stx +174 -0
  334. package/views/dashboard/content/posts/index.stx +269 -0
  335. package/views/dashboard/content/seo/index.stx +240 -0
  336. package/views/dashboard/content/tags/index.stx +167 -0
  337. package/views/dashboard/data/activity/index.stx +261 -0
  338. package/views/dashboard/data/dashboard/index.stx +116 -0
  339. package/views/dashboard/data/subscribers.stx +270 -0
  340. package/views/dashboard/data/teams.stx +275 -0
  341. package/views/dashboard/data/users.stx +279 -0
  342. package/views/dashboard/dependencies/index.stx +178 -0
  343. package/views/dashboard/deployments/[id].stx +234 -0
  344. package/views/dashboard/deployments/index.stx +9 -0
  345. package/views/dashboard/dns/index.stx +163 -0
  346. package/views/dashboard/environment/index.stx +283 -0
  347. package/views/dashboard/errors/index.stx +274 -0
  348. package/views/dashboard/forgot-password.stx +57 -0
  349. package/views/dashboard/functions/index.stx +159 -0
  350. package/views/dashboard/health/index.stx +248 -0
  351. package/views/dashboard/inbox/activity.stx +350 -0
  352. package/views/dashboard/inbox/index.stx +452 -0
  353. package/views/dashboard/inbox/settings.stx +290 -0
  354. package/views/dashboard/index.stx +252 -0
  355. package/views/dashboard/insights/index.stx +529 -0
  356. package/views/dashboard/jobs/[id].stx +430 -0
  357. package/views/dashboard/jobs/history.stx +222 -0
  358. package/views/dashboard/jobs/index.stx +214 -0
  359. package/views/dashboard/kanban/[id].stx +899 -0
  360. package/views/dashboard/kanban/index.stx +260 -0
  361. package/views/dashboard/layouts/default.stx +565 -0
  362. package/views/dashboard/layouts/guest.stx +10 -0
  363. package/views/dashboard/login.stx +48 -0
  364. package/views/dashboard/logs/index.stx +540 -0
  365. package/views/dashboard/mailboxes/index.stx +149 -0
  366. package/views/dashboard/management/permissions/index.stx +490 -0
  367. package/views/dashboard/marketing/campaigns/index.stx +604 -0
  368. package/views/dashboard/marketing/lists/index.stx +514 -0
  369. package/views/dashboard/marketing/reviews/index.stx +475 -0
  370. package/views/dashboard/marketing/social-posts/index.stx +560 -0
  371. package/views/dashboard/models/[model].stx +195 -0
  372. package/views/dashboard/models/index.stx +159 -0
  373. package/views/dashboard/monitoring/errors/index.stx +415 -0
  374. package/views/dashboard/notifications/dashboard.stx +383 -0
  375. package/views/dashboard/notifications/email.stx +336 -0
  376. package/views/dashboard/notifications/history.stx +373 -0
  377. package/views/dashboard/notifications/sms.stx +332 -0
  378. package/views/dashboard/packages/index.stx +195 -0
  379. package/views/dashboard/queries/[id].stx +381 -0
  380. package/views/dashboard/queries/history.stx +227 -0
  381. package/views/dashboard/queries/index.stx +335 -0
  382. package/views/dashboard/queries/slow.stx +318 -0
  383. package/views/dashboard/queue/index.stx +427 -0
  384. package/views/dashboard/realtime/index.stx +429 -0
  385. package/views/dashboard/register.stx +46 -0
  386. package/views/dashboard/releases/index.stx +389 -0
  387. package/views/dashboard/requests/index.stx +462 -0
  388. package/views/dashboard/serverless/index.stx +475 -0
  389. package/views/dashboard/servers/[id].stx +299 -0
  390. package/views/dashboard/servers/index.stx +483 -0
  391. package/views/dashboard/settings/billing.stx +50 -0
  392. package/views/dashboard/settings/index.stx +256 -0
  393. package/views/dashboard/settings/mail.stx +252 -0
  394. package/views/dashboard/stores/auth.ts +123 -0
  395. package/views/dashboard/stores/ci.ts +342 -0
  396. package/views/dashboard/stores/index.ts +129 -0
  397. package/views/dashboard/stores/kanban.ts +723 -0
  398. package/views/dashboard/stores/rbac.ts +350 -0
  399. package/views/dashboard/stx.config.ts +34 -0
  400. package/views/dashboard/teams/[id].stx +170 -0
  401. package/views/forum/category.stx +92 -0
  402. package/views/forum/index.stx +209 -0
  403. package/views/forum/new-topic.stx +113 -0
  404. package/views/forum/profile.stx +1 -0
  405. package/views/forum/topic.stx +143 -0
  406. package/views/hello-world/[name].stx +47 -0
  407. package/views/index.stx +21 -0
  408. package/views/system-tray/index.stx +147 -0
@@ -0,0 +1,1012 @@
1
+ ---
2
+ name: stacks-design-taste
3
+ description: Use when designing or building a landing page, portfolio, hero, marketing section, or redesign in a Stacks app, or when the ask is anti-slop / premium frontend work. Reads the brief, infers the right direction, and ships stx + Crosswind interfaces that do not look templated, with a strict pre-flight check.
4
+ license: MIT
5
+ compatibility: Bun >= 1.3.0, TypeScript
6
+ allowed-tools: Read Edit Write Bash Grep Glob
7
+ ---
8
+
9
+ # Stacks Design Taste: Anti-Slop Frontend Skill
10
+
11
+ Related skills: [stacks-stx](../stacks-stx) (templating, directives, signals, SSR/hydration), [stacks-composables](../stacks-composables) (full composable reference), [stacks-crosswind](../stacks-crosswind) (utilities, dark mode, theming), [stacks-ui](../stacks-ui) (Craft native + headless components, Transition). Companions: [stacks-design-soft](../stacks-design-soft), [stacks-design-minimalist](../stacks-design-minimalist), [stacks-design-brutalist](../stacks-design-brutalist), [stacks-redesign](../stacks-redesign), [stacks-design-output](../stacks-design-output).
12
+
13
+ > Landing pages, portfolios, and redesigns in Stacks. Not dashboards, not data tables, not multi-step product UI (see Section 13).
14
+ > Every rule below is **contextual**. None of it fires automatically. First read the brief, then pull only what fits.
15
+ > Everything is built with **stx** templates + **Crosswind** utilities + **stx composables**. No JSX, no external motion library.
16
+
17
+ ---
18
+
19
+ ## 0. BRIEF INFERENCE (Read the Room Before Anything Else)
20
+
21
+ Before touching code or tweaking dials, **infer what the user actually wants**. Most LLM design output is bad because the model jumps to a default aesthetic instead of reading the room.
22
+
23
+ ### 0.A Read these signals first
24
+ 1. **Page kind** - landing (SaaS / consumer / agency / event), portfolio (dev / designer / creative studio), redesign (preserve vs overhaul), editorial / blog.
25
+ 2. **Vibe words** the user used - "minimalist", "calm", "Linear-style", "Awwwards", "brutalist", "premium consumer", "Apple-y", "playful", "serious B2B", "editorial", "agency-y", "glassy", "dark tech".
26
+ 3. **Reference signals** - URLs they linked, screenshots they pasted, products they named, brands they're competing with.
27
+ 4. **Audience** - B2B procurement panel vs. design-conscious consumer vs. recruiter scanning a portfolio. The audience picks the aesthetic, not your taste.
28
+ 5. **Brand assets that already exist** - logo, color, type, photography. For redesigns, these are starting material, not optional input (see Section 11).
29
+ 6. **Quiet constraints** - accessibility-first audiences, public-sector, regulated industries, trust-first commerce, kids' products. These constraints OVERRIDE aesthetic preference.
30
+
31
+ ### 0.B Output a one-line "Design Read" before generating
32
+ Before any code, state in one line: **"Reading this as: \<page kind> for \<audience>, with a \<vibe> language, leaning toward \<aesthetic family> built on the Stacks stack."**
33
+
34
+ Example reads:
35
+ - *"Reading this as: B2B SaaS landing for technical buyers, with a Linear-style minimalist language, leaning toward Crosswind utilities + Geist + restrained CSS motion."*
36
+ - *"Reading this as: solo designer portfolio for hiring managers, with an editorial / kinetic-type language, leaning toward Crosswind + scroll-driven CSS animation + custom typography."*
37
+ - *"Reading this as: redesign of a trust-first service site, leaning toward high-contrast neutral system, accessibility-first, minimal motion."*
38
+
39
+ ### 0.C If the brief is ambiguous, ask one question, do not guess
40
+ Ask exactly **one** clarifying question - never a multi-question dump - and only when the design read genuinely diverges. Example: *"Should this feel closer to Linear-clean or Awwwards-experimental?"*
41
+
42
+ If you can confidently infer from context, **do not ask**. Just declare the design read and proceed.
43
+
44
+ ### 0.D Anti-Default Discipline
45
+ Do not default to: AI-purple gradients, centered hero over dark mesh, three equal feature cards, generic glassmorphism on everything, infinite-loop micro-animations everywhere, Inter + slate-900. These are the LLM defaults. Reach past them deliberately based on the design read.
46
+
47
+ ---
48
+
49
+ ## 1. THE THREE DIALS (Core Configuration)
50
+
51
+ After the design read, set three dials. Every layout, motion, and density decision below is gated by these.
52
+
53
+ * **`DESIGN_VARIANCE: 8`** - 1 = Perfect Symmetry, 10 = Artsy Chaos
54
+ * **`MOTION_INTENSITY: 6`** - 1 = Static, 10 = Cinematic / Physics
55
+ * **`VISUAL_DENSITY: 4`** - 1 = Art Gallery / Airy, 10 = Cockpit / Packed Data
56
+
57
+ **Baseline:** `8 / 6 / 4`. Use these unless the design read overrides them. Do not ask the user to edit this file - overrides happen conversationally.
58
+
59
+ ### 1.A Dial Inference (design read -> dial values)
60
+ | Signal | VARIANCE | MOTION | DENSITY |
61
+ |---|---|---|---|
62
+ | "minimalist / clean / calm / editorial / Linear-style" | 5-6 | 3-4 | 2-3 |
63
+ | "premium consumer / Apple-y / luxury / brand" | 7-8 | 5-7 | 3-4 |
64
+ | "playful / wild / Dribbble / Awwwards / experimental / agency" | 9-10 | 8-10 | 3-4 |
65
+ | "landing page / portfolio / marketing site (default)" | 7-9 | 6-8 | 3-5 |
66
+ | "trust-first / public-sector / regulated / accessibility-critical" | 3-4 | 2-3 | 4-5 |
67
+ | "redesign - preserve" | match existing | +1 | match existing |
68
+ | "redesign - overhaul" | +2 | +2 | match existing |
69
+
70
+ ### 1.B Use-Case Presets
71
+ | Use case | VARIANCE | MOTION | DENSITY |
72
+ |---|---|---|---|
73
+ | Landing (SaaS, mainstream) | 7 | 6 | 4 |
74
+ | Landing (Agency / creative) | 9 | 8 | 3 |
75
+ | Landing (Premium consumer) | 7 | 6 | 3 |
76
+ | Portfolio (Designer / studio) | 8 | 7 | 3 |
77
+ | Portfolio (Developer) | 6 | 5 | 4 |
78
+ | Editorial / Blog | 6 | 4 | 3 |
79
+ | Public-sector service | 3 | 2 | 5 |
80
+ | Redesign - preserve | match | match+1 | match |
81
+ | Redesign - overhaul | +2 | +2 | match |
82
+
83
+ ### 1.C How the Dials Drive Output
84
+ Use these (or user-overridden values) as global variables. Cross-references throughout this document refer to these exact variable names - never invent aliases like `LAYOUT_VARIANCE` or `ANIM_LEVEL`.
85
+
86
+ ---
87
+
88
+ ## 2. BRIEF -> FOUNDATION MAP
89
+
90
+ Once you have the design read (Section 0) and dials (Section 1), pick the right foundation. Do not invent CSS for things Stacks already ships. Do not pretend an aesthetic trend is an official system.
91
+
92
+ ### 2.A The Stacks foundation (default for every Stacks app)
93
+ The React skill's "reach for Fluent / Carbon / Material / shadcn" advice does **not** apply in a Stacks app. Your foundation is always:
94
+
95
+ | Layer | What to use | Notes |
96
+ |---|---|---|
97
+ | Components | **Stacks UI** (`@stacksjs/ui`) | Headless primitives (Combobox, Dialog/Modal, Menu, Tabs, Switch, RadioGroup, Popover, Disclosure, Transition) plus **Craft native components** (`craft-button`, `craft-text-input`, `craft-textarea`, `craft-checkbox`, `craft-select`, `craft-modal`). See [stacks-ui](../stacks-ui). |
98
+ | Styling | **Crosswind** utilities | Tailwind-compatible syntax, `dark:` variant, arbitrary values. See [stacks-crosswind](../stacks-crosswind). |
99
+ | Icons | **Iconify** `i-{collection}-{name}` | hugeicons default. See Section 3.C. |
100
+ | Templating | **stx** SFC | `<script>` / `<template>` / `<style>`. See [stacks-stx](../stacks-stx). |
101
+
102
+ **Honesty rule (retargeted):** use the real official thing, do not hand-recreate tokens. In Stacks, the real official thing is **Stacks UI + Crosswind + Iconify**. Do NOT tell the user to `npm install` Fluent, Carbon, Material, Radix, or shadcn into a Stacks app. Do NOT hand-recreate a component that already exists in Stacks UI.
103
+
104
+ **One system per project = the Stacks stack.** External design systems are out of scope unless the user explicitly runs a separate non-Stacks frontend.
105
+
106
+ ### 2.B When the brief is an aesthetic, not a system
107
+ Aesthetic directions have no package. Build them with **native CSS + Crosswind**. Be honest in code comments about what is borrowed inspiration vs. real material.
108
+
109
+ | Aesthetic | Honest implementation (Crosswind + native CSS) |
110
+ |---|---|
111
+ | Glassmorphism / "frosted glass" | `backdrop-filter`, layered borders, highlight overlays. Provide solid-fill fallback for `prefers-reduced-transparency`. See Appendix C. |
112
+ | Bento (Apple-style tile grids) | CSS Grid with mixed cell sizes (`grid grid-cols-*` + row/col spans). No library owns this. |
113
+ | Brutalism | Native CSS, monospace, raw borders. See [stacks-design-brutalist](../stacks-design-brutalist). |
114
+ | Editorial / magazine | Serif type, asymmetric grid, generous whitespace. No library. |
115
+ | Dark tech / hacker | Mono + accent, terminal motifs. No library. |
116
+ | Aurora / mesh gradients | SVG or layered radial gradients in a `<style>` block. No library. |
117
+ | Kinetic typography | Native CSS animations + CSS scroll-driven animations. No motion library (Section 5). |
118
+ | Soft / friendly consumer | Rounded scale, soft shadows. See [stacks-design-soft](../stacks-design-soft). |
119
+ | "Apple Liquid Glass" | Apple documents this for Apple platforms only. **There is no official web CSS package.** Web versions are approximations using `backdrop-filter` + layered borders + highlights. Label clearly as approximation (Appendix C). |
120
+
121
+ ---
122
+
123
+ ## 3. DEFAULT ARCHITECTURE & CONVENTIONS
124
+
125
+ Unless the design read pulls in an aesthetic-specific companion, these are the defaults.
126
+
127
+ ### 3.A Stack
128
+ * **Templating:** **stx** SFC files (`.stx`) with three optional blocks: `<script>`, `<template>` (or bare markup), `<style>`. Pages/views in `resources/views/*.stx`, components in `resources/components/*.stx`, layouts in `resources/layouts/*.stx`.
129
+ * **SERVER vs CLIENT split (the stx equivalent of RSC):** put data fetching, DB access, and secrets in `<script server>` (stripped from the client bundle). Put browser-only behavior (motion, pointer, scroll observers) in `<script client>`. A plain `<script>` runs on both. There is **no `'use client'`** directive - the block type IS the boundary.
130
+ * **INTERACTIVITY ISOLATION:** any component that observes scroll, tracks the pointer, or runs CSS-driven motion keeps its interactive logic in a `<script client>` block. Server rendering stays static.
131
+ * **Styling:** **Crosswind** (Tailwind-compatible utilities). Scoped rules go in the `.stx` `<style>` block; tokens go in CSS custom properties. See [stacks-crosswind](../stacks-crosswind).
132
+ * **Motion:** CSS + composables ONLY. Stacks ships no animation library (Section 5). Never import `motion/react`, `framer-motion`, or `gsap`.
133
+ * **Fonts:** Stacks `fonts` config plus `<link rel="preconnect">` + stylesheet (or self-hosted `@font-face`) in the layout `.stx` `<head>`, always `font-display: swap`. There is **no `next/font`**. See Section 4.1.
134
+
135
+ **HARD BANS inside every stx `<script>` block:** never `var`, never `document.*`, never `window.*`. Use signals, composables, and directives instead (this is a CLAUDE.md rule, not a preference).
136
+
137
+ ### 3.B State & Reactivity
138
+ * Local reactive state uses signals: `state(initial)` (read `count()`, write `count.set(v)` / `count.update(n => n + 1)`), `derived(() => ...)` for computed, `effect(() => ...)` for side effects. Element refs use `useRef('name')`.
139
+ * Translation from React if you are porting: `useState` -> `state`, `useMemo` -> `derived`, `useEffect` -> `effect`, `useRef` -> `useRef`.
140
+ * **NEVER drive continuous values (mouse position, scroll progress, pointer physics, magnetic hover) through a signal you re-read every frame.** Writing signal state on every pointer or scroll frame re-runs reactive effects and collapses on mobile. Instead drive a **CSS custom property** from inside an `effect` (Section 5.D) or let CSS scroll-driven animations do the work with no script at all.
141
+
142
+ ### 3.C Icons
143
+ * **Use Iconify utility classes.** stx ships 200K+ Iconify icons as classes: `<i class="i-hugeicons-{name}"></i>`, or any collection `i-{collection}-{name}` (`i-ph-arrow-right`, `i-tabler-check`). Size and color with Crosswind: `class="h-6 w-6 text-gray-500 i-hugeicons-book-open"`.
144
+ * **Default collection: hugeicons.** Keep **one collection per project**. Standardize stroke weight.
145
+ * **NEVER hand-roll SVG icon paths. NEVER `npm install lucide-react` / `@phosphor-icons/*` / any icon package.** The Iconify classes replace all of that. If a glyph is missing, pull it from another Iconify collection - do not draw paths from scratch.
146
+
147
+ ### 3.D Emoji Policy
148
+ Discouraged by default in code, markup, and visible text. Replace symbols with Iconify glyphs. **Override:** allow emojis only when the user explicitly asks for a playful / chat-style / social-native vibe, and even then use them sparingly with intent.
149
+
150
+ ### 3.E Responsiveness & Layout Mechanics
151
+ * Standardize breakpoints (`sm 640`, `md 768`, `lg 1024`, `xl 1280`, `2xl 1536`).
152
+ * Contain page layouts using `max-w-[1400px] mx-auto` or `max-w-7xl`.
153
+ * **Viewport Stability:** NEVER use `h-screen` for full-height hero sections. ALWAYS use `min-h-[100dvh]` to prevent layout jumping on mobile (iOS Safari address bar).
154
+ * **Grid over Flex-Math:** NEVER use complex flexbox percentage math (`w-[calc(33%-1rem)]`). ALWAYS use CSS Grid (`grid grid-cols-1 md:grid-cols-3 gap-6`).
155
+
156
+ ### 3.F Dependency Verification (mandatory)
157
+ Before importing ANY 3rd-party library, check `package.json`. Most of what you need is already in the Stacks stack (Stacks UI, Crosswind, Iconify, composables) and needs no install. If you genuinely need a missing package, output the install command first. **Never** assume a library exists.
158
+
159
+ ---
160
+
161
+ ## 4. DESIGN ENGINEERING DIRECTIVES (Bias Correction)
162
+
163
+ LLMs default to cliches. Override these defaults proactively. Each rule has a context-aware override path.
164
+
165
+ ### 4.1 Typography
166
+ * **Display / Headlines:** Default `text-4xl md:text-6xl tracking-tighter leading-none`.
167
+ * **Body / Paragraphs:** Default `text-base text-gray-600 leading-relaxed max-w-[65ch]`.
168
+ * **Loading mechanism (Stacks):** declare font metadata in the Stacks `fonts` config, then load in the layout `.stx` `<head>` with `<link rel="preconnect">` + stylesheet, or self-host with `@font-face`. Always `font-display: swap`. There is no `next/font`. Never block render on a webfont.
169
+ * **Sans font choice:**
170
+ * **Discouraged as default:** `Inter`. Pick `Geist`, `Outfit`, `Cabinet Grotesk`, `Satoshi`, or a brand-appropriate serif first.
171
+ * **Override:** Inter is acceptable when the user explicitly asks for a neutral / standard / Linear-style feel, or when the brief is a public-sector / accessibility-first site.
172
+ * **Pairings to know:** `Geist` + `Geist Mono`, `Satoshi` + `JetBrains Mono`, `Cabinet Grotesk` + `Inter Tight`, `GT America` + `IBM Plex Mono`.
173
+
174
+ * **SERIF DISCIPLINE (VERY DISCOURAGED AS DEFAULT):**
175
+ * Serif is **very discouraged as the default font for any project.** "It feels creative / premium / editorial" is NOT a reason to reach for serif. The agent's default mental model that "creative brief = serif" is the single most-tested AI tell in production rounds.
176
+ * **Serif is only acceptable when ONE of these is explicitly true:**
177
+ - The brand brief literally names a serif font, OR
178
+ - The aesthetic family is genuinely editorial / luxury / publication / manuscript / heritage / vintage AND you can articulate why this specific serif fits this specific brand
179
+ * For everything else (creative agency, design studio, modern brand, premium consumer, portfolio, lifestyle), **default sans-serif display** (Geist Display, ABC Diatype, Sohne Breit, Cabinet Grotesk Display, Migra Sans, GT Walsheim, Inter Display, PP Neue Montreal). Sans display fonts are not "boring", they are the default for the same reason black is the default in fashion.
180
+ * **EMPHASIS RULE (related):** When you want to emphasize a word within a headline, use **italic or bold of the SAME font**. Do NOT inject a random serif word into a sans headline (or vice versa) just to add visual interest. Mixed-family emphasis is amateur. Italic/bold emphasis in the same family is the right move.
181
+ * **Specifically BANNED as defaults:** `Fraunces` and `Instrument_Serif` (the two LLM-favorite display serifs).
182
+ * **If a serif is justified** (rare, per the above), rotate from this pool, do NOT reuse the same serif across consecutive projects: PP Editorial New, GT Sectra Display, Cardinal Grotesque, Reckless Neue, Tiempos Headline, Recoleta, Cormorant Garamond, Playfair Display, EB Garamond, IvyPresto, Migra, Editorial Old, Saol Display, Domaine Display, Canela, Schnyder, Tobias, NB Architekt, ITC Galliard.
183
+
184
+ * **ITALIC DESCENDER CLEARANCE (mandatory):** When italic is used in display type and the word contains a descender letter (`y g j p q`), `leading-[1]` or `leading-none` will clip the descender. Use `leading-[1.1]` minimum and add `pb-1` or `mb-1` reserve on the wrapping element. Audit every italic word in display headlines before shipping.
185
+
186
+ ### 4.2 Color Calibration
187
+ * Max 1 accent color. Saturation < 80% by default.
188
+ * **THE LILA RULE:** The "AI Purple / Blue glow" aesthetic is discouraged as a default. No automatic purple button glows, no random neon gradients. Use neutral bases (Zinc / Slate / Stone) with high-contrast singular accents (Emerald, Electric Blue, Deep Rose, Burnt Orange, etc.).
189
+ * **Override:** if the brand or brief explicitly asks for purple / violet / lila, embrace it. But execute with intent: consistent palette, harmonised neutrals, restrained gradients. Not generic AI gradient slop.
190
+ * **One palette per project.** Do not fluctuate between warm and cool grays within the same project.
191
+ * **COLOR CONSISTENCY LOCK (mandatory):** Once an accent color is chosen for a page, it is used on the WHOLE page. A warm-grey site does not suddenly get a blue CTA in section 7. A rose-accented site does not get a teal status badge in the footer. Pick one accent, lock it, audit every component before shipping.
192
+
193
+ * **PREMIUM-CONSUMER PALETTE BAN (mandatory, second-most-recurring AI-tell):**
194
+ * For premium-consumer briefs (cookware, wellness, artisan, luxury, heritage craft, DTC home goods, etc.) the LLM default is **warm beige/cream + brass/clay/oxblood/ochre + espresso/ink dark text**. Concretely banned hex families as default backgrounds and accents:
195
+ - Backgrounds: `#f5f1ea`, `#f7f5f1`, `#fbf8f1`, `#efeae0`, `#ece6db`, `#faf7f1`, `#e8dfcb` (all "warm paper / cream / chalk / bone")
196
+ - Accents: `#b08947`, `#b6553a`, `#9a2436`, `#9c6e2a`, `#bc7c3a`, `#7d5621` (all "brass / clay / oxblood / ochre")
197
+ - Text: `#1a1714`, `#1a1814`, `#1b1814` (all "espresso / warm near-black")
198
+ * This palette is BANNED as the default reach for premium-consumer briefs. Every premium-consumer site you have ever shipped uses this exact palette. The brand becomes invisible.
199
+ * **Default alternatives (rotate, do not reuse):**
200
+ - **Cold Luxury:** silver-grey + chrome + smoke
201
+ - **Forest:** deep green + bone + amber accent
202
+ - **Black and Tan:** true off-black + warm tan, sharp contrast, no beige
203
+ - **Cobalt + Cream:** saturated blue against a single neutral, no brass
204
+ - **Terracotta + Slate:** warm rust against cool grey, no brass
205
+ - **Olive + Brick + Paper:** muted olive plus brick-red accent
206
+ - **Pure monochrome + single saturated pop:** off-white + off-black + one bright accent (electric blue, emerald, hot pink, etc.)
207
+ * **Palette-rotation rule:** if the previous premium-consumer project you generated used the beige+brass family, this one MUST use a different family. Do not ship the same warm-craft palette twice in a row.
208
+ * **Override:** the beige+brass+espresso palette is acceptable ONLY when the brand brief explicitly names those colors, or when the brand identity is genuinely vintage / artisan / warm-craft AND you can articulate why this specific palette fits this specific brand. Default-reaching for it because "this is a cookware brief" is banned.
209
+
210
+ ### 4.3 Layout Diversification
211
+ * **ANTI-CENTER BIAS:** Centered hero / H1 sections are avoided when `DESIGN_VARIANCE > 4`. Force "Split Screen" (50/50), "Left-aligned content / right-aligned asset", "Asymmetric white-space", or scroll-pinned structures.
212
+ * **Override:** centered hero is OK for editorial / manifesto / launch-announcement briefs where the message itself is the design.
213
+
214
+ ### 4.4 Materiality, Shadows, Cards
215
+ * Use cards ONLY when elevation communicates real hierarchy. Otherwise group with `border-t`, `divide-y`, or negative space.
216
+ * When a shadow is used, tint it to the background hue. No pure-black drop shadows on light backgrounds.
217
+ * For `VISUAL_DENSITY > 7`: generic card containers are banned. Data metrics breathe in plain layout.
218
+ * **SHAPE CONSISTENCY LOCK (mandatory):** Pick ONE corner-radius scale for the page and stick to it. Options: all-sharp (radius 0), all-soft (radius 12-16px), all-pill (full radius for interactive). Mixed systems are allowed only when there is a documented rule (e.g. "buttons are full-pill, cards are 16px, inputs are 8px") and that rule is followed everywhere. Round buttons in a square layout, or square cards on a pill-button page, is broken design.
219
+
220
+ ### 4.5 Interactive UI States
221
+ LLMs default to "static successful state only." Always implement full cycles:
222
+ * **Loading:** Skeletal loaders matching the final layout's shape. Avoid generic circular spinners.
223
+ * **Empty States:** Beautifully composed; indicate how to populate.
224
+ * **Error States:** Clear, inline (forms), or contextual (use Stacks UI `Transition` for toasts, transient only).
225
+ * **Tactile Feedback:** On `:active`, use `active:-translate-y-[1px]` or `active:scale-[0.98]` to simulate a physical push.
226
+ * **BUTTON CONTRAST CHECK (mandatory, a11y):** Before shipping any button, verify the button text is readable against the button background. White button + white text, `bg-white` CTA with `text-white` label, transparent button against the page background with no border -> all banned. Audit every CTA: contrast ratio WCAG AA min (4.5:1 for body, 3:1 for large text 18px+). Same rule applies to ghost buttons over photographic backgrounds (use a backdrop, scrim, or stroke).
227
+ * **CTA BUTTON WRAP BAN (mandatory):** Button text MUST fit on one line at desktop. If a label like "VIEW SELECTED WORK" wraps to 2 or 3 lines, the button is broken. Fix by EITHER shortening the label (3 words max for primary CTAs, ideally 1-2) OR widening the button. Wrapped CTAs at desktop are a Pre-Flight Fail.
228
+ * **NO DUPLICATE CTA INTENT (mandatory):** Two CTAs with the same intent on one page is a Pre-Flight Fail. "Get in touch" + "Contact us" + "Let's talk" + "Start a project" = all "contact" intent -> pick ONE label and use it everywhere (nav, hero, footer). Same for "Try free" + "Get started" + "Sign up free" (all "signup"), and "View work" + "See selected work" + "Browse projects" (all "portfolio"). One label per intent.
229
+ * **FORM CONTRAST CHECK (mandatory, a11y):** Form inputs, placeholder text, focus rings, helper text, and error text all pass WCAG AA contrast against the section background. Light placeholders on a near-white form, white form on white page section, labels grayer than 4.5:1 -> all banned. Audit every form before shipping. (Prefer Craft `craft-text-input` / `craft-textarea` / `craft-select` from Stacks UI so states come styled.)
230
+
231
+ ### 4.6 Data & Form Patterns
232
+ * Label ABOVE input. Helper text optional but present in markup. Error text BELOW input. Standard `gap-2` for input blocks.
233
+ * No placeholder-as-label. Ever.
234
+ * Reach for Stacks UI Craft form components (`craft-text-input`, `craft-checkbox`, `craft-select`) before hand-rolling inputs.
235
+
236
+ ### 4.7 Layout Discipline (Hard Rules. Failing any of these is shipping broken work)
237
+
238
+ * **Hero MUST fit in the initial viewport.** Headline max 2 lines on desktop, subtext max **20 words** AND max 3-4 lines, CTAs visible without scroll. If the copy is too long: reduce font scale OR cut copy. If you cannot describe the value-prop in 20 words of subtext, the value-prop is unclear, not the rule too tight. Never let the hero overflow and force scroll to find the CTA.
239
+ * **Hero font-scale discipline.** Plan font size and image size *together*. If the hero asset is large and the headline is more than 6 words, do not start at `text-7xl`/`text-8xl`. Default sensible range: `text-4xl md:text-5xl lg:text-6xl` for most heroes; `text-6xl md:text-7xl` only when the headline is 3-5 words. A 4-line hero headline is always a font-size error, never a copy-length error.
240
+ * **HERO TOP PADDING CAP (mandatory):** Hero top padding max `pt-24` (about 6rem) at desktop. More than that means the hero content floats halfway down the viewport and reads as a layout bug, not intentional space. If your hero needs more breathing room, increase font scale or asset size, not top padding.
241
+ * **HERO STACK DISCIPLINE (max 4 text elements).** The hero is a single moment, not a feature list. Allowed text elements, max 4 in total:
242
+ 1. Eyebrow (small uppercase label) OR brand strip OR neither - pick zero or one
243
+ 2. Headline (max 2 lines, see above)
244
+ 3. Subtext (max 20 words, max 4 lines)
245
+ 4. CTAs (1 primary + max 1 secondary)
246
+ - **BANNED in the hero:** tiny tagline below CTAs ("Works with GitHub, GitLab, and self-hosted Git"), trust micro-strip ("Used by engineering teams at..."), pricing teaser, feature bullet list, social-proof avatar row. All of those move to dedicated sections directly below the hero.
247
+ - If you have an eyebrow AND a tagline below CTAs in the same hero, drop the tagline. One small text element per hero, max.
248
+ * **"Used by" / "Trusted by" logo wall belongs UNDER the hero, never inside it.** The hero is for the value prop and primary CTA. The logo wall is a separate section directly below.
249
+ * **Navigation MUST render on a single line on desktop.** If items don't fit at `lg` (1024px), condense labels, drop secondary items, or move to a hamburger (Stacks UI `Disclosure` / `Menu`). A two-line nav at desktop is broken design.
250
+ * **Navigation height cap: 80px max desktop, default 64-72px.** No huge "agency" nav bars that eat 15% of the viewport.
251
+ * **Bento grids MUST have rhythm, not one-sided repetition.** Do not stack 6 left-image / right-text rows. Vary the composition: alternate full-width feature rows, asymmetric tile sizes, vertical breaks.
252
+ * **BENTO CELL COUNT RULE (mandatory):** A bento grid has EXACTLY as many cells as you have content for. 3 items -> 3 cells. 5 items -> 5 cells. If your grid has an empty cell in the middle or at the end, you planned wrong. Re-shape the grid; do not paste a blank tile.
253
+ * **Section-Layout-Repetition Ban.** Once you use a layout family for a section (e.g. 3-column-image-cards, full-width-quote, split-text-image), that family can appear at most ONCE on the page. A landing page with 8 sections must use at least 4 different layout families.
254
+ * **ZIGZAG ALTERNATION CAP (mandatory).** Alternating "left-image + right-text" then "left-text + right-image" zigzag = banal. Max 2 sections in a row with this image+text-split pattern. The 3rd consecutive image+text split is a Pre-Flight Fail. Break the pattern with a full-width section, a vertical-stack section, a bento grid, a marquee, or a different layout family.
255
+ * **EYEBROW RESTRAINT (mandatory, the #1 violated rule in production tests).** An "eyebrow" is the small uppercase wide-tracking label sitting above a section headline (e.g. `FOUR COLORWAYS`, `SELECTED WORK`, `THE HARDWARE`). Typical CSS signature: `text-[11px] uppercase tracking-[0.18em]`, `font-mono text-[10.5px] uppercase tracking-[0.22em]`. Every AI-built site puts an eyebrow above EVERY section header, producing the same templated rhythm. Hard rule:
256
+ - **Maximum 1 eyebrow per 3 sections.** Hero counts as 1. So a page with 9 sections may use at most 3 eyebrows total.
257
+ - If section A has an eyebrow, the next 2 sections cannot have one.
258
+ - **Pre-Flight Check is mechanical:** count instances of `uppercase tracking` (or similar small-caps mono labels above headlines) across all section components. If count > ceil(sectionCount / 3), the output fails.
259
+ - **What to do instead of an eyebrow:** drop it entirely. The headline alone is enough. The section's location on the page already categorizes it.
260
+ * **SPLIT-HEADER BAN (mandatory).** The pattern "left big headline + right small explainer paragraph" as a section header (left col-span-7/8, right col-span-4/5 with a small body paragraph floating in the right column) is **banned as default**. Sections should have ONE focused message. If you genuinely need both a headline and an explainer, stack them vertically (headline on top, body below, max-width 65ch). Reach for the split-header pattern only when the right column carries a real visual or interactive element, not just filler text.
261
+ * **Bento Background Diversity (mandatory).** Bento and feature-grid sections cannot be 6 white-on-white cards with text inside. At least 2-3 cells in any multi-cell grid need real visual variation: a real image, a brand-appropriate gradient (not AI-purple), a pattern, a tinted background.
262
+ * **Mobile collapse must be explicit per section.** For every multi-column layout, declare the `< 768px` fallback in the same component. No "it'll work, Crosswind handles it" assumptions.
263
+
264
+ ### 4.8 Image & Visual Asset Strategy
265
+
266
+ Landing pages and portfolios are **visual products**. Text-only pages with fake-screenshot divs are slop.
267
+
268
+ **Priority order for visual assets:**
269
+ 1. **Image-generation tool first.** If ANY image-gen tool is available in the environment you MUST use it to create section-specific assets: hero photography, product shots, texture backgrounds, mood images. Generate at the right aspect ratio for the section. Do not skip this step because hand-rolled CSS feels faster.
270
+ 2. **Real web images second.** When no gen tool is available, use real photography sources. Acceptable defaults:
271
+ * `https://picsum.photos/seed/{descriptive-seed}/{w}/{h}` for placeholder photography (seed should describe the section, e.g. `marrow-cookware-kitchen`)
272
+ * Actual stock or brand URLs when the brief provides them
273
+ * Open-license sources (Unsplash via direct URL, Pexels) if explicitly allowed
274
+ 3. **Last resort: tell the user.** If neither is possible, do NOT fill the page with hand-rolled SVG illustrations or div-based "fake screenshots." Leave clearly-labeled placeholder slots (`<!-- TODO: hero product photo, 1600x1200 -->`) and at the end of the response say: *"This page needs real images at: \[list of placements\]. Please generate or provide them."*
275
+
276
+ **Serve images correctly (Stacks):** use standard `<img>` with explicit `width`/`height` to reserve space (avoid CLS). stx has an asset pipeline with image optimization; heavy asset handling goes through `@stacksjs/storage`. There is no `next/image`.
277
+
278
+ **Even minimalist sites need real images.** A pure-text page is not minimalism, it is incomplete work. Even an editorial Linear-style site needs at least 2-3 real images (hero, one product/lifestyle shot, one supporting image). Generate B&W minimalist photography if the brief is restrained; do not skip images because the dial is low.
279
+
280
+ **Real company logos for social proof.** When the brief calls for a "Trusted by / Used by / Customers" logo wall, do NOT default to plain text wordmarks. Use real SVG logos:
281
+ * **Source: Simple Icons** (`https://cdn.simpleicons.org/{slug}/{color}` for any color). Covers most known brands.
282
+ * **Alternative: an Iconify brand collection** (`i-logos-*`, `i-simple-icons-*`) rendered as a class.
283
+ * **Made-up brand name? Then make-up an SVG mark too.** Generate a simple monogram (one letter in a circle, two-letter ligature, abstract glyph) as an inline `<svg>` matching the page style. Plain text wordmarks for invented brands look generic.
284
+ * **Always** ensure logos render in both light and dark mode (white-on-dark, black-on-light, or a single-color theme variable).
285
+ * **LOGO-ONLY rule (mandatory):** logo wall = logos and nothing else. Do NOT print industry / category labels below each logo. The logo is the credibility. Optional: brand name as alt-text, optional link to the brand's site. That is it.
286
+
287
+ **Hand-rolled illustrations:**
288
+ * Iconify glyphs: fine (Section 3.C).
289
+ * Hand-rolled decorative SVGs (custom illustrations, logos, marks): **strongly discouraged**, never as default. Acceptable only when the brief explicitly calls for it, or it is a single simple geometric mark, and you are confident in the output quality.
290
+
291
+ **Div-based fake screenshots are banned.** A "hand-built product preview" rendered with `<div>` rectangles, fake task lists, fake dashboards, fake terminal windows is a Tell. To show a product: use a real screenshot URL, generate one, render a real mini-version of the actual UI, or skip the preview and use editorial photography.
292
+
293
+ **Hero needs a real visual.** Text + gradient blob is not a hero, it is a placeholder.
294
+
295
+ ### 4.9 Content Density
296
+
297
+ Landing pages live on the **first impression**, not the full read. Cut ruthlessly.
298
+
299
+ * **Default content shape per section:** short headline (<= 8 words) + short sub-paragraph (<= 25 words) + one visual asset OR one CTA. Anything more must be justified by the section's job.
300
+ * **No data-dump sections.** A 20-row publication table, a 30-row award list, a giant pricing matrix on a marketing page = wrong layout. Use top 3-5 highlights + "View full list" link, a marquee/carousel for breadth, or a different page entirely if the data is the product.
301
+ * **Long lists need a different UI component, not a longer list.** Default `<ul>` with bullets / `divide-y` rows is the lazy choice. If you have > 5 items, reach for: a 2-column split with grouped items, a card grid with image + label, Tabs / Disclosure (Stacks UI) if items are categorisable, horizontal scroll-snap pills, a carousel, or a marquee. A spec sheet with 10 rows + a hairline under every row is the WORST default.
302
+ * **Spec sheets specifically.** A long product spec table with `border-b` on every row is the AI default for cookware / hardware / apparel / artisan briefs. Banned. Alternatives: a 2-col card grid (spec name + large display value + one-line "why it matters"), scroll-snap horizontal pills, grouped chunks (3 logical clusters, one soft divider each), or featured-vs-rest (3-4 hero specs as display tiles, the rest under a Stacks UI `Disclosure`).
303
+
304
+ * **COPY SELF-AUDIT (mandatory before ship):** Before declaring any task done, re-read every visible string (headlines, subheads, eyebrows, button labels, body copy, captions, alt text, footer text, error messages, including any `{{ ... }}` interpolations resolved). Flag any string that is:
305
+ - **Grammatically broken** ("free on its past", "two plans but one is honest")
306
+ - **Has unclear referents** ("we plan to stay that way" without prior context)
307
+ - **Sounds like AI hallucination** (cute-but-wrong wordplay, forced metaphors, "elegant nothing" phrases)
308
+ - **Reads like an LLM trying to sound thoughtful** (passive-aggressive humility, fake-craftsman labels, mock-poetic micro-meta)
309
+ Rewrite every flagged string. If unsure whether a string makes sense, replace it with a plain functional sentence. AI-generated cute copy is worse than boring copy.
310
+ * **Fake-precise numbers are flagged.** Numbers like `92%`, `4.1x`, `48k`, `5.8 mm`, `13.4 lb` either come from real data (fine), are explicitly labeled as mock (`<!-- mock -->`, fine), or are AI-invented spec aesthetics (banned). Don't fake engineering precision the brand doesn't claim.
311
+ * **One copy register per page.** Don't mix technical mono, editorial prose, and marketing punch in the same composition unless the brand voice explicitly calls for it.
312
+
313
+ ### 4.10 Quotes & Testimonials
314
+
315
+ * **Max 3 lines** of quote body. Never 6. If the original quote is longer, cut it. A landing-page quote is a snippet, not the full review.
316
+ * For very small font sizes (footer-style testimonials) the line cap can stretch slightly. Spirit: "fits in a glance."
317
+ * **No em-dashes inside the quote text** as design flourish. See Section 9.G - em-dash is completely banned.
318
+ * Attribution: name + role + (optionally) company. Never name only ("- Sarah").
319
+ * Quote marks: use real typographic quotes ( " " ) or none at all. Not straight ASCII.
320
+
321
+ ### 4.11 Page Theme Lock (Light / Dark Mode Consistency)
322
+
323
+ The page has ONE theme. Sections do not invert.
324
+
325
+ * If the page is dark mode, ALL sections are dark mode. No light-mode-warm-paper section sandwiched between dark sections (or vice versa). The user must not feel they walked into a different website mid-scroll.
326
+ * The exception: if the brief explicitly calls for a "Color Block Story" or "Theme Switch on Scroll" device AND that is a deliberate composition (one full theme switch with a strong transition, not random alternation), it is allowed once per page.
327
+ * Default behaviour: pick light, dark, or auto (`prefers-color-scheme`) at the page level and lock it. Section-level background tints within the same theme family are fine (`bg-zinc-950` next to `bg-zinc-900`); flipping to `bg-amber-50` in the middle of a `bg-zinc-950` page is broken.
328
+ * Drive dark mode with the Crosswind `dark:` variant. If you offer a runtime toggle, set it ONCE at the layout/root level via `useColorMode()` / `useDark()` (see [stacks-crosswind](../stacks-crosswind)). Do not let individual sections override the theme.
329
+
330
+ ---
331
+
332
+ ## 5. CONTEXT-AWARE PROACTIVITY (Motion in Stacks)
333
+
334
+ These are tools, not defaults. Use them when the design read calls for them. **None of these fire automatically.**
335
+
336
+ **Stacks ships NO motion library.** There is no `motion/react`, no `framer-motion`, no `gsap`. All motion is built from three sources only:
337
+ 1. **Crosswind transitions + CSS keyframes** in a `<style>` block (hover, micro-interactions, load-ins). Animate ONLY `transform` and `opacity`.
338
+ 2. **stx composables** for observing state (`useIntersectionObserver`, `useElementVisibility`, `useMouse`, `useMediaQuery`, `useResizeObserver`, `useWindow`, `useDeviceOrientation`) - toggle a Crosswind class or set a CSS custom property.
339
+ 3. **CSS scroll-driven animations** (`animation-timeline: view()` / `scroll()`) for pinned, stacked, and horizontal-pan effects - no script needed.
340
+
341
+ * **Glassmorphism:** Appropriate for premium consumer, Apple-adjacent, luxury, or media-overlay vibes. Inappropriate for dashboards, public-sector, "boring B2B." When used, go beyond `backdrop-blur`: add a 1px inner border (`border-white/10`) and a subtle inner shadow for physical edge refraction. Provide a solid-fill fallback under `prefers-reduced-transparency` (Appendix C).
342
+ * **Magnetic Micro-physics:** Use when `MOTION_INTENSITY > 5` AND the brief reads premium / playful / agency. Implement by driving a **CSS custom property** from `useMouse()` inside an `effect` (Section 5.D). Never through per-frame signal state. See Section 3.B.
343
+ * **Perpetual Micro-Interactions** (Pulse, Typewriter, Float, Shimmer, Carousel): Use when `MOTION_INTENSITY > 5` AND the section actively benefits from motion (status indicators, live feeds). **Not every card needs an infinite loop.** If a section is informational, leave it still. Prefer spring-like `cubic-bezier` easing over linear.
344
+ * **"Motion claimed, motion shown."** If `MOTION_INTENSITY > 4`, the page must actually move: entry transitions on hero, scroll-reveal on key sections, hover feedback on CTAs, at minimum. A static page that claims `MOTION_INTENSITY: 7` is broken. Conversely, if you cannot ship working motion in scope, drop the dial to 3 and ship a clean static page. Never half-build motion that breaks (jumpy enters, missing observer cleanups).
345
+ * **MOTION MUST BE MOTIVATED (mandatory).** Before adding any animation, ask: "what does this communicate?" Valid answers: hierarchy, storytelling (sequenced reveal matching a narrative), feedback (acknowledging an action), state transition. Invalid answer: "it looked cool." Each scroll-driven section, each marquee, each pinned section needs a reason. If you cannot articulate it in one sentence, drop the animation.
346
+ * **MARQUEE MAX-ONE-PER-PAGE (mandatory).** Horizontal scrolling text marquees are appropriate at most ONCE per page. Two or more reads as lazy filler. Pick the one section where the marquee serves the content; the others get a different layout.
347
+ * **Sticky-Stack Pattern (when scroll-stack is used).** A "card stack on scroll" must be a REAL sticky-stack, not a sequential reveal list. See Section 5.A. Common failure: the reveal fires halfway through scroll instead of pinning at viewport top. Fix: pin with `position: sticky; top: 0` so each card holds at the top of the viewport.
348
+ * **Horizontal-Pan Pattern (when horizontal scroll is used).** See Section 5.B. Common failure: the pan starts before the section is pinned so the user sees half a slide. Fix: pin the wrapper (`position: sticky; top: 0`) and drive the inner track with a `scroll()` timeline.
349
+
350
+ ### 5.A Sticky-Stack - Canonical Skeleton (stx + CSS scroll-driven animation)
351
+
352
+ Pure CSS: each card is `position: sticky; top: 0`, and a `view()` timeline shrinks/fades it as the next card arrives. No script, no observer, no library. Reduced motion collapses it to a plain stack.
353
+
354
+ ```html
355
+ <!-- resources/components/sticky-stack.stx -->
356
+ <template>
357
+ <div class="relative sticky-stack">
358
+ @foreach($cards as $card)
359
+ <div class="flex sticky top-0 items-center justify-center min-h-[100dvh] stack-card">
360
+ {{ $card }}
361
+ </div>
362
+ @endforeach
363
+ </div>
364
+ </template>
365
+
366
+ <style>
367
+ .stack-card {
368
+ /* animate ONLY transform + opacity */
369
+ animation: stack-shrink linear both;
370
+ animation-timeline: view();
371
+ animation-range: exit 0% exit 100%;
372
+ transform-origin: center top;
373
+ will-change: transform, opacity;
374
+ }
375
+
376
+ @keyframes stack-shrink {
377
+ to {
378
+ transform: scale(0.92);
379
+ opacity: 0.55;
380
+ }
381
+ }
382
+
383
+ /* mandatory: reduced motion collapses to a static stack */
384
+ @media (prefers-reduced-motion: reduce) {
385
+ .stack-card {
386
+ animation: none;
387
+ position: relative; /* stop pinning so nothing moves under scroll */
388
+ }
389
+ }
390
+ </style>
391
+ ```
392
+
393
+ Critical points: `position: sticky; top: 0` pins each card at the viewport top; the shrink/fade is driven by the card's own `view()` timeline over its `exit` range (so it recedes as the next card arrives); reduced motion turns off both the animation and the pin.
394
+
395
+ ### 5.B Horizontal-Pan - Canonical Skeleton (stx + CSS scroll-driven animation)
396
+
397
+ The wrapper reserves tall scroll length; a sticky inner viewport pins at the top; the track pans left, driven by a `scroll()` timeline over the wrapper. No script, no `window` listeners, no library.
398
+
399
+ ```html
400
+ <!-- resources/components/horizontal-pan.stx -->
401
+ <template>
402
+ <section class="relative pan-wrap">
403
+ <div class="overflow-hidden sticky top-0 h-[100dvh] pan-sticky">
404
+ <div class="flex items-center h-full pan-track">
405
+ <slot />
406
+ </div>
407
+ </div>
408
+ </section>
409
+ </template>
410
+
411
+ <style>
412
+ /* wrapper reserves vertical scroll distance = how far the track travels */
413
+ .pan-wrap { height: 300vh; }
414
+
415
+ .pan-track {
416
+ animation: pan-x linear both;
417
+ animation-timeline: scroll(root block);
418
+ will-change: transform;
419
+ }
420
+
421
+ @keyframes pan-x {
422
+ /* travel = trackWidth - 100vw; tune per content width */
423
+ to { transform: translateX(calc(-1 * (100% - 100vw))); }
424
+ }
425
+
426
+ @media (prefers-reduced-motion: reduce) {
427
+ .pan-wrap { height: auto; }
428
+ .pan-sticky { position: relative; height: auto; overflow-x: auto; }
429
+ .pan-track { animation: none; }
430
+ }
431
+ </style>
432
+ ```
433
+
434
+ Critical points: pin the sticky viewport (`sticky top-0 h-[100dvh]`), drive the track with a `scroll()` timeline, and size `.pan-wrap` height to the horizontal travel needed. Under reduced motion the section degrades to a plain horizontally-scrollable row.
435
+
436
+ ### 5.C Scroll-Reveal Stagger - Canonical Skeleton (useIntersectionObserver + Crosswind class toggle)
437
+
438
+ For simple "items appear as they enter viewport" (no pinning), use `useIntersectionObserver` to toggle a Crosswind class. Lighter than any timeline; no library.
439
+
440
+ ```html
441
+ <!-- resources/components/reveal-stagger.stx -->
442
+ <script client>
443
+ // element ref for the list container
444
+ const listRef = useRef('reveal-list')
445
+ const reduce = useMediaQuery('(prefers-reduced-motion: reduce)')
446
+
447
+ // reveal each child when the container enters the viewport
448
+ const { isVisible } = useIntersectionObserver(listRef, { threshold: 0.3 })
449
+
450
+ // toggle the class once, on enter (never write signal state per scroll frame)
451
+ effect(() => {
452
+ if (reduce() || isVisible())
453
+ listRef.value?.classList.add('is-revealed')
454
+ })
455
+ </script>
456
+
457
+ <template>
458
+ <ul ref="reveal-list" class="grid gap-6 reveal">
459
+ @foreach($items as $i => $item)
460
+ <li class="reveal-item" style="--i: {{ $i }}">{{ $item }}</li>
461
+ @endforeach
462
+ </ul>
463
+ </template>
464
+
465
+ <style>
466
+ .reveal-item {
467
+ opacity: 0;
468
+ transform: translateY(24px);
469
+ transition:
470
+ opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
471
+ transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
472
+ /* stagger via CSS custom property, not per-item JS timers */
473
+ transition-delay: calc(var(--i) * 60ms);
474
+ }
475
+ .reveal.is-revealed .reveal-item {
476
+ opacity: 1;
477
+ transform: none;
478
+ }
479
+
480
+ @media (prefers-reduced-motion: reduce) {
481
+ .reveal-item { opacity: 1; transform: none; transition: none; }
482
+ }
483
+ </style>
484
+ ```
485
+
486
+ Use this for: feature lists, testimonial grids, logo walls, anything that just needs "enter on scroll." The observer flips ONE class; the stagger is pure CSS via `--i`. Under reduced motion items are visible immediately.
487
+
488
+ ### 5.D Pointer / Magnetic - Canonical Skeleton (useMouse -> CSS custom property inside an effect)
489
+
490
+ Track the pointer with `useMouse()` and write the offset to a **CSS custom property** inside an `effect`. The property drives a `transform` in CSS. Signal state is read, never written per frame; the reactive tree does not re-run on every pointer move.
491
+
492
+ ```html
493
+ <!-- resources/components/magnetic.stx -->
494
+ <script client>
495
+ const btnRef = useRef('magnet')
496
+ const { x, y } = useMouse()
497
+ const reduce = useMediaQuery('(prefers-reduced-motion: reduce)')
498
+
499
+ effect(() => {
500
+ const el = btnRef.value
501
+ if (!el || reduce())
502
+ return
503
+ const r = el.getBoundingClientRect()
504
+ // pull toward cursor, damped; write to a CSS var, do NOT set signal state
505
+ const dx = (x() - (r.left + r.width / 2)) * 0.2
506
+ const dy = (y() - (r.top + r.height / 2)) * 0.2
507
+ el.style.setProperty('--mx', `${dx}px`)
508
+ el.style.setProperty('--my', `${dy}px`)
509
+ })
510
+ </script>
511
+
512
+ <template>
513
+ <button ref="magnet" class="px-6 py-3 rounded-full magnet">
514
+ <slot />
515
+ </button>
516
+ </template>
517
+
518
+ <style>
519
+ .magnet {
520
+ transform: translate(var(--mx, 0), var(--my, 0));
521
+ transition: transform 0.15s ease-out;
522
+ will-change: transform;
523
+ }
524
+ @media (prefers-reduced-motion: reduce) {
525
+ .magnet { transform: none; transition: none; }
526
+ }
527
+ </style>
528
+ ```
529
+
530
+ Critical points: `useMouse()` values are read inside `effect`, the effect sets a CSS custom property, and CSS applies the `transform`. No per-frame signal writes, no `window` listeners, no `requestAnimationFrame` loop touching state.
531
+
532
+ ### 5.E Forbidden Animation Patterns
533
+
534
+ * **`window.addEventListener('scroll', ...)`** is banned. It runs on every scroll frame, jank-prone, no batching. Use `useIntersectionObserver` / `useElementVisibility`, or CSS scroll-driven animations (`animation-timeline: view()` / `scroll()`).
535
+ * **Any bare `window.*` or `document.*` access in an stx `<script>`** is banned (CLAUDE.md rule). Use composables (`useEventListener`, `useWindow`, `useResizeObserver`, `useMouse`) instead. Also banned: `var`.
536
+ * **Custom scroll-progress calculations written into signal state.** Re-runs reactive effects on every frame. Drive a CSS custom property inside an `effect` (Section 5.D) or use a CSS `scroll()` timeline instead.
537
+ * **`requestAnimationFrame` loops that write signal state.** Same reason. Prefer CSS-driven animation or a single CSS custom property write per frame from within an `effect`.
538
+ * **Staggered orchestration:** use the CSS cascade (`transition-delay: calc(var(--i) * 60ms)` / `animation-delay`) for reveal sequence, as in Section 5.C. Do not spin up a JS timer per item.
539
+
540
+ ---
541
+
542
+ ## 6. PERFORMANCE & ACCESSIBILITY GUARDRAILS
543
+
544
+ ### 6.A Hardware Acceleration
545
+ * Animate ONLY `transform` and `opacity`. Never animate `top`, `left`, `width`, `height`.
546
+ * Use `will-change: transform` sparingly, only on elements that will actually animate.
547
+
548
+ ### 6.B Reduced Motion (mandatory)
549
+ * **Any motion above `MOTION_INTENSITY > 3` MUST honor `prefers-reduced-motion`.** This is non-negotiable.
550
+ * In CSS: gate animations behind `@media (prefers-reduced-motion: no-preference)`, or provide an override block under `@media (prefers-reduced-motion: reduce)` that disables them (as every skeleton in Section 5 does).
551
+ * In script: read `useMediaQuery('(prefers-reduced-motion: reduce)')` and skip the effect when it is true.
552
+ * Infinite loops, parallax, scroll-driven pins, and magnetic pointer effects MUST collapse to static / instant under reduced motion.
553
+
554
+ ### 6.C Dark Mode (mandatory for any consumer-facing page)
555
+ * Design for **both modes from the start**. Never ship light-only or dark-only without explicit user instruction.
556
+ * Use the Crosswind `dark:` variant (`bg-white dark:bg-zinc-950`, `text-gray-900 dark:text-gray-100`) OR CSS variables for tokens. Pick one strategy per project.
557
+ * **Do not prescribe specific dark-mode colors here.** The brief decides. Maintain visual hierarchy, brand identity, and WCAG AA contrast (AAA for body) across both modes.
558
+ * Respect `prefers-color-scheme: dark`. Default to system preference unless the brand insists on one mode. Runtime toggle via `useColorMode()` / `useDark()`.
559
+
560
+ ### 6.D Core Web Vitals Targets
561
+ * **LCP** < 2.5s. Preload the hero image; do not lazy-load above-the-fold assets.
562
+ * **INP** < 200ms. Keep heavy work out of the main render path; put data work in `<script server>`.
563
+ * **CLS** < 0.1. Reserve space for images (explicit `width`/`height`), fonts (`display: swap`), and embeds.
564
+
565
+ ### 6.E DOM Cost
566
+ * Apply grain / noise filters EXCLUSIVELY to fixed, `pointer-events-none` pseudo-elements (e.g. `fixed inset-0 z-[60] pointer-events-none`). NEVER on scrolling containers - continuous GPU repaints destroy mobile FPS.
567
+ * Be aware of bundle size. Lazy-load anything below the fold and heavy.
568
+
569
+ ### 6.F Z-Index Restraint
570
+ NEVER spam arbitrary `z-50` or `z-10`. Use z-index strictly for systemic layer contexts (sticky navbars, modals, overlays, grain). Document the z-index scale in a project constants file or the layout `<style>`.
571
+
572
+ ---
573
+
574
+ ## 7. DIAL DEFINITIONS (Technical Reference)
575
+
576
+ ### DESIGN_VARIANCE (Level 1-10)
577
+ * **1-3 (Predictable):** Symmetrical CSS Grid (12-col, equal fr-units), equal paddings, centered alignment.
578
+ * **4-7 (Offset):** negative-margin overlaps, varied image aspect ratios (4:3 next to 16:9), left-aligned headers over center-aligned data.
579
+ * **8-10 (Asymmetric):** Masonry layouts, CSS Grid with fractional units (`grid-cols-[2fr_1fr_1fr]`), massive empty zones (`pl-[20vw]`).
580
+ * **MOBILE OVERRIDE:** For levels 4-10, asymmetric layouts above `md:` MUST collapse to strict single-column (`w-full`, `px-4`, `py-8`) on viewports `< 768px`.
581
+
582
+ ### MOTION_INTENSITY (Level 1-10)
583
+ * **1-3 (Static):** No automatic animations. CSS `:hover` and `:active` states only. `prefers-reduced-motion` is the default mode anyway.
584
+ * **4-7 (Fluid CSS):** `transition` with `cubic-bezier(0.16, 1, 0.3, 1)`. `transition-delay` / `animation-delay` cascades for load-ins. Focus on `transform` and `opacity`.
585
+ * **8-10 (Advanced Choreography):** CSS scroll-driven animation (`animation-timeline: view()` / `scroll()`), sticky pins, staggered reveals via `useIntersectionObserver`. **NEVER use `window.addEventListener('scroll')`** - it is a hard ban, not a preference. See Section 5.E.
586
+
587
+ ### VISUAL_DENSITY (Level 1-10)
588
+ * **1-3 (Art Gallery):** Lots of white space. Huge section gaps (`py-32` to `py-48`). Expensive, clean.
589
+ * **4-7 (Daily App):** Standard web app spacing (`py-16` to `py-24`).
590
+ * **8-10 (Cockpit):** Tight paddings. No card boxes; 1px lines separate data. Mandatory: `font-mono` for all numbers.
591
+
592
+ ---
593
+
594
+ ## 8. DARK MODE PROTOCOL
595
+
596
+ Dual-mode by default. Never assume light-only unless the brief is print-emulating editorial.
597
+
598
+ ### 8.A Token Strategy (pick one, stick to it)
599
+ * **Crosswind `dark:` variant** (default for utility-first projects): every color utility paired with its dark variant (`bg-white dark:bg-zinc-950`, `text-gray-900 dark:text-gray-100`).
600
+ * **CSS variables** (for token-driven theming): define semantic tokens (`--surface`, `--surface-elevated`, `--text-primary`, `--accent`) in the layout `<style>` and swap values under `[data-theme="dark"]` or `@media (prefers-color-scheme: dark)`.
601
+
602
+ ### 8.B Do Not Prescribe Specific Colors Here
603
+ The brief and brand decide. This skill enforces only:
604
+ * **Contrast** - WCAG AA minimum for body text, AAA target for hero copy.
605
+ * **Hierarchy parity** - visual hierarchy that works in light must work in dark. If a CTA pops in light, it pops in dark.
606
+ * **Brand fidelity** - primary brand color stays recognisable. Don't desaturate the brand into a dark mode.
607
+ * **No pure `#000000` and no pure `#ffffff`** - use off-black (zinc-950, near-black warm gray) and off-white. Pure values kill depth.
608
+
609
+ ### 8.C Default Mode
610
+ Respect `prefers-color-scheme` unless the brand insists. Add a manual toggle (`useColorMode()` / `useDark()`) if either mode would lose key brand expression.
611
+
612
+ ### 8.D Test in Both Modes Before Finishing
613
+ View the page in both modes during development. Do not ship a page you have only seen in one mode.
614
+
615
+ ---
616
+
617
+ ## 9. AI TELLS (Forbidden Patterns)
618
+
619
+ Avoid these signatures unless the brief explicitly asks for them.
620
+
621
+ ### 9.A Visual & CSS
622
+ * **NO neon / outer glows** by default. Use inner borders or subtle tinted shadows.
623
+ * **NO pure black (`#000000`).** Off-black, zinc-950, or charcoal.
624
+ * **NO oversaturated accents.** Desaturate to blend with neutrals.
625
+ * **NO excessive gradient text** for large headers.
626
+ * **NO custom mouse cursors.** Outdated, accessibility-hostile, perf-hostile.
627
+
628
+ ### 9.B Typography
629
+ * **AVOID Inter as default.** See Section 4.1. Override path exists.
630
+ * **NO oversized H1s** that just scream. Control hierarchy with weight + color, not raw scale.
631
+ * **Serif constraints:** Serif for editorial / luxury / publication. Not for dashboards.
632
+
633
+ ### 9.C Layout & Spacing
634
+ * **Mathematically perfect** padding and margins. No floating elements with awkward gaps.
635
+ * **NO 3-column equal feature cards.** The generic "three identical cards horizontally" feature row is banned. Use 2-column zig-zag, asymmetric grid, scroll-pinned, or horizontal-scroll alternative.
636
+
637
+ ### 9.D Content & Data ("Jane Doe" Effect)
638
+ * **NO generic names.** "John Doe", "Sarah Chan", "Jack Su" -> use creative, realistic, locale-appropriate names.
639
+ * **NO generic avatars.** No SVG "egg" or generic user icons -> use believable photo placeholders or specific styling.
640
+ * **NO fake-perfect numbers.** Avoid `99.99%`, `50%`, `1234567`. Use organic, messy data (`47.2%`, `+1 (312) 847-1928`).
641
+ * **NO startup-slop brand names.** "Acme", "Nexus", "SmartFlow", "Cloudly" -> invent contextual, premium names that sound real.
642
+ * **NO filler verbs.** "Elevate", "Seamless", "Unleash", "Next-Gen", "Revolutionize" -> concrete verbs only.
643
+
644
+ ### 9.E External Resources & Components
645
+ * **NO hand-rolled SVG icons.** Use Iconify `i-*` classes (hugeicons default). See Section 3.C.
646
+ * **NO `npm install` of icon packages** (lucide-react, @phosphor-icons, etc.). Iconify classes ship with stx.
647
+ * **Hand-rolled decorative SVGs strongly discouraged** as default (see Section 4.8).
648
+ * **NO div-based fake screenshots.** Never build a fake product UI out of `<div>` rectangles. Use real images, generated images, a real component preview, or skip the preview.
649
+ * **NO broken Unsplash links.** Use `https://picsum.photos/seed/{descriptive-string}/{w}/{h}`, generated placeholders, or actual assets.
650
+ * **Use Stacks UI components, don't recreate them.** Do not hand-build a modal, tabs, popover, or combobox that already exists in `@stacksjs/ui`. Customize radii, colors, shadows, typography to the project aesthetic.
651
+ * **Production-Ready Cleanliness:** Code visually clean, memorable, meticulously refined.
652
+
653
+ ### 9.F Production-Test Tells (banned outright)
654
+
655
+ These patterns came out of real LLM-generated landing-page tests. Treat them as hard bans unless the brief explicitly calls for one.
656
+
657
+ **Hero & top-of-page**
658
+ * **NO version labels in the hero.** `V0.6`, `v2.0`, `BETA`, `INVITE-ONLY PREVIEW`, `EARLY ACCESS`, `ALPHA` - banned as default eyebrows. Only acceptable when the brief is explicitly about a product launch / preview status.
659
+ * **NO "Brand . No. 01"-style sub-eyebrows.** "Marrow . No. 01 . The 6-quart" type micro-meta lines. Skip them.
660
+
661
+ **Section numbering & micro-labels**
662
+ * **NO section-number eyebrows.** `00 / INDEX`, `001 . Capabilities`, `06 . how it works`, `05 . The honest table` - banned. Eyebrows name the topic in plain language, not enumerate.
663
+ * **NO `01 / 4`-style pagination on images or bento tiles.** If the user can count, they don't need the label.
664
+ * **NO `Scroll . 001 Capabilities`-style scroll cues.** A simple arrow or "Scroll" is enough; no section-number prefix.
665
+ * **NO "Index of Work, 2018 - 2026"-style range labels** as eyebrows. Just say what the section is.
666
+
667
+ **Separators & dots**
668
+ * **The middle-dot (`.`) separator is rationed.** Maximum 1 per line in metadata strips. Do NOT use it as the default separator for everything. Prefer line breaks, hairlines, or columns.
669
+ * **NO decorative colored status dots on every list/nav/badge.** A colored dot before "ONE Q4 SLOT OPEN" or before every nav link is banned by default. Acceptable only when the dot conveys actual semantic state (server status, availability flag) and is used sparingly.
670
+
671
+ **Em-dashes & typography flourishes**
672
+ * **NO em-dash (`—`) as a design element OR anywhere else.** See Section 9.G below for the complete, non-negotiable ban. The em-dash character is forbidden in headlines, eyebrows, pills, body copy, quotes, attribution, captions, button text, and alt text. Use the regular hyphen (`-`).
673
+ * **NO `<br>`-broken-and-italicized headlines** as a default "design move." Headlines should read naturally first, get clever only when the brief demands it.
674
+ * **NO vertical rotated text** ("INDEX OF WORK" rotated 90 degrees). Agency-portfolio cliche. Use it only when the brief is explicitly agency / Awwwards / experimental AND it serves a real composition purpose.
675
+ * **NO crosshair / hairline grid lines as decoration.** Vertical and horizontal lines drawn just to make the page "feel designed" are banned. Use them only when they organize real content.
676
+
677
+ **Fake product previews**
678
+ * **NO div-based fake product UI in the hero** (fake task list, fake terminal, fake dashboard built from styled divs). It is the #1 LLM-design Tell. Use a real screenshot, a generated image, a real component preview, or none at all.
679
+ * **NO fake version footers** ("v0.6.2-rc.1", "last sync 4s ago . main") inside fake screenshots.
680
+
681
+ **Marketing-copy Tells**
682
+ * **NO "Quietly in use at" / "Quietly trusted by"** social-proof headers. Use "Trusted by", "Used at", "Customers include", or skip the heading.
683
+ * **NO "From the field" / "Field notes" / "Currently on the bench" / "On our desks"** style poetic labels on quote, blog, or sidebar sections. Use plain functional labels ("Testimonials", "Latest writing", "Now working on") or skip the label.
684
+ * **NO "We respect the French ones"-style** mock-humble industry references in body copy.
685
+ * **NO weather / locale strips** ("LIS 14:23 . 18C") in headers/footers unless the brief is explicitly about a place / time-zone-distributed studio.
686
+ * **NO micro-meta-sentences under eyebrows.** Eyebrow + Headline + Body is enough.
687
+ * **NO generic step labels.** "Stage 1 / Stage 2 / Stage 3", "Phase 01 / Phase 02 / Phase 03", "Pass One / Pass Two". The actual step content is the label. Use the verb-noun directly ("Install", "Configure", "Ship").
688
+
689
+ **Pills, labels and version stamps**
690
+ * **NO pills/labels/tags overlaid on images.** No `<span>` overlays on photos with tags like `Brand . 02`, `PLATE . BRAND`. Either let the image speak alone, or add a caption directly below (outside the image).
691
+ * **NO photo-credit captions as decoration.** Strings like `Field study no. 12 . Ines Caetano` under stock/picsum images are pretentious. Photo credit is allowed ONLY for a real photographer credited for a real photo (with permission).
692
+ * **NO version footers on marketing pages.** Footer strings like `v1.4.2`, `Build 0048`, `last sync 4s ago . main` are devtool fixtures, not landing-page content.
693
+ * **NO "Reservation 412 of 800"-style live-stock counters** as decoration. Only if the brief is explicitly a limited-run waitlist with real data.
694
+
695
+ **Decoration text strips**
696
+ * **NO decoration text strip at hero bottom.** Patterns like `BRAND. MOTION. SPATIAL.`, `TYPE / FORM / MOTION`, `DESIGN . BUILD . SHIP` as a small mono-caps strip across the bottom of the hero are an agency-portfolio cliche. Only acceptable when the strip carries real navigable links or real status info.
697
+ * **NO floating top-right sub-text in section headings.** A tiny explainer paragraph floating in the top-right corner of a section header with no clear alignment is the Tell. Put the sub-text directly under the headline, or build a clean aligned 2-column header.
698
+
699
+ **Lists, dividers and scoring**
700
+ * **NO `border-t` + `border-b` on every row of a long list / spec table.** Pick one and use it sparsely. See Section 4.9 for alternative UI components.
701
+ * **NO scoring/progress bars with filled background tracks** as comparison visuals. Prefer a number + small icon, or a tiny inline bar WITHOUT a background track.
702
+
703
+ **Locale, time, scroll cues**
704
+ * **Locale / city-name / time / weather strips are banned for 99% of briefs.** Allowed ONLY when the brief explicitly describes a globally-distributed studio, a travel brand, or a real-world physical venue. A single contact-address mention in the footer is fine; an atmospheric locale strip is not.
705
+ * **Scroll cues are banned.** `Scroll`, `scroll to explore`, animated mouse-wheel icons. If the user has not scrolled yet, they are looking at the hero. They know what scroll is.
706
+ * **ZERO decorative status dots by default.** Only acceptable when conveying real semantic state, limited to one per page section.
707
+
708
+ ### 9.G EM-DASH BAN (the single most-violated Tell)
709
+
710
+ **Em-dash (`—`) is COMPLETELY banned.** It is the LLM's signature stylistic crutch and the #1 visual Tell in production tests. There is no "limited use" allowance, no "natural language frequency" allowance, no "in body copy is fine" allowance. None.
711
+
712
+ * **Banned in headlines.** Use a period or a comma.
713
+ * **Banned in eyebrows / labels / pills / button text / image captions / nav items.** Replace with line breaks, columns, or hairlines.
714
+ * **Banned in body copy.** Restructure the sentence: two sentences with a period, OR a comma, OR parentheses, OR a colon.
715
+ * **Banned in quote attribution.** Use a normal hyphen with spaces (`-`) or a line break + smaller-weight name.
716
+ * **Banned in en-dash form too (`–`) when used as a separator.** Date ranges (`2018-2026`) use a hyphen. Number ranges (`40-80k`) use a hyphen.
717
+
718
+ The ONLY permitted dash characters on the page are:
719
+ * Regular hyphen `-` (for compound words, ranges, line dividers in markup)
720
+ * Minus sign in math (`-5C`)
721
+
722
+ If your output contains a single `—` or `–` anywhere visible to the user, the output fails the Pre-Flight Check and must be rewritten.
723
+
724
+ This rule is non-negotiable. The agent has historically ignored em-dash limits when phrased as "use sparingly." The phrasing here is binary: zero em-dashes.
725
+
726
+ ---
727
+
728
+ ## 10. REFERENCE VOCABULARY (Pattern Names the Agent Should Know)
729
+
730
+ This is a vocabulary. Know these pattern names to communicate about them and reach for them when the design read calls for them. All implementations are stx + Crosswind + composables / CSS (Section 5), never an external motion library.
731
+
732
+ ### Hero Paradigms
733
+ * **Asymmetric Split Hero** - Text on one side, asset on the other, generous white space.
734
+ * **Editorial Manifesto Hero** - Large type, no asset, almost-poster.
735
+ * **Video / Media Mask Hero** - Type cut out as mask over video background.
736
+ * **Kinetic-Type Hero** - Animated typography (CSS keyframes) as the primary visual.
737
+ * **Scroll-Pinned Hero** - Hero stays pinned (`position: sticky`) while content scrolls behind.
738
+
739
+ ### Navigation & Menus
740
+ * **Magnetic Button** - Pulls toward cursor (Section 5.D).
741
+ * **Dynamic Island** - Morphing pill for status / alerts.
742
+ * **Mega Menu Reveal** - Full-screen dropdown (Stacks UI `Menu` / `Disclosure` + `Transition`).
743
+
744
+ ### Layout & Grids
745
+ * **Bento Grid** - Asymmetric tile grouping (Apple Control Center).
746
+ * **Masonry Layout** - Staggered grid, no fixed row height.
747
+ * **Split-Screen Scroll** - Two halves sliding in opposite directions (CSS `scroll()` timeline).
748
+ * **Sticky-Stack Sections** - Sections that pin and stack on scroll (Section 5.A).
749
+
750
+ ### Cards & Containers
751
+ * **Parallax Tilt Card** - 3D tilt tracking mouse coordinates via `useMouse()` -> CSS var.
752
+ * **Spotlight Border Card** - Border illuminates under cursor (CSS var driven by `useMouse()`).
753
+ * **Glassmorphism Panel** - Frosted glass with inner refraction (Appendix C).
754
+
755
+ ### Scroll Animations
756
+ * **Sticky Scroll Stack** - Cards stick and physically stack (Section 5.A).
757
+ * **Horizontal Scroll Hijack** - Vertical scroll to horizontal pan (Section 5.B).
758
+ * **Zoom Parallax** - Central background image zooming on scroll (CSS `view()` timeline).
759
+ * **Scroll Progress Path** - SVG line drawing along scroll (CSS `scroll()` timeline).
760
+
761
+ ### Typography & Text
762
+ * **Kinetic Marquee** - Endless text bands (CSS keyframes, max one per page).
763
+ * **Text Mask Reveal** - Massive type as transparent window to video.
764
+ * **Circular Text Path** - Text curving along a spinning circle.
765
+
766
+ ### Micro-Interactions & Effects
767
+ * **Skeleton Shimmer** - Shifting light reflection across placeholders (CSS keyframes).
768
+ * **Directional Hover-Aware Button** - Fill enters from cursor's side.
769
+ * **Ripple Click Effect** - Wave from click coordinates (CSS var from click position).
770
+ * **Mesh Gradient Background** - Organic blobs (layered radial gradients).
771
+
772
+ ### Motion Implementation (Stacks, not a library)
773
+ * **Crosswind transitions + CSS keyframes** - default for hover, micro-interactions, load-ins.
774
+ * **`useIntersectionObserver` / `useElementVisibility`** - enter-on-scroll, toggle a class (Section 5.C).
775
+ * **CSS scroll-driven animations** (`animation-timeline: view()` / `scroll()`) - pinned, stacked, horizontal-pan (Sections 5.A, 5.B).
776
+ * **`useMouse()` -> CSS custom property in an `effect`** - pointer / magnetic / tilt (Section 5.D).
777
+ * **NEVER import `motion/react`, `framer-motion`, or `gsap`.** Stacks ships none of them, and per-frame signal state fights the reactive system.
778
+
779
+ ---
780
+
781
+ ## 11. REDESIGN PROTOCOL
782
+
783
+ This skill handles **greenfield builds AND redesigns**. Misclassifying the mode is the single biggest source of bad redesign output. For a full redesign audit workflow see [stacks-redesign](../stacks-redesign).
784
+
785
+ ### 11.A Detect the Mode (first action)
786
+ * **Greenfield** - no existing site, or full overhaul approved. Dial baseline from Section 1.
787
+ * **Redesign - Preserve** - modernise without breaking the brand. Audit first, extract brand tokens, evolve gradually.
788
+ * **Redesign - Overhaul** - new visual language on top of existing content. Treat as greenfield for visuals; preserve content and IA.
789
+
790
+ If ambiguous, ask **once**: *"Should this redesign preserve the existing brand, or are we starting visually from scratch?"*
791
+
792
+ ### 11.B Audit Before Touching
793
+ Document the current state before proposing changes:
794
+ * **Brand tokens** - primary / accent colors, type stack, logo treatment, radii.
795
+ * **Information architecture** - page tree, primary nav, key conversion paths.
796
+ * **Content blocks** - what exists, what's doing work, what's filler.
797
+ * **Patterns to preserve** - signature interactions, recognisable hero, copy voice.
798
+ * **Patterns to retire** - AI-slop tells, broken layouts, dead links, generic stock imagery, perf traps.
799
+ * **Dial reading of the existing site** - infer current `DESIGN_VARIANCE` / `MOTION_INTENSITY` / `VISUAL_DENSITY`. That's your starting point, not the baseline.
800
+ * **SEO baseline** - current ranking pages, meta titles (`@seo` / `@meta` / `useSeoMeta`), structured data, OG cards. **SEO migration is the #1 redesign risk.**
801
+
802
+ ### 11.C Preservation Rules
803
+ * **Do not change information architecture** unless asked. Keep route slugs, anchor IDs, primary nav labels stable for SEO and muscle memory.
804
+ * **Extract brand colors before applying Section 4.2.** A brand that is already purple stays purple - apply the LILA RULE's override.
805
+ * **Preserve copy voice** unless asked for a rewrite. Visual modernisation is not a content rewrite.
806
+ * **Honor existing accessibility wins.** Do not regress focus states, alt text, keyboard nav, contrast.
807
+ * **Respect existing analytics events.** Do not rename buttons, form fields, section IDs that downstream tracking depends on.
808
+
809
+ ### 11.D Modernisation Levers (priority order)
810
+ Apply in order, stop when the brief is satisfied:
811
+ 1. **Typography refresh** - biggest visual lift per unit of risk.
812
+ 2. **Spacing & rhythm** - increase section padding, fix vertical rhythm.
813
+ 3. **Color recalibration** - desaturate, unify neutrals, keep brand accent.
814
+ 4. **Motion layer** - add `MOTION_INTENSITY`-appropriate micro-interactions (Section 5) to existing components.
815
+ 5. **Hero & key-section recomposition** - restructure top-of-funnel using Section 10 vocabulary.
816
+ 6. **Full block replacement** - only when the existing block is unsalvageable.
817
+
818
+ ### 11.E Decision Tree: Targeted Evolution vs Full Redesign
819
+ * IA, content, and SEO sound -> **targeted evolution** (Levers 1-4). ~70% of value at ~40% of risk.
820
+ * Visual debt is structural (broken IA, no design system, broken mobile) -> **full redesign** with strict content preservation.
821
+ * Brand itself is changing -> **greenfield**.
822
+
823
+ ### 11.F What Never Changes Silently
824
+ Never modify without explicit user approval:
825
+ * URL structure / route slugs.
826
+ * Primary nav labels.
827
+ * Form field names or order (breaks analytics + autofill).
828
+ * Brand logo or wordmark.
829
+ * Existing legal / consent / cookie copy.
830
+
831
+ ---
832
+
833
+ ## 12. OUTPUT DISCIPLINE
834
+
835
+ When you deliver, hand off cleanly. For the full output-format contract (file placement, what to state, how to summarize), see [stacks-design-output](../stacks-design-output).
836
+
837
+ * Put pages in `resources/views/*.stx`, reusable blocks in `resources/components/*.stx`, shared chrome in `resources/layouts/*.stx`.
838
+ * Every block must work standalone: drop it into a page, it renders.
839
+ * Every block must pass the Pre-Flight Check (Section 14).
840
+ * State the design read (Section 0.B) and the dial values before the code.
841
+
842
+ ---
843
+
844
+ ## 13. OUT OF SCOPE
845
+
846
+ This skill is NOT for:
847
+ * Dashboards / dense product UI / admin panels -> use [stacks-dashboard](../stacks-dashboard) and [stacks-ui](../stacks-ui).
848
+ * Data tables -> use [stacks-ui](../stacks-ui) table primitives and [stacks-dashboard](../stacks-dashboard).
849
+ * Multi-step forms / wizards -> Craft form components in [stacks-ui](../stacks-ui); this skill won't make them better.
850
+ * Realtime collab UIs (presence, cursors) -> different problem class.
851
+
852
+ If the brief is one of the above, **say so explicitly**, point to the right skill, and only apply this skill's marketing-page / landing-page / about-page parts to the surfaces where they apply.
853
+
854
+ ---
855
+
856
+ ## 14. FINAL PRE-FLIGHT CHECK
857
+
858
+ Run this matrix before outputting code. This is the last filter.
859
+
860
+ **THIS IS NOT OPTIONAL. Run every box. If any box fails, the output is not done.**
861
+
862
+ - [ ] **Brief inference** declared (Section 0.B one-liner)?
863
+ - [ ] **Dial values** explicit and reasoned from the brief, not silently using baseline?
864
+ - [ ] **Foundation** is the Stacks stack (Stacks UI + Crosswind + Iconify), no `npm install` of an external design system or icon package?
865
+ - [ ] **Redesign mode** detected and audit performed (if applicable, Section 11)?
866
+ - [ ] **ZERO em-dashes (`—`) anywhere on the page.** Headlines, eyebrows, pills, body, quotes, attribution, captions, buttons, alt text. Zero. (Section 9.G - non-negotiable.)
867
+ - [ ] **No `var`, no bare `document.*` / `window.*`** in any stx `<script>` block?
868
+ - [ ] **Page Theme Lock**: ONE theme (light, dark, or auto) for the whole page, no section flips mid-page (Section 4.11)?
869
+ - [ ] **Color Consistency Lock**: one accent color used identically across all sections (Section 4.2)?
870
+ - [ ] **Shape Consistency Lock**: one corner-radius system applied consistently (Section 4.4)?
871
+ - [ ] **Button Contrast Check**: every CTA text readable against its background (no white-on-white, WCAG AA 4.5:1)?
872
+ - [ ] **CTA Button Wrap**: no CTA label wraps to 2+ lines at desktop?
873
+ - [ ] **Form Contrast Check**: inputs, placeholders, focus rings, labels all pass WCAG AA against the section background?
874
+ - [ ] **Serif discipline**: if a serif is used, it is NOT Fraunces or Instrument_Serif (or it is, with explicit brand justification)? Different serif from your previous project?
875
+ - [ ] **Premium-consumer palette check**: if the brief is premium-consumer, the palette is NOT the AI-default beige+brass+oxblood+espresso family? Different family from your previous premium-consumer project?
876
+ - [ ] **Italic descender clearance**: every italic word with `y g j p q` has `leading-[1.1]` min + `pb-1` reserve?
877
+ - [ ] **Hero fits the viewport**: headline <= 2 lines, subtext <= 20 words AND <= 4 lines, CTA visible without scroll, font scale planned around image?
878
+ - [ ] **Hero top padding**: max `pt-24` at desktop, hero content does not float halfway down?
879
+ - [ ] **Hero stack discipline**: max 4 text elements? No tiny tagline below CTAs, no trust micro-strip in hero?
880
+ - [ ] **EYEBROW COUNT (mechanical)**: count `uppercase tracking` micro-labels above section headlines across all components. Count <= ceil(sectionCount / 3)? Hero counts as 1.
881
+ - [ ] **Split-Header Ban**: no "left big headline + right small explainer paragraph" section header (vertical stack instead)?
882
+ - [ ] **Zigzag Alternation Cap**: no 3+ consecutive sections with the same image+text-split layout?
883
+ - [ ] **No Duplicate CTA Intent**: no two CTAs with the same intent on the page?
884
+ - [ ] **Logo wall = logo only**: no industry / category labels printed below logos?
885
+ - [ ] **Bento Background Diversity**: at least 2-3 bento cells have real visual variation, not all white-on-white text cards?
886
+ - [ ] **"Used by / Trusted by" logo wall** lives UNDER the hero, uses REAL SVG logos (Simple Icons / Iconify brand collections) or generated SVG marks, NOT plain text wordmarks?
887
+ - [ ] **Copy Self-Audit**: every visible string re-read, no grammatically-broken or AI-hallucinated phrases shipped?
888
+ - [ ] **Motion motivated**: every animation justified in one sentence (hierarchy / storytelling / feedback / state transition)?
889
+ - [ ] **Marquee max-one-per-page**: no two horizontal marquees on the same page?
890
+ - [ ] **Navigation on ONE line** at desktop, height <= 80px?
891
+ - [ ] **Section-Layout-Repetition** check: no two sections share the same layout family (at least 4 different families across 8 sections)?
892
+ - [ ] **Bento has rhythm AND exact cell count** (N items -> N cells, no empty cells)?
893
+ - [ ] **Long lists use the right UI component** (not default `<ul>` with `divide-y` for > 5 items)?
894
+ - [ ] **Real images used** (gen-tool first, then Picsum-seed, then explicit placeholder slots) - NO div-based fake screenshots, NO hand-rolled decorative SVGs, NO pure-text minimalism?
895
+ - [ ] **Images have explicit `width`/`height`** (reserve space, avoid CLS)?
896
+ - [ ] **No pills/labels overlaid on images**?
897
+ - [ ] **No photo-credit captions as decoration**?
898
+ - [ ] **No version footers** (`v1.4.2`, `Build 0048`) on marketing pages?
899
+ - [ ] **No micro-meta-sentences** under eyebrows?
900
+ - [ ] **No decoration text strip at hero bottom** (`BRAND. MOTION. SPATIAL.`)?
901
+ - [ ] **No floating top-right sub-text** in section headings?
902
+ - [ ] **No scoring/progress bars with filled background tracks** as comparison visuals?
903
+ - [ ] **No locale / city-name / time / weather strips** unless the brief is genuinely globally-distributed or place-focused?
904
+ - [ ] **No scroll cues** (`Scroll`, `scroll to explore`)?
905
+ - [ ] **No version labels in hero** (V0.6, BETA, INVITE-ONLY) unless the brief is a launch?
906
+ - [ ] **No section-numbering eyebrows** (`00 / INDEX`, `001 . Capabilities`)?
907
+ - [ ] **No decorative dots** (zero by default, only for real semantic state)?
908
+ - [ ] **No `border-t` + `border-b` on every row** of long lists / spec tables?
909
+ - [ ] **Content density** sane: no 20-row data tables, no fake-precise specs without justification, <= 25-word sub-paragraphs by default?
910
+ - [ ] **Quotes <= 3 lines** of body, attribution clean (no em-dash)?
911
+ - [ ] **Motion claimed = motion shown**: if `MOTION_INTENSITY > 4`, page actually animates?
912
+ - [ ] **Sticky-stack / horizontal-pan** implemented per Section 5.A / 5.B (`position: sticky; top: 0` pin + CSS `view()` / `scroll()` timeline, reduced-motion gated)?
913
+ - [ ] **No `window.addEventListener('scroll')`**, no per-frame signal-state scroll math - using `useIntersectionObserver` / CSS scroll-driven animations only (Section 5.E)?
914
+ - [ ] **Pointer / magnetic** effects drive a CSS custom property from `useMouse()` inside an `effect`, never per-frame signal state (Section 5.D)?
915
+ - [ ] **Reduced motion** gated for everything `MOTION_INTENSITY > 3` (CSS media block AND/OR `useMediaQuery('(prefers-reduced-motion: reduce)')`)?
916
+ - [ ] **Dark mode** tokens defined and tested in both modes (Crosswind `dark:` or CSS vars + `useColorMode()`)?
917
+ - [ ] **Mobile collapse** explicit (`w-full`, `px-4`, `max-w-7xl mx-auto`) for high-variance layouts?
918
+ - [ ] **Viewport stability**: `min-h-[100dvh]`, never `h-screen`?
919
+ - [ ] **Observer / effect cleanup** relied on (composables handle teardown; do not leave dangling `useEventListener`)?
920
+ - [ ] **Empty / loading / error** states provided?
921
+ - [ ] **Cards omitted** in favor of spacing where possible?
922
+ - [ ] **Icons** from Iconify `i-*` classes only (hugeicons default), no hand-rolled SVG paths, no icon npm packages?
923
+ - [ ] **Interactive logic isolated** in `<script client>`, data/secrets in `<script server>`?
924
+ - [ ] **No AI Tells** from Section 9 (Inter as default, AI-purple, three-equal cards, Jane Doe, Acme, "Quietly in use at")?
925
+ - [ ] **Core Web Vitals** plausibly hit (LCP < 2.5s, INP < 200ms, CLS < 0.1)?
926
+ - [ ] **One system** per project (the Stacks stack, no mixed external frameworks)?
927
+
928
+ If a single checkbox cannot be honestly ticked, the page is not done. Fix it before delivering.
929
+
930
+ ---
931
+
932
+ # APPENDIX - Stacks Foundation & Approximations
933
+
934
+ ## Appendix A - Stacks foundation note
935
+
936
+ There is no external-design-system install matrix for a Stacks app. The foundation is already in the project:
937
+
938
+ * **Components:** `@stacksjs/ui` (Stacks UI). Headless primitives + Craft native components + `Transition`. See [stacks-ui](../stacks-ui).
939
+ * **Styling:** Crosswind utilities + `dark:` variant. See [stacks-crosswind](../stacks-crosswind).
940
+ * **Icons:** Iconify `i-{collection}-{name}` classes (hugeicons default). No install needed.
941
+ * **Templating / reactivity / motion composables:** stx (see [stacks-stx](../stacks-stx)) and [stacks-composables](../stacks-composables).
942
+
943
+ Do NOT `npm install` Fluent, Carbon, Material, Radix, or shadcn into a Stacks app. Aesthetic directions (glassmorphism, bento, brutalism, editorial, aurora) are built with native CSS + Crosswind, not a package.
944
+
945
+ ## Appendix B - Glassmorphism: honest web approximation (pure CSS)
946
+
947
+ Web glassmorphism is an approximation, not Apple's native Liquid Glass material (Apple documents that for Apple platforms only; there is no official web CSS package). Label it as an approximation in comments. This is pure CSS and retargeted to Crosswind: use utilities where they exist (`backdrop-blur`, `border-white/10`), and the `<style>` block for the layered highlights.
948
+
949
+ ```css
950
+ /* web glassmorphism approximation (NOT Apple Liquid Glass) */
951
+ .glass-approx {
952
+ position: relative;
953
+ isolation: isolate;
954
+ overflow: hidden;
955
+ border-radius: 999px;
956
+ border: 1px solid rgb(255 255 255 / .32);
957
+ background:
958
+ linear-gradient(135deg, rgb(255 255 255 / .30), rgb(255 255 255 / .08)),
959
+ rgb(255 255 255 / .12);
960
+ backdrop-filter: blur(24px) saturate(180%) contrast(1.05);
961
+ -webkit-backdrop-filter: blur(24px) saturate(180%) contrast(1.05);
962
+ box-shadow:
963
+ inset 0 1px 0 rgb(255 255 255 / .48),
964
+ inset 0 -1px 0 rgb(255 255 255 / .12),
965
+ 0 18px 60px rgb(0 0 0 / .18);
966
+ }
967
+
968
+ .glass-approx::before {
969
+ content: "";
970
+ position: absolute;
971
+ inset: 0;
972
+ z-index: -1;
973
+ border-radius: inherit;
974
+ background:
975
+ radial-gradient(circle at 20% 0%, rgb(255 255 255 / .55), transparent 34%),
976
+ linear-gradient(90deg, rgb(255 255 255 / .18), transparent 42%, rgb(255 255 255 / .14));
977
+ pointer-events: none;
978
+ }
979
+
980
+ .glass-approx::after {
981
+ content: "";
982
+ position: absolute;
983
+ inset: 1px;
984
+ border-radius: inherit;
985
+ border: 1px solid rgb(255 255 255 / .14);
986
+ pointer-events: none;
987
+ }
988
+
989
+ /* dark mode: pair with the Crosswind dark: variant at the call site if you prefer */
990
+ @media (prefers-color-scheme: dark) {
991
+ .glass-approx {
992
+ border-color: rgb(255 255 255 / .18);
993
+ background:
994
+ linear-gradient(135deg, rgb(255 255 255 / .16), rgb(255 255 255 / .04)),
995
+ rgb(15 23 42 / .42);
996
+ box-shadow:
997
+ inset 0 1px 0 rgb(255 255 255 / .22),
998
+ 0 18px 60px rgb(0 0 0 / .42);
999
+ }
1000
+ }
1001
+
1002
+ /* mandatory solid-fill fallback */
1003
+ @media (prefers-reduced-transparency: reduce) {
1004
+ .glass-approx {
1005
+ background: rgb(255 255 255 / .96);
1006
+ backdrop-filter: none;
1007
+ -webkit-backdrop-filter: none;
1008
+ }
1009
+ }
1010
+ ```
1011
+
1012
+ **Important:** `prefers-reduced-transparency` has uneven browser support; test it. Always provide enough contrast even without blur. This is a labeled approximation, not an Apple-issued package.