@aexol/spectral 0.9.270 → 0.9.271
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.
- package/dist/agent/index.d.ts +10 -1
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +26 -10
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/serve.js +29 -5
- package/dist/commands/update.d.ts +2 -2
- package/dist/commands/update.js +3 -3
- package/dist/designer/index.d.ts +13 -18
- package/dist/designer/index.d.ts.map +1 -1
- package/dist/designer/index.js +128 -201
- package/dist/extensions/aexol-mcp.d.ts.map +1 -1
- package/dist/extensions/aexol-mcp.js +23 -0
- package/dist/memory/debug-log.d.ts.map +1 -1
- package/dist/memory/debug-log.js +20 -2
- package/dist/memory/tools/compact-context.d.ts +1 -1
- package/dist/memory/tools/compact-context.d.ts.map +1 -1
- package/dist/memory/tools/compact-context.js +4 -1
- package/dist/memory/tools/recall-observation.d.ts +3 -3
- package/dist/memory/tools/recall-observation.d.ts.map +1 -1
- package/dist/memory/tools/recall-observation.js +4 -1
- package/dist/memory/tools/receive-agent-observations.d.ts +3 -3
- package/dist/memory/tools/receive-agent-observations.d.ts.map +1 -1
- package/dist/memory/tools/receive-agent-observations.js +4 -1
- package/dist/memory/tools/share-project-observation.d.ts +3 -3
- package/dist/memory/tools/share-project-observation.d.ts.map +1 -1
- package/dist/memory/tools/share-project-observation.js +4 -1
- package/dist/memory/tools/write-project-observation.d.ts +3 -3
- package/dist/memory/tools/write-project-observation.d.ts.map +1 -1
- package/dist/memory/tools/write-project-observation.js +4 -1
- package/dist/relay/client.d.ts.map +1 -1
- package/dist/relay/client.js +5 -2
- package/dist/sdk/ai/env-api-keys.js +1 -1
- package/dist/sdk/coding-agent/core/extensions/loader.d.ts.map +1 -1
- package/dist/sdk/coding-agent/core/extensions/loader.js +31 -3
- package/dist/sdk/coding-agent/core/theme.js +1 -1
- package/dist/server/handlers/agent-settings.d.ts.map +1 -1
- package/dist/server/handlers/agent-settings.js +4 -1
- package/dist/server/handlers/settings-lock.d.ts.map +1 -1
- package/dist/server/handlers/settings-lock.js +4 -1
- package/dist/server/storage.d.ts.map +1 -1
- package/dist/server/storage.js +13 -1
- package/dist/utils/serve-state.d.ts +17 -0
- package/dist/utils/serve-state.d.ts.map +1 -1
- package/dist/utils/serve-state.js +73 -0
- package/package.json +1 -1
- package/dist/designer/data/skills/blog-post.d.ts +0 -3
- package/dist/designer/data/skills/blog-post.d.ts.map +0 -1
- package/dist/designer/data/skills/blog-post.js +0 -84
- package/dist/designer/data/skills/blog-post.ts +0 -87
- package/dist/designer/data/skills/critique.d.ts +0 -3
- package/dist/designer/data/skills/critique.d.ts.map +0 -1
- package/dist/designer/data/skills/critique.js +0 -109
- package/dist/designer/data/skills/critique.ts +0 -112
- package/dist/designer/data/skills/dashboard.d.ts +0 -3
- package/dist/designer/data/skills/dashboard.d.ts.map +0 -1
- package/dist/designer/data/skills/dashboard.js +0 -165
- package/dist/designer/data/skills/dashboard.ts +0 -168
- package/dist/designer/data/skills/design-brief.d.ts +0 -3
- package/dist/designer/data/skills/design-brief.d.ts.map +0 -1
- package/dist/designer/data/skills/design-brief.js +0 -141
- package/dist/designer/data/skills/design-brief.ts +0 -144
- package/dist/designer/data/skills/design-skill.d.ts +0 -10
- package/dist/designer/data/skills/design-skill.d.ts.map +0 -1
- package/dist/designer/data/skills/design-skill.js +0 -1
- package/dist/designer/data/skills/design-skill.ts +0 -9
- package/dist/designer/data/skills/docs-page.d.ts +0 -3
- package/dist/designer/data/skills/docs-page.d.ts.map +0 -1
- package/dist/designer/data/skills/docs-page.js +0 -68
- package/dist/designer/data/skills/docs-page.ts +0 -71
- package/dist/designer/data/skills/index.d.ts +0 -3
- package/dist/designer/data/skills/index.d.ts.map +0 -1
- package/dist/designer/data/skills/index.js +0 -28
- package/dist/designer/data/skills/index.ts +0 -30
- package/dist/designer/data/skills/magazine-poster.d.ts +0 -3
- package/dist/designer/data/skills/magazine-poster.d.ts.map +0 -1
- package/dist/designer/data/skills/magazine-poster.js +0 -70
- package/dist/designer/data/skills/magazine-poster.ts +0 -73
- package/dist/designer/data/skills/mobile-app.d.ts +0 -3
- package/dist/designer/data/skills/mobile-app.d.ts.map +0 -1
- package/dist/designer/data/skills/mobile-app.js +0 -229
- package/dist/designer/data/skills/mobile-app.ts +0 -232
- package/dist/designer/data/skills/motion-frames.d.ts +0 -3
- package/dist/designer/data/skills/motion-frames.d.ts.map +0 -1
- package/dist/designer/data/skills/motion-frames.js +0 -121
- package/dist/designer/data/skills/motion-frames.ts +0 -124
- package/dist/designer/data/skills/pricing-page.d.ts +0 -3
- package/dist/designer/data/skills/pricing-page.d.ts.map +0 -1
- package/dist/designer/data/skills/pricing-page.js +0 -76
- package/dist/designer/data/skills/pricing-page.ts +0 -79
- package/dist/designer/data/skills/saas-landing.d.ts +0 -3
- package/dist/designer/data/skills/saas-landing.d.ts.map +0 -1
- package/dist/designer/data/skills/saas-landing.js +0 -71
- package/dist/designer/data/skills/saas-landing.ts +0 -74
- package/dist/designer/data/skills/slide-deck.d.ts +0 -3
- package/dist/designer/data/skills/slide-deck.d.ts.map +0 -1
- package/dist/designer/data/skills/slide-deck.js +0 -213
- package/dist/designer/data/skills/slide-deck.ts +0 -216
- package/dist/designer/data/skills/social-carousel.d.ts +0 -3
- package/dist/designer/data/skills/social-carousel.d.ts.map +0 -1
- package/dist/designer/data/skills/social-carousel.js +0 -135
- package/dist/designer/data/skills/social-carousel.ts +0 -138
- package/dist/designer/data/skills/web-prototype.d.ts +0 -3
- package/dist/designer/data/skills/web-prototype.d.ts.map +0 -1
- package/dist/designer/data/skills/web-prototype.js +0 -159
- package/dist/designer/data/skills/web-prototype.ts +0 -162
- package/dist/designer/data/systems/agentic/DESIGN.md +0 -71
- package/dist/designer/data/systems/agentic/components.html +0 -154
- package/dist/designer/data/systems/agentic/tokens.css +0 -63
- package/dist/designer/data/systems/airbnb/DESIGN.md +0 -393
- package/dist/designer/data/systems/airbnb/components.html +0 -1373
- package/dist/designer/data/systems/airbnb/tokens.css +0 -261
- package/dist/designer/data/systems/airtable/DESIGN.md +0 -92
- package/dist/designer/data/systems/airtable/components.html +0 -489
- package/dist/designer/data/systems/airtable/tokens.css +0 -261
- package/dist/designer/data/systems/ant/DESIGN.md +0 -71
- package/dist/designer/data/systems/ant/components.html +0 -154
- package/dist/designer/data/systems/ant/tokens.css +0 -63
- package/dist/designer/data/systems/apple/DESIGN.md +0 -250
- package/dist/designer/data/systems/apple/components.html +0 -749
- package/dist/designer/data/systems/apple/tokens.css +0 -286
- package/dist/designer/data/systems/application/DESIGN.md +0 -71
- package/dist/designer/data/systems/application/components.html +0 -154
- package/dist/designer/data/systems/application/tokens.css +0 -63
- package/dist/designer/data/systems/arc/DESIGN.md +0 -152
- package/dist/designer/data/systems/arc/components.html +0 -432
- package/dist/designer/data/systems/arc/tokens.css +0 -137
- package/dist/designer/data/systems/artistic/DESIGN.md +0 -71
- package/dist/designer/data/systems/artistic/components.html +0 -136
- package/dist/designer/data/systems/artistic/tokens.css +0 -63
- package/dist/designer/data/systems/atelier-zero/DESIGN.md +0 -316
- package/dist/designer/data/systems/atelier-zero/components.html +0 -136
- package/dist/designer/data/systems/atelier-zero/tokens.css +0 -63
- package/dist/designer/data/systems/bento/DESIGN.md +0 -71
- package/dist/designer/data/systems/bento/components.html +0 -136
- package/dist/designer/data/systems/bento/tokens.css +0 -63
- package/dist/designer/data/systems/binance/DESIGN.md +0 -348
- package/dist/designer/data/systems/binance/components.html +0 -550
- package/dist/designer/data/systems/binance/tokens.css +0 -255
- package/dist/designer/data/systems/bmw/DESIGN.md +0 -183
- package/dist/designer/data/systems/bmw/components.html +0 -551
- package/dist/designer/data/systems/bmw/tokens.css +0 -179
- package/dist/designer/data/systems/bmw-m/DESIGN.md +0 -246
- package/dist/designer/data/systems/bmw-m/components.html +0 -342
- package/dist/designer/data/systems/bmw-m/tokens.css +0 -64
- package/dist/designer/data/systems/bold/DESIGN.md +0 -71
- package/dist/designer/data/systems/bold/components.html +0 -136
- package/dist/designer/data/systems/bold/tokens.css +0 -63
- package/dist/designer/data/systems/brutalism/DESIGN.md +0 -71
- package/dist/designer/data/systems/brutalism/components.html +0 -154
- package/dist/designer/data/systems/brutalism/tokens.css +0 -63
- package/dist/designer/data/systems/bugatti/DESIGN.md +0 -271
- package/dist/designer/data/systems/bugatti/components.html +0 -342
- package/dist/designer/data/systems/bugatti/tokens.css +0 -64
- package/dist/designer/data/systems/cafe/DESIGN.md +0 -71
- package/dist/designer/data/systems/cafe/components.html +0 -136
- package/dist/designer/data/systems/cafe/tokens.css +0 -63
- package/dist/designer/data/systems/cal/DESIGN.md +0 -262
- package/dist/designer/data/systems/cal/components.html +0 -376
- package/dist/designer/data/systems/cal/tokens.css +0 -265
- package/dist/designer/data/systems/canva/DESIGN.md +0 -157
- package/dist/designer/data/systems/canva/components.html +0 -461
- package/dist/designer/data/systems/canva/tokens.css +0 -147
- package/dist/designer/data/systems/cisco/DESIGN.md +0 -201
- package/dist/designer/data/systems/cisco/components.html +0 -342
- package/dist/designer/data/systems/cisco/tokens.css +0 -64
- package/dist/designer/data/systems/claude/DESIGN.md +0 -315
- package/dist/designer/data/systems/claude/components.html +0 -483
- package/dist/designer/data/systems/claude/tokens.css +0 -130
- package/dist/designer/data/systems/clay/DESIGN.md +0 -307
- package/dist/designer/data/systems/clay/components.html +0 -136
- package/dist/designer/data/systems/clay/tokens.css +0 -63
- package/dist/designer/data/systems/claymorphism/DESIGN.md +0 -71
- package/dist/designer/data/systems/claymorphism/components.html +0 -136
- package/dist/designer/data/systems/claymorphism/tokens.css +0 -63
- package/dist/designer/data/systems/clean/DESIGN.md +0 -71
- package/dist/designer/data/systems/clean/components.html +0 -136
- package/dist/designer/data/systems/clean/tokens.css +0 -63
- package/dist/designer/data/systems/clickhouse/DESIGN.md +0 -284
- package/dist/designer/data/systems/clickhouse/components.html +0 -506
- package/dist/designer/data/systems/clickhouse/tokens.css +0 -135
- package/dist/designer/data/systems/cohere/DESIGN.md +0 -269
- package/dist/designer/data/systems/cohere/components.html +0 -353
- package/dist/designer/data/systems/cohere/tokens.css +0 -126
- package/dist/designer/data/systems/coinbase/DESIGN.md +0 -132
- package/dist/designer/data/systems/coinbase/components.html +0 -501
- package/dist/designer/data/systems/coinbase/tokens.css +0 -257
- package/dist/designer/data/systems/colorful/DESIGN.md +0 -71
- package/dist/designer/data/systems/colorful/components.html +0 -136
- package/dist/designer/data/systems/colorful/tokens.css +0 -63
- package/dist/designer/data/systems/composio/DESIGN.md +0 -310
- package/dist/designer/data/systems/composio/components.html +0 -342
- package/dist/designer/data/systems/composio/tokens.css +0 -64
- package/dist/designer/data/systems/contemporary/DESIGN.md +0 -71
- package/dist/designer/data/systems/contemporary/components.html +0 -136
- package/dist/designer/data/systems/contemporary/tokens.css +0 -63
- package/dist/designer/data/systems/corporate/DESIGN.md +0 -71
- package/dist/designer/data/systems/corporate/components.html +0 -136
- package/dist/designer/data/systems/corporate/tokens.css +0 -63
- package/dist/designer/data/systems/cosmic/DESIGN.md +0 -71
- package/dist/designer/data/systems/cosmic/components.html +0 -136
- package/dist/designer/data/systems/cosmic/tokens.css +0 -63
- package/dist/designer/data/systems/creative/DESIGN.md +0 -71
- package/dist/designer/data/systems/creative/components.html +0 -136
- package/dist/designer/data/systems/creative/tokens.css +0 -63
- package/dist/designer/data/systems/cursor/DESIGN.md +0 -312
- package/dist/designer/data/systems/cursor/components.html +0 -654
- package/dist/designer/data/systems/cursor/tokens.css +0 -218
- package/dist/designer/data/systems/dashboard/DESIGN.md +0 -71
- package/dist/designer/data/systems/dashboard/components.html +0 -154
- package/dist/designer/data/systems/dashboard/tokens.css +0 -63
- package/dist/designer/data/systems/default/DESIGN.md +0 -62
- package/dist/designer/data/systems/default/components.html +0 -523
- package/dist/designer/data/systems/default/tokens.css +0 -200
- package/dist/designer/data/systems/discord/DESIGN.md +0 -162
- package/dist/designer/data/systems/discord/components.html +0 -359
- package/dist/designer/data/systems/discord/tokens.css +0 -125
- package/dist/designer/data/systems/dithered/DESIGN.md +0 -71
- package/dist/designer/data/systems/dithered/components.html +0 -136
- package/dist/designer/data/systems/dithered/tokens.css +0 -63
- package/dist/designer/data/systems/doodle/DESIGN.md +0 -71
- package/dist/designer/data/systems/doodle/components.html +0 -136
- package/dist/designer/data/systems/doodle/tokens.css +0 -63
- package/dist/designer/data/systems/dramatic/DESIGN.md +0 -71
- package/dist/designer/data/systems/dramatic/components.html +0 -136
- package/dist/designer/data/systems/dramatic/tokens.css +0 -63
- package/dist/designer/data/systems/duolingo/DESIGN.md +0 -154
- package/dist/designer/data/systems/duolingo/components.html +0 -532
- package/dist/designer/data/systems/duolingo/tokens.css +0 -130
- package/dist/designer/data/systems/editorial/DESIGN.md +0 -71
- package/dist/designer/data/systems/editorial/components.html +0 -154
- package/dist/designer/data/systems/editorial/tokens.css +0 -63
- package/dist/designer/data/systems/elegant/DESIGN.md +0 -71
- package/dist/designer/data/systems/elegant/components.html +0 -136
- package/dist/designer/data/systems/elegant/tokens.css +0 -63
- package/dist/designer/data/systems/elevenlabs/DESIGN.md +0 -268
- package/dist/designer/data/systems/elevenlabs/components.html +0 -342
- package/dist/designer/data/systems/elevenlabs/tokens.css +0 -127
- package/dist/designer/data/systems/energetic/DESIGN.md +0 -72
- package/dist/designer/data/systems/energetic/components.html +0 -136
- package/dist/designer/data/systems/energetic/tokens.css +0 -63
- package/dist/designer/data/systems/enterprise/DESIGN.md +0 -71
- package/dist/designer/data/systems/enterprise/components.html +0 -154
- package/dist/designer/data/systems/enterprise/tokens.css +0 -63
- package/dist/designer/data/systems/expo/DESIGN.md +0 -284
- package/dist/designer/data/systems/expo/components.html +0 -342
- package/dist/designer/data/systems/expo/tokens.css +0 -64
- package/dist/designer/data/systems/expressive/DESIGN.md +0 -71
- package/dist/designer/data/systems/expressive/components.html +0 -136
- package/dist/designer/data/systems/expressive/tokens.css +0 -63
- package/dist/designer/data/systems/fantasy/DESIGN.md +0 -71
- package/dist/designer/data/systems/fantasy/components.html +0 -136
- package/dist/designer/data/systems/fantasy/tokens.css +0 -63
- package/dist/designer/data/systems/ferrari/DESIGN.md +0 -317
- package/dist/designer/data/systems/ferrari/components.html +0 -342
- package/dist/designer/data/systems/ferrari/tokens.css +0 -64
- package/dist/designer/data/systems/figma/DESIGN.md +0 -223
- package/dist/designer/data/systems/figma/components.html +0 -344
- package/dist/designer/data/systems/figma/tokens.css +0 -126
- package/dist/designer/data/systems/flat/DESIGN.md +0 -71
- package/dist/designer/data/systems/flat/components.html +0 -136
- package/dist/designer/data/systems/flat/tokens.css +0 -63
- package/dist/designer/data/systems/framer/DESIGN.md +0 -249
- package/dist/designer/data/systems/framer/components.html +0 -438
- package/dist/designer/data/systems/framer/tokens.css +0 -238
- package/dist/designer/data/systems/friendly/DESIGN.md +0 -71
- package/dist/designer/data/systems/friendly/components.html +0 -136
- package/dist/designer/data/systems/friendly/tokens.css +0 -63
- package/dist/designer/data/systems/futuristic/DESIGN.md +0 -71
- package/dist/designer/data/systems/futuristic/components.html +0 -136
- package/dist/designer/data/systems/futuristic/tokens.css +0 -63
- package/dist/designer/data/systems/github/DESIGN.md +0 -155
- package/dist/designer/data/systems/github/components.html +0 -383
- package/dist/designer/data/systems/github/tokens.css +0 -125
- package/dist/designer/data/systems/glassmorphism/DESIGN.md +0 -71
- package/dist/designer/data/systems/glassmorphism/components.html +0 -154
- package/dist/designer/data/systems/glassmorphism/tokens.css +0 -63
- package/dist/designer/data/systems/gradient/DESIGN.md +0 -71
- package/dist/designer/data/systems/gradient/components.html +0 -154
- package/dist/designer/data/systems/gradient/tokens.css +0 -63
- package/dist/designer/data/systems/hashicorp/DESIGN.md +0 -281
- package/dist/designer/data/systems/hashicorp/components.html +0 -502
- package/dist/designer/data/systems/hashicorp/tokens.css +0 -272
- package/dist/designer/data/systems/hud/DESIGN.md +0 -173
- package/dist/designer/data/systems/hud/components.html +0 -136
- package/dist/designer/data/systems/hud/tokens.css +0 -63
- package/dist/designer/data/systems/huggingface/DESIGN.md +0 -149
- package/dist/designer/data/systems/huggingface/components.html +0 -346
- package/dist/designer/data/systems/huggingface/tokens.css +0 -125
- package/dist/designer/data/systems/ibm/DESIGN.md +0 -335
- package/dist/designer/data/systems/ibm/components.html +0 -342
- package/dist/designer/data/systems/ibm/tokens.css +0 -64
- package/dist/designer/data/systems/intercom/DESIGN.md +0 -149
- package/dist/designer/data/systems/intercom/components.html +0 -557
- package/dist/designer/data/systems/intercom/tokens.css +0 -150
- package/dist/designer/data/systems/kami/DESIGN.md +0 -410
- package/dist/designer/data/systems/kami/components.html +0 -601
- package/dist/designer/data/systems/kami/tokens.css +0 -272
- package/dist/designer/data/systems/kraken/DESIGN.md +0 -128
- package/dist/designer/data/systems/kraken/components.html +0 -342
- package/dist/designer/data/systems/kraken/tokens.css +0 -64
- package/dist/designer/data/systems/lamborghini/DESIGN.md +0 -291
- package/dist/designer/data/systems/lamborghini/components.html +0 -342
- package/dist/designer/data/systems/lamborghini/tokens.css +0 -64
- package/dist/designer/data/systems/levels/DESIGN.md +0 -71
- package/dist/designer/data/systems/levels/components.html +0 -154
- package/dist/designer/data/systems/levels/tokens.css +0 -63
- package/dist/designer/data/systems/linear-app/DESIGN.md +0 -370
- package/dist/designer/data/systems/linear-app/components.html +0 -370
- package/dist/designer/data/systems/linear-app/tokens.css +0 -130
- package/dist/designer/data/systems/lingo/DESIGN.md +0 -71
- package/dist/designer/data/systems/lingo/components.html +0 -154
- package/dist/designer/data/systems/lingo/tokens.css +0 -63
- package/dist/designer/data/systems/loom/DESIGN.md +0 -201
- package/dist/designer/data/systems/loom/components.html +0 -446
- package/dist/designer/data/systems/loom/tokens.css +0 -138
- package/dist/designer/data/systems/lovable/DESIGN.md +0 -301
- package/dist/designer/data/systems/lovable/components.html +0 -441
- package/dist/designer/data/systems/lovable/tokens.css +0 -258
- package/dist/designer/data/systems/luxury/DESIGN.md +0 -71
- package/dist/designer/data/systems/luxury/components.html +0 -154
- package/dist/designer/data/systems/luxury/tokens.css +0 -63
- package/dist/designer/data/systems/mastercard/DESIGN.md +0 -368
- package/dist/designer/data/systems/mastercard/components.html +0 -342
- package/dist/designer/data/systems/mastercard/tokens.css +0 -64
- package/dist/designer/data/systems/material/DESIGN.md +0 -71
- package/dist/designer/data/systems/material/components.html +0 -154
- package/dist/designer/data/systems/material/tokens.css +0 -63
- package/dist/designer/data/systems/meta/DESIGN.md +0 -369
- package/dist/designer/data/systems/meta/components.html +0 -398
- package/dist/designer/data/systems/meta/tokens.css +0 -263
- package/dist/designer/data/systems/minimal/DESIGN.md +0 -71
- package/dist/designer/data/systems/minimal/components.html +0 -154
- package/dist/designer/data/systems/minimal/tokens.css +0 -63
- package/dist/designer/data/systems/minimax/DESIGN.md +0 -260
- package/dist/designer/data/systems/minimax/components.html +0 -590
- package/dist/designer/data/systems/minimax/tokens.css +0 -148
- package/dist/designer/data/systems/mintlify/DESIGN.md +0 -329
- package/dist/designer/data/systems/mintlify/components.html +0 -737
- package/dist/designer/data/systems/mintlify/tokens.css +0 -256
- package/dist/designer/data/systems/miro/DESIGN.md +0 -111
- package/dist/designer/data/systems/miro/components.html +0 -342
- package/dist/designer/data/systems/miro/tokens.css +0 -64
- package/dist/designer/data/systems/mission-control/DESIGN.md +0 -474
- package/dist/designer/data/systems/mission-control/components.html +0 -136
- package/dist/designer/data/systems/mission-control/tokens.css +0 -63
- package/dist/designer/data/systems/mistral-ai/DESIGN.md +0 -264
- package/dist/designer/data/systems/mistral-ai/components.html +0 -338
- package/dist/designer/data/systems/mistral-ai/tokens.css +0 -125
- package/dist/designer/data/systems/modern/DESIGN.md +0 -71
- package/dist/designer/data/systems/modern/components.html +0 -154
- package/dist/designer/data/systems/modern/tokens.css +0 -63
- package/dist/designer/data/systems/mongodb/DESIGN.md +0 -269
- package/dist/designer/data/systems/mongodb/components.html +0 -462
- package/dist/designer/data/systems/mongodb/tokens.css +0 -176
- package/dist/designer/data/systems/mono/DESIGN.md +0 -71
- package/dist/designer/data/systems/mono/components.html +0 -136
- package/dist/designer/data/systems/mono/tokens.css +0 -63
- package/dist/designer/data/systems/neobrutalism/DESIGN.md +0 -71
- package/dist/designer/data/systems/neobrutalism/components.html +0 -136
- package/dist/designer/data/systems/neobrutalism/tokens.css +0 -63
- package/dist/designer/data/systems/neon/DESIGN.md +0 -71
- package/dist/designer/data/systems/neon/components.html +0 -136
- package/dist/designer/data/systems/neon/tokens.css +0 -63
- package/dist/designer/data/systems/neumorphism/DESIGN.md +0 -71
- package/dist/designer/data/systems/neumorphism/components.html +0 -136
- package/dist/designer/data/systems/neumorphism/tokens.css +0 -63
- package/dist/designer/data/systems/nike/DESIGN.md +0 -366
- package/dist/designer/data/systems/nike/components.html +0 -512
- package/dist/designer/data/systems/nike/tokens.css +0 -304
- package/dist/designer/data/systems/notion/DESIGN.md +0 -312
- package/dist/designer/data/systems/notion/components.html +0 -413
- package/dist/designer/data/systems/notion/tokens.css +0 -130
- package/dist/designer/data/systems/nvidia/DESIGN.md +0 -296
- package/dist/designer/data/systems/nvidia/components.html +0 -414
- package/dist/designer/data/systems/nvidia/tokens.css +0 -133
- package/dist/designer/data/systems/ollama/DESIGN.md +0 -270
- package/dist/designer/data/systems/ollama/components.html +0 -700
- package/dist/designer/data/systems/ollama/tokens.css +0 -242
- package/dist/designer/data/systems/openai/DESIGN.md +0 -140
- package/dist/designer/data/systems/openai/components.html +0 -382
- package/dist/designer/data/systems/openai/tokens.css +0 -133
- package/dist/designer/data/systems/opencode-ai/DESIGN.md +0 -284
- package/dist/designer/data/systems/opencode-ai/components.html +0 -389
- package/dist/designer/data/systems/opencode-ai/tokens.css +0 -126
- package/dist/designer/data/systems/pacman/DESIGN.md +0 -71
- package/dist/designer/data/systems/pacman/components.html +0 -342
- package/dist/designer/data/systems/pacman/tokens.css +0 -64
- package/dist/designer/data/systems/paper/DESIGN.md +0 -71
- package/dist/designer/data/systems/paper/components.html +0 -136
- package/dist/designer/data/systems/paper/tokens.css +0 -63
- package/dist/designer/data/systems/perplexity/DESIGN.md +0 -286
- package/dist/designer/data/systems/perplexity/components.html +0 -455
- package/dist/designer/data/systems/perplexity/tokens.css +0 -151
- package/dist/designer/data/systems/perspective/DESIGN.md +0 -71
- package/dist/designer/data/systems/perspective/components.html +0 -136
- package/dist/designer/data/systems/perspective/tokens.css +0 -63
- package/dist/designer/data/systems/pinterest/DESIGN.md +0 -233
- package/dist/designer/data/systems/pinterest/components.html +0 -865
- package/dist/designer/data/systems/pinterest/tokens.css +0 -262
- package/dist/designer/data/systems/playstation/DESIGN.md +0 -367
- package/dist/designer/data/systems/playstation/components.html +0 -414
- package/dist/designer/data/systems/playstation/tokens.css +0 -150
- package/dist/designer/data/systems/posthog/DESIGN.md +0 -259
- package/dist/designer/data/systems/posthog/components.html +0 -827
- package/dist/designer/data/systems/posthog/tokens.css +0 -272
- package/dist/designer/data/systems/premium/DESIGN.md +0 -71
- package/dist/designer/data/systems/premium/components.html +0 -154
- package/dist/designer/data/systems/premium/tokens.css +0 -63
- package/dist/designer/data/systems/professional/DESIGN.md +0 -71
- package/dist/designer/data/systems/professional/components.html +0 -136
- package/dist/designer/data/systems/professional/tokens.css +0 -63
- package/dist/designer/data/systems/publication/DESIGN.md +0 -71
- package/dist/designer/data/systems/publication/components.html +0 -154
- package/dist/designer/data/systems/publication/tokens.css +0 -63
- package/dist/designer/data/systems/raycast/DESIGN.md +0 -271
- package/dist/designer/data/systems/raycast/components.html +0 -507
- package/dist/designer/data/systems/raycast/tokens.css +0 -143
- package/dist/designer/data/systems/refined/DESIGN.md +0 -71
- package/dist/designer/data/systems/refined/components.html +0 -136
- package/dist/designer/data/systems/refined/tokens.css +0 -63
- package/dist/designer/data/systems/renault/DESIGN.md +0 -314
- package/dist/designer/data/systems/renault/components.html +0 -154
- package/dist/designer/data/systems/renault/tokens.css +0 -63
- package/dist/designer/data/systems/replicate/DESIGN.md +0 -264
- package/dist/designer/data/systems/replicate/components.html +0 -340
- package/dist/designer/data/systems/replicate/tokens.css +0 -125
- package/dist/designer/data/systems/resend/DESIGN.md +0 -306
- package/dist/designer/data/systems/resend/components.html +0 -839
- package/dist/designer/data/systems/resend/tokens.css +0 -353
- package/dist/designer/data/systems/retro/DESIGN.md +0 -71
- package/dist/designer/data/systems/retro/components.html +0 -136
- package/dist/designer/data/systems/retro/tokens.css +0 -63
- package/dist/designer/data/systems/revolut/DESIGN.md +0 -188
- package/dist/designer/data/systems/revolut/components.html +0 -342
- package/dist/designer/data/systems/revolut/tokens.css +0 -64
- package/dist/designer/data/systems/runwayml/DESIGN.md +0 -247
- package/dist/designer/data/systems/runwayml/components.html +0 -638
- package/dist/designer/data/systems/runwayml/tokens.css +0 -204
- package/dist/designer/data/systems/sanity/DESIGN.md +0 -360
- package/dist/designer/data/systems/sanity/components.html +0 -342
- package/dist/designer/data/systems/sanity/tokens.css +0 -64
- package/dist/designer/data/systems/sentry/DESIGN.md +0 -265
- package/dist/designer/data/systems/sentry/components.html +0 -387
- package/dist/designer/data/systems/sentry/tokens.css +0 -219
- package/dist/designer/data/systems/shadcn/DESIGN.md +0 -71
- package/dist/designer/data/systems/shadcn/components.html +0 -732
- package/dist/designer/data/systems/shadcn/tokens.css +0 -255
- package/dist/designer/data/systems/shopify/DESIGN.md +0 -353
- package/dist/designer/data/systems/shopify/components.html +0 -342
- package/dist/designer/data/systems/shopify/tokens.css +0 -141
- package/dist/designer/data/systems/simple/DESIGN.md +0 -71
- package/dist/designer/data/systems/simple/components.html +0 -136
- package/dist/designer/data/systems/simple/tokens.css +0 -63
- package/dist/designer/data/systems/skeumorphism/DESIGN.md +0 -71
- package/dist/designer/data/systems/skeumorphism/components.html +0 -136
- package/dist/designer/data/systems/skeumorphism/tokens.css +0 -63
- package/dist/designer/data/systems/slack/DESIGN.md +0 -363
- package/dist/designer/data/systems/slack/components.html +0 -387
- package/dist/designer/data/systems/slack/tokens.css +0 -127
- package/dist/designer/data/systems/sleek/DESIGN.md +0 -71
- package/dist/designer/data/systems/sleek/components.html +0 -136
- package/dist/designer/data/systems/sleek/tokens.css +0 -63
- package/dist/designer/data/systems/spacex/DESIGN.md +0 -197
- package/dist/designer/data/systems/spacex/components.html +0 -496
- package/dist/designer/data/systems/spacex/tokens.css +0 -154
- package/dist/designer/data/systems/spacious/DESIGN.md +0 -71
- package/dist/designer/data/systems/spacious/components.html +0 -136
- package/dist/designer/data/systems/spacious/tokens.css +0 -63
- package/dist/designer/data/systems/spotify/DESIGN.md +0 -249
- package/dist/designer/data/systems/spotify/components.html +0 -365
- package/dist/designer/data/systems/spotify/tokens.css +0 -127
- package/dist/designer/data/systems/starbucks/DESIGN.md +0 -583
- package/dist/designer/data/systems/starbucks/components.html +0 -493
- package/dist/designer/data/systems/starbucks/tokens.css +0 -182
- package/dist/designer/data/systems/storytelling/DESIGN.md +0 -71
- package/dist/designer/data/systems/storytelling/components.html +0 -136
- package/dist/designer/data/systems/storytelling/tokens.css +0 -63
- package/dist/designer/data/systems/stripe/DESIGN.md +0 -325
- package/dist/designer/data/systems/stripe/components.html +0 -1018
- package/dist/designer/data/systems/stripe/tokens.css +0 -295
- package/dist/designer/data/systems/supabase/DESIGN.md +0 -258
- package/dist/designer/data/systems/supabase/components.html +0 -741
- package/dist/designer/data/systems/supabase/tokens.css +0 -294
- package/dist/designer/data/systems/superhuman/DESIGN.md +0 -255
- package/dist/designer/data/systems/superhuman/components.html +0 -537
- package/dist/designer/data/systems/superhuman/tokens.css +0 -160
- package/dist/designer/data/systems/tesla/DESIGN.md +0 -289
- package/dist/designer/data/systems/tesla/components.html +0 -724
- package/dist/designer/data/systems/tesla/tokens.css +0 -285
- package/dist/designer/data/systems/tetris/DESIGN.md +0 -71
- package/dist/designer/data/systems/tetris/components.html +0 -342
- package/dist/designer/data/systems/tetris/tokens.css +0 -64
- package/dist/designer/data/systems/theverge/DESIGN.md +0 -342
- package/dist/designer/data/systems/theverge/components.html +0 -342
- package/dist/designer/data/systems/theverge/tokens.css +0 -64
- package/dist/designer/data/systems/together-ai/DESIGN.md +0 -266
- package/dist/designer/data/systems/together-ai/components.html +0 -422
- package/dist/designer/data/systems/together-ai/tokens.css +0 -127
- package/dist/designer/data/systems/totality-festival/DESIGN.md +0 -206
- package/dist/designer/data/systems/totality-festival/components.html +0 -136
- package/dist/designer/data/systems/totality-festival/tokens.css +0 -63
- package/dist/designer/data/systems/trading-terminal/DESIGN.md +0 -178
- package/dist/designer/data/systems/trading-terminal/components.html +0 -154
- package/dist/designer/data/systems/trading-terminal/tokens.css +0 -63
- package/dist/designer/data/systems/uber/DESIGN.md +0 -298
- package/dist/designer/data/systems/uber/components.html +0 -347
- package/dist/designer/data/systems/uber/tokens.css +0 -131
- package/dist/designer/data/systems/urdu/DESIGN.md +0 -1002
- package/dist/designer/data/systems/urdu/components.html +0 -136
- package/dist/designer/data/systems/urdu/tokens.css +0 -63
- package/dist/designer/data/systems/vercel/DESIGN.md +0 -313
- package/dist/designer/data/systems/vercel/components.html +0 -839
- package/dist/designer/data/systems/vercel/tokens.css +0 -270
- package/dist/designer/data/systems/vibrant/DESIGN.md +0 -71
- package/dist/designer/data/systems/vibrant/components.html +0 -136
- package/dist/designer/data/systems/vibrant/tokens.css +0 -63
- package/dist/designer/data/systems/vintage/DESIGN.md +0 -71
- package/dist/designer/data/systems/vintage/components.html +0 -136
- package/dist/designer/data/systems/vintage/tokens.css +0 -63
- package/dist/designer/data/systems/vodafone/DESIGN.md +0 -426
- package/dist/designer/data/systems/vodafone/components.html +0 -342
- package/dist/designer/data/systems/vodafone/tokens.css +0 -64
- package/dist/designer/data/systems/voltagent/DESIGN.md +0 -326
- package/dist/designer/data/systems/voltagent/components.html +0 -154
- package/dist/designer/data/systems/voltagent/tokens.css +0 -63
- package/dist/designer/data/systems/warm-editorial/DESIGN.md +0 -65
- package/dist/designer/data/systems/warm-editorial/components.html +0 -136
- package/dist/designer/data/systems/warm-editorial/tokens.css +0 -63
- package/dist/designer/data/systems/warp/DESIGN.md +0 -256
- package/dist/designer/data/systems/warp/components.html +0 -411
- package/dist/designer/data/systems/warp/tokens.css +0 -156
- package/dist/designer/data/systems/webex/DESIGN.md +0 -207
- package/dist/designer/data/systems/webex/components.html +0 -342
- package/dist/designer/data/systems/webex/tokens.css +0 -64
- package/dist/designer/data/systems/webflow/DESIGN.md +0 -95
- package/dist/designer/data/systems/webflow/components.html +0 -413
- package/dist/designer/data/systems/webflow/tokens.css +0 -191
- package/dist/designer/data/systems/wechat/DESIGN.md +0 -302
- package/dist/designer/data/systems/wechat/components.html +0 -507
- package/dist/designer/data/systems/wechat/tokens.css +0 -176
- package/dist/designer/data/systems/wired/DESIGN.md +0 -281
- package/dist/designer/data/systems/wired/components.html +0 -342
- package/dist/designer/data/systems/wired/tokens.css +0 -64
- package/dist/designer/data/systems/wise/DESIGN.md +0 -176
- package/dist/designer/data/systems/wise/components.html +0 -365
- package/dist/designer/data/systems/wise/tokens.css +0 -141
- package/dist/designer/data/systems/x-ai/DESIGN.md +0 -260
- package/dist/designer/data/systems/x-ai/components.html +0 -460
- package/dist/designer/data/systems/x-ai/tokens.css +0 -268
- package/dist/designer/data/systems/xiaohongshu/DESIGN.md +0 -402
- package/dist/designer/data/systems/xiaohongshu/components.html +0 -865
- package/dist/designer/data/systems/xiaohongshu/tokens.css +0 -193
- package/dist/designer/data/systems/zapier/DESIGN.md +0 -331
- package/dist/designer/data/systems/zapier/components.html +0 -342
- package/dist/designer/data/systems/zapier/tokens.css +0 -64
- package/dist/designer/guidelines.d.ts +0 -23
- package/dist/designer/guidelines.d.ts.map +0 -1
- package/dist/designer/guidelines.js +0 -176
- package/dist/designer/philosophies.d.ts +0 -33
- package/dist/designer/philosophies.d.ts.map +0 -1
- package/dist/designer/philosophies.js +0 -668
- package/dist/designer/skills.d.ts +0 -21
- package/dist/designer/skills.d.ts.map +0 -1
- package/dist/designer/skills.js +0 -34
- package/dist/designer/systems.d.ts +0 -36
- package/dist/designer/systems.d.ts.map +0 -1
- package/dist/designer/systems.js +0 -221
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type { DesignSkill } from "./design-skill.js";
|
|
2
|
-
|
|
3
|
-
export const magazinePoster: DesignSkill = {
|
|
4
|
-
name: "magazine-poster",
|
|
5
|
-
scenario: "creative",
|
|
6
|
-
description:
|
|
7
|
-
"Editorial magazine poster or spread — bold typography, large-scale display font, dramatic image/color blocking. Magazine-cover aesthetic with strong visual hierarchy.",
|
|
8
|
-
outputKind: "html",
|
|
9
|
-
workflow: `# Magazine Poster Skill
|
|
10
|
-
|
|
11
|
-
Produce an editorial magazine poster or spread. Bold typography, large-scale display font, dramatic layout — the kind of image that could be a magazine cover or poster.
|
|
12
|
-
|
|
13
|
-
## Phase 1 — Determine Format
|
|
14
|
-
|
|
15
|
-
- **Poster** (A3-ish: 960×1358px or similar portrait ratio) — single bold composition
|
|
16
|
-
- **Magazine spread** (landscape: 1440×960px or similar) — two-page feel with gutter
|
|
17
|
-
- **Social cover** (square: 1080×1080px) — optimized for social sharing
|
|
18
|
-
|
|
19
|
-
## Phase 2 — Composition Modes
|
|
20
|
-
|
|
21
|
-
### Mode A: Typography-first
|
|
22
|
-
Big display text dominates. Color block background, minimal elements. Font scale carries the energy.
|
|
23
|
-
\`\`\`css
|
|
24
|
-
.poster { width: 960px; height: 1358px; background: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: 80px; position: relative; overflow: hidden; }
|
|
25
|
-
.poster-eyebrow { font-size: 14px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 24px; }
|
|
26
|
-
.poster-headline { font-family: var(--font-display, var(--font-body)); font-size: 96px; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
|
|
27
|
-
.poster-subhead { font-size: 24px; color: var(--muted); margin-top: 32px; max-width: 600px; line-height: 1.5; }
|
|
28
|
-
.poster-issue { position: absolute; bottom: 60px; left: 80px; font-size: 14px; color: var(--muted); }
|
|
29
|
-
\`\`\`
|
|
30
|
-
|
|
31
|
-
### Mode B: Image-first
|
|
32
|
-
Large image dominates 70% of the canvas, typography overlays or sits below.
|
|
33
|
-
\`\`\`css
|
|
34
|
-
.poster-image-first { width: 960px; height: 1358px; display: grid; grid-template-rows: 1fr auto; background: var(--bg); }
|
|
35
|
-
.poster-image { width: 100%; height: 100%; object-fit: cover; background: linear-gradient(135deg, var(--accent), var(--surface)); }
|
|
36
|
-
.poster-text-block { padding: 48px 64px; }
|
|
37
|
-
\`\`\`
|
|
38
|
-
|
|
39
|
-
### Mode C: Split-screen
|
|
40
|
-
Two-panel composition — color block left, image right (or vice versa).
|
|
41
|
-
\`\`\`css
|
|
42
|
-
.poster-split { width: 1440px; height: 960px; display: grid; grid-template-columns: 1fr 1fr; }
|
|
43
|
-
.poster-split-panel { display: flex; flex-direction: column; justify-content: center; padding: 80px; }
|
|
44
|
-
.poster-split-panel.left { background: var(--accent); color: var(--accent-on, white); }
|
|
45
|
-
.poster-split-panel.right { background: var(--bg); }
|
|
46
|
-
\`\`\`
|
|
47
|
-
|
|
48
|
-
## Phase 3 — Typography Scale
|
|
49
|
-
|
|
50
|
-
\`\`\`css
|
|
51
|
-
/* Magazine typography is dramatic — go big */
|
|
52
|
-
.display-xxl { font-size: 120px; font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; }
|
|
53
|
-
.display-xl { font-size: 80px; font-weight: 800; line-height: 1.0; letter-spacing: -0.03em; }
|
|
54
|
-
.display-lg { font-size: 56px; font-weight: 700; line-height: 1.1; }
|
|
55
|
-
.poster-body { font-size: 18px; line-height: 1.6; }
|
|
56
|
-
.poster-meta { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
|
|
57
|
-
\`\`\`
|
|
58
|
-
|
|
59
|
-
## Phase 4 — Design Elements
|
|
60
|
-
|
|
61
|
-
- **Accent shapes**: Use ::before/::after pseudo-elements for geometric accents (circles, lines, color blocks)
|
|
62
|
-
- **Photo treatment**: Use mix-blend-mode on images over color backgrounds
|
|
63
|
-
- **Grid lines**: Thin horizontal/vertical rules as structural elements
|
|
64
|
-
- **Page numbers**: ALWAYS include an issue/volume/page-number block
|
|
65
|
-
- **Date line**: MONTH YYYY format in the masthead area
|
|
66
|
-
|
|
67
|
-
## Phase 5 — Anti-Kitsch Rules
|
|
68
|
-
- No emoji in editorial design
|
|
69
|
-
- Use the design system's display font at scale — not a safe web font
|
|
70
|
-
- Headline should create tension: unexpected word break, dramatic line split, or bold claim
|
|
71
|
-
- One focal point per poster — don't make everything compete
|
|
72
|
-
- white-space is intentional, not leftover`,
|
|
73
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mobile-app.d.ts","sourceRoot":"","sources":["../../../../src/designer/data/skills/mobile-app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,SAAS,EAAE,WAqOrB,CAAC"}
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
export const mobileApp = {
|
|
2
|
-
name: "mobile-app",
|
|
3
|
-
scenario: "design",
|
|
4
|
-
description: "Mobile app prototype. Phone-frame-contained HTML with iOS/Android patterns, touch targets, and native-feel interactions.",
|
|
5
|
-
outputKind: "html",
|
|
6
|
-
workflow: `# Mobile App Prototype Skill
|
|
7
|
-
|
|
8
|
-
Produce a mobile app prototype as a single HTML file. Phone-frame contained, touch-friendly, native-feel interactions.
|
|
9
|
-
|
|
10
|
-
## Phase 0 — Pre-flight
|
|
11
|
-
|
|
12
|
-
1. Read the design system for color tokens.
|
|
13
|
-
2. Determine: app name, screens needed (2-5), platform style (iOS or Material).
|
|
14
|
-
3. Vocalize: "I'll build [app name] with [N] screens: [screen names]. [iOS/Material] patterns."
|
|
15
|
-
|
|
16
|
-
## Phase 1 — Shell with Phone Frame
|
|
17
|
-
|
|
18
|
-
Create \`app.html\` with a phone frame wrapper:
|
|
19
|
-
|
|
20
|
-
\`\`\`html
|
|
21
|
-
<!doctype html>
|
|
22
|
-
<html lang="en">
|
|
23
|
-
<head>
|
|
24
|
-
<meta charset="utf-8">
|
|
25
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
26
|
-
<title>App Name</title>
|
|
27
|
-
<style>
|
|
28
|
-
*, *::before, *::after { box-sizing: border-box; margin: 0; }
|
|
29
|
-
|
|
30
|
-
:root {
|
|
31
|
-
--phone-w: 390px;
|
|
32
|
-
--phone-h: 844px;
|
|
33
|
-
--phone-radius: 44px;
|
|
34
|
-
--safe-top: 54px;
|
|
35
|
-
--safe-bottom: 34px;
|
|
36
|
-
/* Design system tokens */
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
body {
|
|
40
|
-
display: flex;
|
|
41
|
-
justify-content: center;
|
|
42
|
-
align-items: center;
|
|
43
|
-
min-height: 100vh;
|
|
44
|
-
background: #f0f0f0;
|
|
45
|
-
font-family: -apple-system, "SF Pro Text", "Inter", sans-serif;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.phone-frame {
|
|
49
|
-
width: var(--phone-w);
|
|
50
|
-
height: var(--phone-h);
|
|
51
|
-
background: var(--color-bg-primary);
|
|
52
|
-
border-radius: var(--phone-radius);
|
|
53
|
-
overflow: hidden;
|
|
54
|
-
position: relative;
|
|
55
|
-
box-shadow: 0 0 0 8px #1a1a1a, 0 0 0 10px #333, 0 20px 60px rgba(0,0,0,0.3);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.status-bar {
|
|
59
|
-
height: var(--safe-top);
|
|
60
|
-
display: flex;
|
|
61
|
-
justify-content: space-between;
|
|
62
|
-
align-items: center;
|
|
63
|
-
padding: 0 24px;
|
|
64
|
-
font-size: 14px;
|
|
65
|
-
font-weight: 600;
|
|
66
|
-
background: var(--color-bg-primary);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.screen {
|
|
70
|
-
position: absolute;
|
|
71
|
-
top: var(--safe-top);
|
|
72
|
-
left: 0;
|
|
73
|
-
right: 0;
|
|
74
|
-
bottom: var(--safe-bottom);
|
|
75
|
-
display: none;
|
|
76
|
-
flex-direction: column;
|
|
77
|
-
overflow-y: auto;
|
|
78
|
-
-webkit-overflow-scrolling: touch;
|
|
79
|
-
}
|
|
80
|
-
.screen.active { display: flex; }
|
|
81
|
-
|
|
82
|
-
.bottom-nav {
|
|
83
|
-
position: absolute;
|
|
84
|
-
bottom: 0;
|
|
85
|
-
left: 0;
|
|
86
|
-
right: 0;
|
|
87
|
-
height: var(--safe-bottom);
|
|
88
|
-
display: flex;
|
|
89
|
-
border-top: 1px solid var(--color-border);
|
|
90
|
-
background: var(--color-bg-surface, var(--color-bg-primary));
|
|
91
|
-
}
|
|
92
|
-
.nav-item {
|
|
93
|
-
flex: 1;
|
|
94
|
-
display: flex;
|
|
95
|
-
flex-direction: column;
|
|
96
|
-
align-items: center;
|
|
97
|
-
justify-content: center;
|
|
98
|
-
gap: 2px;
|
|
99
|
-
font-size: 10px;
|
|
100
|
-
color: var(--color-text-secondary);
|
|
101
|
-
cursor: pointer;
|
|
102
|
-
user-select: none;
|
|
103
|
-
}
|
|
104
|
-
.nav-item.active { color: var(--color-accent); }
|
|
105
|
-
.nav-icon { font-size: 22px; line-height: 1; }
|
|
106
|
-
</style>
|
|
107
|
-
</head>
|
|
108
|
-
<body>
|
|
109
|
-
<div class="phone-frame">
|
|
110
|
-
<div class="status-bar">
|
|
111
|
-
<span>9:41</span>
|
|
112
|
-
<span>●●●○ WiFi ▮▮▮</span>
|
|
113
|
-
</div>
|
|
114
|
-
|
|
115
|
-
<div class="screen active" id="screen-home"><!-- Home content --></div>
|
|
116
|
-
<div class="screen" id="screen-detail"><!-- Detail content --></div>
|
|
117
|
-
<div class="screen" id="screen-settings"><!-- Settings content --></div>
|
|
118
|
-
|
|
119
|
-
<div class="bottom-nav">
|
|
120
|
-
<div class="nav-item active" onclick="showScreen('home')">
|
|
121
|
-
<span class="nav-icon">🏠</span>Home
|
|
122
|
-
</div>
|
|
123
|
-
<div class="nav-item" onclick="showScreen('detail')">
|
|
124
|
-
<span class="nav-icon">🔍</span>Search
|
|
125
|
-
</div>
|
|
126
|
-
<div class="nav-item" onclick="showScreen('settings')">
|
|
127
|
-
<span class="nav-icon">👤</span>Profile
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
|
|
132
|
-
<script>
|
|
133
|
-
function showScreen(id) {
|
|
134
|
-
document.querySelectorAll('.screen').forEach(s => s.classList.remove('active'));
|
|
135
|
-
document.getElementById('screen-' + id).classList.add('active');
|
|
136
|
-
document.querySelectorAll('.nav-item').forEach((n, i) => {
|
|
137
|
-
n.classList.toggle('active', n.textContent.trim().toLowerCase().includes(id));
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
</script>
|
|
141
|
-
</body>
|
|
142
|
-
</html>
|
|
143
|
-
\`\`\`
|
|
144
|
-
|
|
145
|
-
## Phase 2 — Component Patterns
|
|
146
|
-
|
|
147
|
-
### List Item (44px minimum tap target)
|
|
148
|
-
\`\`\`css
|
|
149
|
-
.list-item {
|
|
150
|
-
display: flex;
|
|
151
|
-
align-items: center;
|
|
152
|
-
padding: 12px 16px;
|
|
153
|
-
min-height: 44px;
|
|
154
|
-
gap: 12px;
|
|
155
|
-
border-bottom: 0.5px solid var(--color-border);
|
|
156
|
-
cursor: pointer;
|
|
157
|
-
}
|
|
158
|
-
.list-item:active { background: var(--color-bg-hover, rgba(0,0,0,0.04)); }
|
|
159
|
-
.list-item-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--color-accent); display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; }
|
|
160
|
-
.list-item-content { flex: 1; }
|
|
161
|
-
.list-item-title { font-size: 16px; font-weight: 500; }
|
|
162
|
-
.list-item-subtitle { font-size: 14px; color: var(--color-text-secondary); margin-top: 2px; }
|
|
163
|
-
.list-item-trailing { color: var(--color-text-secondary); font-size: 14px; }
|
|
164
|
-
\`\`\`
|
|
165
|
-
|
|
166
|
-
### Card
|
|
167
|
-
\`\`\`css
|
|
168
|
-
.card {
|
|
169
|
-
background: var(--color-bg-surface, #fff);
|
|
170
|
-
border-radius: 16px;
|
|
171
|
-
padding: 16px;
|
|
172
|
-
margin: 8px 16px;
|
|
173
|
-
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
174
|
-
}
|
|
175
|
-
.card-image { width: 100%; height: 180px; border-radius: 12px; object-fit: cover; background: var(--color-bg-secondary); }
|
|
176
|
-
.card-title { font-size: 17px; font-weight: 600; margin: 12px 0 4px; }
|
|
177
|
-
.card-subtitle { font-size: 14px; color: var(--color-text-secondary); }
|
|
178
|
-
\`\`\`
|
|
179
|
-
|
|
180
|
-
### Input Field
|
|
181
|
-
\`\`\`css
|
|
182
|
-
.input-group { padding: 8px 16px; }
|
|
183
|
-
.input-label { font-size: 13px; color: var(--color-text-secondary); margin-bottom: 4px; display: block; }
|
|
184
|
-
.input-field {
|
|
185
|
-
width: 100%;
|
|
186
|
-
height: 44px;
|
|
187
|
-
padding: 0 12px;
|
|
188
|
-
border: 1px solid var(--color-border);
|
|
189
|
-
border-radius: 10px;
|
|
190
|
-
font-size: 16px;
|
|
191
|
-
background: var(--color-bg-secondary, #f5f5f5);
|
|
192
|
-
outline: none;
|
|
193
|
-
}
|
|
194
|
-
.input-field:focus { border-color: var(--color-accent); }
|
|
195
|
-
\`\`\`
|
|
196
|
-
|
|
197
|
-
### Button
|
|
198
|
-
\`\`\`css
|
|
199
|
-
.btn {
|
|
200
|
-
display: flex;
|
|
201
|
-
align-items: center;
|
|
202
|
-
justify-content: center;
|
|
203
|
-
height: 50px;
|
|
204
|
-
padding: 0 24px;
|
|
205
|
-
border-radius: 14px;
|
|
206
|
-
font-size: 17px;
|
|
207
|
-
font-weight: 600;
|
|
208
|
-
border: none;
|
|
209
|
-
cursor: pointer;
|
|
210
|
-
margin: 8px 16px;
|
|
211
|
-
user-select: none;
|
|
212
|
-
}
|
|
213
|
-
.btn-primary { background: var(--color-accent); color: #fff; }
|
|
214
|
-
.btn-secondary { background: var(--color-bg-secondary, #f0f0f0); color: var(--color-text-primary); }
|
|
215
|
-
.btn:active { opacity: 0.8; transform: scale(0.98); }
|
|
216
|
-
\`\`\`
|
|
217
|
-
|
|
218
|
-
## Phase 3 — Mobile-Specific Rules
|
|
219
|
-
|
|
220
|
-
- Minimum touch target: 44×44px
|
|
221
|
-
- Font sizes: 13px (captions), 15px (body), 17px (headlines), 22px (titles), 28px (hero)
|
|
222
|
-
- Padding: 16px horizontal standard, 8-16px card margins
|
|
223
|
-
- Never use hover effects — use :active for tap feedback
|
|
224
|
-
- Scrollable content uses \`overflow-y: auto; -webkit-overflow-scrolling: touch;\`
|
|
225
|
-
- Status bar: 54px height standard, dark or light based on design system
|
|
226
|
-
- Bottom safe area: 34px for home indicator
|
|
227
|
-
- Images: use \`object-fit: cover\` with fixed aspect ratios, gradient placeholders
|
|
228
|
-
- No hamburger menus — use tab bar navigation (3-5 items)`,
|
|
229
|
-
};
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import type { DesignSkill } from "./design-skill.js";
|
|
2
|
-
|
|
3
|
-
export const mobileApp: DesignSkill = {
|
|
4
|
-
name: "mobile-app",
|
|
5
|
-
scenario: "design",
|
|
6
|
-
description:
|
|
7
|
-
"Mobile app prototype. Phone-frame-contained HTML with iOS/Android patterns, touch targets, and native-feel interactions.",
|
|
8
|
-
outputKind: "html",
|
|
9
|
-
workflow: `# Mobile App Prototype Skill
|
|
10
|
-
|
|
11
|
-
Produce a mobile app prototype as a single HTML file. Phone-frame contained, touch-friendly, native-feel interactions.
|
|
12
|
-
|
|
13
|
-
## Phase 0 — Pre-flight
|
|
14
|
-
|
|
15
|
-
1. Read the design system for color tokens.
|
|
16
|
-
2. Determine: app name, screens needed (2-5), platform style (iOS or Material).
|
|
17
|
-
3. Vocalize: "I'll build [app name] with [N] screens: [screen names]. [iOS/Material] patterns."
|
|
18
|
-
|
|
19
|
-
## Phase 1 — Shell with Phone Frame
|
|
20
|
-
|
|
21
|
-
Create \`app.html\` with a phone frame wrapper:
|
|
22
|
-
|
|
23
|
-
\`\`\`html
|
|
24
|
-
<!doctype html>
|
|
25
|
-
<html lang="en">
|
|
26
|
-
<head>
|
|
27
|
-
<meta charset="utf-8">
|
|
28
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
29
|
-
<title>App Name</title>
|
|
30
|
-
<style>
|
|
31
|
-
*, *::before, *::after { box-sizing: border-box; margin: 0; }
|
|
32
|
-
|
|
33
|
-
:root {
|
|
34
|
-
--phone-w: 390px;
|
|
35
|
-
--phone-h: 844px;
|
|
36
|
-
--phone-radius: 44px;
|
|
37
|
-
--safe-top: 54px;
|
|
38
|
-
--safe-bottom: 34px;
|
|
39
|
-
/* Design system tokens */
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
body {
|
|
43
|
-
display: flex;
|
|
44
|
-
justify-content: center;
|
|
45
|
-
align-items: center;
|
|
46
|
-
min-height: 100vh;
|
|
47
|
-
background: #f0f0f0;
|
|
48
|
-
font-family: -apple-system, "SF Pro Text", "Inter", sans-serif;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.phone-frame {
|
|
52
|
-
width: var(--phone-w);
|
|
53
|
-
height: var(--phone-h);
|
|
54
|
-
background: var(--color-bg-primary);
|
|
55
|
-
border-radius: var(--phone-radius);
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
position: relative;
|
|
58
|
-
box-shadow: 0 0 0 8px #1a1a1a, 0 0 0 10px #333, 0 20px 60px rgba(0,0,0,0.3);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.status-bar {
|
|
62
|
-
height: var(--safe-top);
|
|
63
|
-
display: flex;
|
|
64
|
-
justify-content: space-between;
|
|
65
|
-
align-items: center;
|
|
66
|
-
padding: 0 24px;
|
|
67
|
-
font-size: 14px;
|
|
68
|
-
font-weight: 600;
|
|
69
|
-
background: var(--color-bg-primary);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.screen {
|
|
73
|
-
position: absolute;
|
|
74
|
-
top: var(--safe-top);
|
|
75
|
-
left: 0;
|
|
76
|
-
right: 0;
|
|
77
|
-
bottom: var(--safe-bottom);
|
|
78
|
-
display: none;
|
|
79
|
-
flex-direction: column;
|
|
80
|
-
overflow-y: auto;
|
|
81
|
-
-webkit-overflow-scrolling: touch;
|
|
82
|
-
}
|
|
83
|
-
.screen.active { display: flex; }
|
|
84
|
-
|
|
85
|
-
.bottom-nav {
|
|
86
|
-
position: absolute;
|
|
87
|
-
bottom: 0;
|
|
88
|
-
left: 0;
|
|
89
|
-
right: 0;
|
|
90
|
-
height: var(--safe-bottom);
|
|
91
|
-
display: flex;
|
|
92
|
-
border-top: 1px solid var(--color-border);
|
|
93
|
-
background: var(--color-bg-surface, var(--color-bg-primary));
|
|
94
|
-
}
|
|
95
|
-
.nav-item {
|
|
96
|
-
flex: 1;
|
|
97
|
-
display: flex;
|
|
98
|
-
flex-direction: column;
|
|
99
|
-
align-items: center;
|
|
100
|
-
justify-content: center;
|
|
101
|
-
gap: 2px;
|
|
102
|
-
font-size: 10px;
|
|
103
|
-
color: var(--color-text-secondary);
|
|
104
|
-
cursor: pointer;
|
|
105
|
-
user-select: none;
|
|
106
|
-
}
|
|
107
|
-
.nav-item.active { color: var(--color-accent); }
|
|
108
|
-
.nav-icon { font-size: 22px; line-height: 1; }
|
|
109
|
-
</style>
|
|
110
|
-
</head>
|
|
111
|
-
<body>
|
|
112
|
-
<div class="phone-frame">
|
|
113
|
-
<div class="status-bar">
|
|
114
|
-
<span>9:41</span>
|
|
115
|
-
<span>●●●○ WiFi ▮▮▮</span>
|
|
116
|
-
</div>
|
|
117
|
-
|
|
118
|
-
<div class="screen active" id="screen-home"><!-- Home content --></div>
|
|
119
|
-
<div class="screen" id="screen-detail"><!-- Detail content --></div>
|
|
120
|
-
<div class="screen" id="screen-settings"><!-- Settings content --></div>
|
|
121
|
-
|
|
122
|
-
<div class="bottom-nav">
|
|
123
|
-
<div class="nav-item active" onclick="showScreen('home')">
|
|
124
|
-
<span class="nav-icon">🏠</span>Home
|
|
125
|
-
</div>
|
|
126
|
-
<div class="nav-item" onclick="showScreen('detail')">
|
|
127
|
-
<span class="nav-icon">🔍</span>Search
|
|
128
|
-
</div>
|
|
129
|
-
<div class="nav-item" onclick="showScreen('settings')">
|
|
130
|
-
<span class="nav-icon">👤</span>Profile
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
|
|
135
|
-
<script>
|
|
136
|
-
function showScreen(id) {
|
|
137
|
-
document.querySelectorAll('.screen').forEach(s => s.classList.remove('active'));
|
|
138
|
-
document.getElementById('screen-' + id).classList.add('active');
|
|
139
|
-
document.querySelectorAll('.nav-item').forEach((n, i) => {
|
|
140
|
-
n.classList.toggle('active', n.textContent.trim().toLowerCase().includes(id));
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
</script>
|
|
144
|
-
</body>
|
|
145
|
-
</html>
|
|
146
|
-
\`\`\`
|
|
147
|
-
|
|
148
|
-
## Phase 2 — Component Patterns
|
|
149
|
-
|
|
150
|
-
### List Item (44px minimum tap target)
|
|
151
|
-
\`\`\`css
|
|
152
|
-
.list-item {
|
|
153
|
-
display: flex;
|
|
154
|
-
align-items: center;
|
|
155
|
-
padding: 12px 16px;
|
|
156
|
-
min-height: 44px;
|
|
157
|
-
gap: 12px;
|
|
158
|
-
border-bottom: 0.5px solid var(--color-border);
|
|
159
|
-
cursor: pointer;
|
|
160
|
-
}
|
|
161
|
-
.list-item:active { background: var(--color-bg-hover, rgba(0,0,0,0.04)); }
|
|
162
|
-
.list-item-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--color-accent); display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; }
|
|
163
|
-
.list-item-content { flex: 1; }
|
|
164
|
-
.list-item-title { font-size: 16px; font-weight: 500; }
|
|
165
|
-
.list-item-subtitle { font-size: 14px; color: var(--color-text-secondary); margin-top: 2px; }
|
|
166
|
-
.list-item-trailing { color: var(--color-text-secondary); font-size: 14px; }
|
|
167
|
-
\`\`\`
|
|
168
|
-
|
|
169
|
-
### Card
|
|
170
|
-
\`\`\`css
|
|
171
|
-
.card {
|
|
172
|
-
background: var(--color-bg-surface, #fff);
|
|
173
|
-
border-radius: 16px;
|
|
174
|
-
padding: 16px;
|
|
175
|
-
margin: 8px 16px;
|
|
176
|
-
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
177
|
-
}
|
|
178
|
-
.card-image { width: 100%; height: 180px; border-radius: 12px; object-fit: cover; background: var(--color-bg-secondary); }
|
|
179
|
-
.card-title { font-size: 17px; font-weight: 600; margin: 12px 0 4px; }
|
|
180
|
-
.card-subtitle { font-size: 14px; color: var(--color-text-secondary); }
|
|
181
|
-
\`\`\`
|
|
182
|
-
|
|
183
|
-
### Input Field
|
|
184
|
-
\`\`\`css
|
|
185
|
-
.input-group { padding: 8px 16px; }
|
|
186
|
-
.input-label { font-size: 13px; color: var(--color-text-secondary); margin-bottom: 4px; display: block; }
|
|
187
|
-
.input-field {
|
|
188
|
-
width: 100%;
|
|
189
|
-
height: 44px;
|
|
190
|
-
padding: 0 12px;
|
|
191
|
-
border: 1px solid var(--color-border);
|
|
192
|
-
border-radius: 10px;
|
|
193
|
-
font-size: 16px;
|
|
194
|
-
background: var(--color-bg-secondary, #f5f5f5);
|
|
195
|
-
outline: none;
|
|
196
|
-
}
|
|
197
|
-
.input-field:focus { border-color: var(--color-accent); }
|
|
198
|
-
\`\`\`
|
|
199
|
-
|
|
200
|
-
### Button
|
|
201
|
-
\`\`\`css
|
|
202
|
-
.btn {
|
|
203
|
-
display: flex;
|
|
204
|
-
align-items: center;
|
|
205
|
-
justify-content: center;
|
|
206
|
-
height: 50px;
|
|
207
|
-
padding: 0 24px;
|
|
208
|
-
border-radius: 14px;
|
|
209
|
-
font-size: 17px;
|
|
210
|
-
font-weight: 600;
|
|
211
|
-
border: none;
|
|
212
|
-
cursor: pointer;
|
|
213
|
-
margin: 8px 16px;
|
|
214
|
-
user-select: none;
|
|
215
|
-
}
|
|
216
|
-
.btn-primary { background: var(--color-accent); color: #fff; }
|
|
217
|
-
.btn-secondary { background: var(--color-bg-secondary, #f0f0f0); color: var(--color-text-primary); }
|
|
218
|
-
.btn:active { opacity: 0.8; transform: scale(0.98); }
|
|
219
|
-
\`\`\`
|
|
220
|
-
|
|
221
|
-
## Phase 3 — Mobile-Specific Rules
|
|
222
|
-
|
|
223
|
-
- Minimum touch target: 44×44px
|
|
224
|
-
- Font sizes: 13px (captions), 15px (body), 17px (headlines), 22px (titles), 28px (hero)
|
|
225
|
-
- Padding: 16px horizontal standard, 8-16px card margins
|
|
226
|
-
- Never use hover effects — use :active for tap feedback
|
|
227
|
-
- Scrollable content uses \`overflow-y: auto; -webkit-overflow-scrolling: touch;\`
|
|
228
|
-
- Status bar: 54px height standard, dark or light based on design system
|
|
229
|
-
- Bottom safe area: 34px for home indicator
|
|
230
|
-
- Images: use \`object-fit: cover\` with fixed aspect ratios, gradient placeholders
|
|
231
|
-
- No hamburger menus — use tab bar navigation (3-5 items)`,
|
|
232
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"motion-frames.d.ts","sourceRoot":"","sources":["../../../../src/designer/data/skills/motion-frames.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,YAAY,EAAE,WAyHxB,CAAC"}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
export const motionFrames = {
|
|
2
|
-
name: "motion-frames",
|
|
3
|
-
scenario: "creative",
|
|
4
|
-
description: "CSS animation and motion design frames. Keyframe-driven animations, scroll-triggered reveals, staggered lists, loading states, and page transitions — all CSS-only where possible.",
|
|
5
|
-
outputKind: "html",
|
|
6
|
-
workflow: `# Motion Frames Skill
|
|
7
|
-
|
|
8
|
-
Produce a motion design showcase as a single HTML file. CSS keyframe animations, scroll-triggered effects, and subtle micro-interactions — no JavaScript libraries.
|
|
9
|
-
|
|
10
|
-
## Phase 1 — Animation Vocabulary
|
|
11
|
-
|
|
12
|
-
### Entrance Animations
|
|
13
|
-
\`\`\`css
|
|
14
|
-
/* Fade up */
|
|
15
|
-
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
|
|
16
|
-
|
|
17
|
-
/* Scale in */
|
|
18
|
-
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
|
|
19
|
-
|
|
20
|
-
/* Slide from left */
|
|
21
|
-
@keyframes slideLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
|
|
22
|
-
|
|
23
|
-
/* Reveal by clip-path */
|
|
24
|
-
@keyframes clipReveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
|
|
25
|
-
\`\`\`
|
|
26
|
-
|
|
27
|
-
### Scroll-Triggered Reveals
|
|
28
|
-
\`\`\`css
|
|
29
|
-
/* Use scroll-driven animations (modern browsers) */
|
|
30
|
-
.reveal {
|
|
31
|
-
animation: fadeUp 0.6s ease-out;
|
|
32
|
-
animation-timeline: view();
|
|
33
|
-
animation-range: entry 20% cover 40%;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* Fallback: use Intersection Observer pattern in a small script */
|
|
37
|
-
.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
|
|
38
|
-
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }
|
|
39
|
-
\`\`\`
|
|
40
|
-
|
|
41
|
-
### Staggered Lists
|
|
42
|
-
\`\`\`css
|
|
43
|
-
.stagger-list > * { opacity: 0; animation: fadeUp 0.4s ease-out forwards; }
|
|
44
|
-
.stagger-list > *:nth-child(1) { animation-delay: 0ms; }
|
|
45
|
-
.stagger-list > *:nth-child(2) { animation-delay: 80ms; }
|
|
46
|
-
.stagger-list > *:nth-child(3) { animation-delay: 160ms; }
|
|
47
|
-
.stagger-list > *:nth-child(4) { animation-delay: 240ms; }
|
|
48
|
-
.stagger-list > *:nth-child(5) { animation-delay: 320ms; }
|
|
49
|
-
.stagger-list > *:nth-child(6) { animation-delay: 400ms; }
|
|
50
|
-
/* Continue pattern: delay = (n-1) * 80ms up to n=20 */
|
|
51
|
-
\`\`\`
|
|
52
|
-
|
|
53
|
-
### Loading States
|
|
54
|
-
\`\`\`css
|
|
55
|
-
/* Spinner */
|
|
56
|
-
@keyframes spin { to { transform: rotate(360deg); } }
|
|
57
|
-
.spinner { width: 24px; height: 24px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; }
|
|
58
|
-
|
|
59
|
-
/* Skeleton pulse */
|
|
60
|
-
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
|
|
61
|
-
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, color-mix(in oklab, var(--surface) 50%, var(--bg)) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: 4px; }
|
|
62
|
-
|
|
63
|
-
/* Progress bar */
|
|
64
|
-
@keyframes progress { from { width: 0%; } to { width: 100%; } }
|
|
65
|
-
.progress-bar { height: 4px; background: var(--surface); border-radius: 2px; overflow: hidden; }
|
|
66
|
-
.progress-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; animation: progress 2s ease-out forwards; }
|
|
67
|
-
\`\`\`
|
|
68
|
-
|
|
69
|
-
### Hover Micro-Interactions
|
|
70
|
-
\`\`\`css
|
|
71
|
-
/* Subtle card lift */
|
|
72
|
-
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease; }
|
|
73
|
-
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
|
|
74
|
-
|
|
75
|
-
/* Button press */
|
|
76
|
-
.btn-press { transition: transform 0.1s ease; }
|
|
77
|
-
.btn-press:active { transform: scale(0.97); }
|
|
78
|
-
|
|
79
|
-
/* Link underline slide */
|
|
80
|
-
.link-slide { position: relative; text-decoration: none; }
|
|
81
|
-
.link-slide::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 0; height: 1.5px; background: var(--accent); transition: width 0.3s ease; }
|
|
82
|
-
.link-slide:hover::after { width: 100%; }
|
|
83
|
-
|
|
84
|
-
/* Image zoom */
|
|
85
|
-
.img-zoom { overflow: hidden; border-radius: 8px; }
|
|
86
|
-
.img-zoom img { transition: transform 0.3s ease; }
|
|
87
|
-
.img-zoom:hover img { transform: scale(1.05); }
|
|
88
|
-
\`\`\`
|
|
89
|
-
|
|
90
|
-
### Page Transitions (View Transitions API)
|
|
91
|
-
\`\`\`css
|
|
92
|
-
/* Add to :root for cross-fade transitions */
|
|
93
|
-
::view-transition-old(root),
|
|
94
|
-
::view-transition-new(root) {
|
|
95
|
-
animation-duration: 0.4s;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/* Named transitions for specific elements */
|
|
99
|
-
.hero-title { view-transition-name: hero-title; }
|
|
100
|
-
.hero-image { view-transition-name: hero-image; }
|
|
101
|
-
\`\`\`
|
|
102
|
-
|
|
103
|
-
## Phase 2 — Showcase Layout
|
|
104
|
-
|
|
105
|
-
Build a single HTML page demonstrating each animation category:
|
|
106
|
-
1. **Entrance section** — cards/stats that animate in on load
|
|
107
|
-
2. **Scroll reveal section** — content that appears as you scroll
|
|
108
|
-
3. **Staggered list** — feature list with cascading reveal
|
|
109
|
-
4. **Loading section** — skeleton screens next to real content
|
|
110
|
-
5. **Hover gallery** — cards with different hover treatments
|
|
111
|
-
6. **Interactive section** — buttons and links with micro-interactions
|
|
112
|
-
|
|
113
|
-
## Phase 3 — Motion Design Rules
|
|
114
|
-
- **Duration**: 150-400ms for micro-interactions; 400-800ms for entrances; DON'T use values above 1s
|
|
115
|
-
- **Easing**: ease-out for entrances (fast start, settle gracefully); ease-in-out for continuous animations
|
|
116
|
-
- **Stagger**: 60-100ms between children; maximum 20 items in a stagger
|
|
117
|
-
- **Performance**: animate transform and opacity only (no width/height/margin animations)
|
|
118
|
-
- **Respect reduced motion**: wrap animations in @media (prefers-reduced-motion: no-preference)
|
|
119
|
-
- **No animation on every element** — pick 2-3 key moments per page
|
|
120
|
-
- **Animation should communicate** — loading state, new content arriving, affordance — not just decoration`,
|
|
121
|
-
};
|