@aexol/spectral 0.9.269 → 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/extensions/dataset-uploader/cleaner.js +1 -1
- package/dist/extensions/dataset-uploader/scrubber.d.ts +2 -0
- package/dist/extensions/dataset-uploader/scrubber.d.ts.map +1 -1
- package/dist/extensions/dataset-uploader/scrubber.js +30 -1
- package/dist/generated/zeus/index.d.ts +0 -4
- package/dist/generated/zeus/index.d.ts.map +1 -1
- 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,84 +0,0 @@
|
|
|
1
|
-
export const blogPost = {
|
|
2
|
-
name: "blog-post",
|
|
3
|
-
scenario: "content",
|
|
4
|
-
description: "Blog article layout — title, author metadata, featured image, prose body with headings/images/quotes, related posts. Single-page, reading-optimized typography with comfortable measure.",
|
|
5
|
-
outputKind: "html",
|
|
6
|
-
workflow: `# Blog Post Skill
|
|
7
|
-
|
|
8
|
-
Produce a single blog article page with reading-optimized typography.
|
|
9
|
-
|
|
10
|
-
## Phase 1 — Structure
|
|
11
|
-
|
|
12
|
-
\`\`\`html
|
|
13
|
-
<article class="blog-post">
|
|
14
|
-
<header class="post-header">
|
|
15
|
-
<div class="post-category">Category</div>
|
|
16
|
-
<h1>Article Title That Is Specific and Engaging</h1>
|
|
17
|
-
<div class="post-meta">
|
|
18
|
-
<span class="post-author">Author Name</span>
|
|
19
|
-
<span class="post-date">Month DD, YYYY</span>
|
|
20
|
-
<span class="post-read-time">N min read</span>
|
|
21
|
-
</div>
|
|
22
|
-
</header>
|
|
23
|
-
<figure class="post-hero">
|
|
24
|
-
<img src="..." alt="...">
|
|
25
|
-
<figcaption>Image caption (optional)</figcaption>
|
|
26
|
-
</figure>
|
|
27
|
-
<div class="post-content">
|
|
28
|
-
<!-- prose -->
|
|
29
|
-
</div>
|
|
30
|
-
<footer class="post-footer">
|
|
31
|
-
<div class="post-tags"><!-- tag pills --></div>
|
|
32
|
-
<section class="related-posts"><!-- 3 related cards --></section>
|
|
33
|
-
</footer>
|
|
34
|
-
</article>
|
|
35
|
-
\`\`\`
|
|
36
|
-
|
|
37
|
-
## Phase 2 — Typography
|
|
38
|
-
|
|
39
|
-
\`\`\`css
|
|
40
|
-
.blog-post { max-width: 680px; margin: 0 auto; padding: 64px 24px; }
|
|
41
|
-
|
|
42
|
-
.post-header { margin-bottom: 32px; }
|
|
43
|
-
.post-category { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
|
|
44
|
-
.post-header h1 { font-size: 40px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
|
|
45
|
-
.post-meta { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
|
|
46
|
-
|
|
47
|
-
.post-hero { margin: 0 -24px 40px; }
|
|
48
|
-
.post-hero img { width: 100%; height: 400px; object-fit: cover; border-radius: 12px; }
|
|
49
|
-
.post-hero figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
|
|
50
|
-
|
|
51
|
-
/* Prose — comfortable reading measure */
|
|
52
|
-
.post-content { font-size: 18px; line-height: 1.8; color: var(--fg); }
|
|
53
|
-
.post-content p { margin: 24px 0; }
|
|
54
|
-
.post-content h2 { font-size: 28px; font-weight: 600; margin: 48px 0 16px; }
|
|
55
|
-
.post-content h3 { font-size: 22px; font-weight: 600; margin: 36px 0 12px; }
|
|
56
|
-
.post-content blockquote { border-left: 3px solid var(--accent); padding: 8px 20px; margin: 32px 0; font-style: italic; color: var(--muted); }
|
|
57
|
-
.post-content ul, .post-content ol { padding-left: 24px; margin: 16px 0; }
|
|
58
|
-
.post-content li { margin: 8px 0; }
|
|
59
|
-
.post-content img { max-width: 100%; border-radius: 8px; margin: 24px 0; }
|
|
60
|
-
.post-content code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface); padding: 2px 6px; border-radius: 4px; }
|
|
61
|
-
.post-content pre { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px; overflow-x: auto; font-family: var(--font-mono); font-size: 15px; line-height: 1.6; margin: 24px 0; }
|
|
62
|
-
|
|
63
|
-
/* Tags */
|
|
64
|
-
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0; padding-top: 32px; border-top: 1px solid var(--border); }
|
|
65
|
-
.post-tag { padding: 4px 12px; background: var(--surface); border-radius: 999px; font-size: 13px; color: var(--muted); }
|
|
66
|
-
|
|
67
|
-
/* Related posts */
|
|
68
|
-
.related-posts { margin-top: 48px; }
|
|
69
|
-
.related-posts h3 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
|
|
70
|
-
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
|
|
71
|
-
.related-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
|
|
72
|
-
.related-card img { width: 100%; height: 140px; object-fit: cover; }
|
|
73
|
-
.related-card-content { padding: 16px; }
|
|
74
|
-
.related-card-content h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
|
|
75
|
-
.related-card-content time { font-size: 12px; color: var(--muted); }
|
|
76
|
-
\`\`\`
|
|
77
|
-
|
|
78
|
-
## Phase 3 — Content Rules
|
|
79
|
-
- Article body: 800-2000 words of meaningful content (no lorem ipsum)
|
|
80
|
-
- Every heading is specific and informative
|
|
81
|
-
- Include at least one blockquote and one code block
|
|
82
|
-
- Feature image is a gradient shape if no real image
|
|
83
|
-
- Author bio is not generic — use a plausible name and role`,
|
|
84
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type { DesignSkill } from "./design-skill.js";
|
|
2
|
-
|
|
3
|
-
export const blogPost: DesignSkill = {
|
|
4
|
-
name: "blog-post",
|
|
5
|
-
scenario: "content",
|
|
6
|
-
description:
|
|
7
|
-
"Blog article layout — title, author metadata, featured image, prose body with headings/images/quotes, related posts. Single-page, reading-optimized typography with comfortable measure.",
|
|
8
|
-
outputKind: "html",
|
|
9
|
-
workflow: `# Blog Post Skill
|
|
10
|
-
|
|
11
|
-
Produce a single blog article page with reading-optimized typography.
|
|
12
|
-
|
|
13
|
-
## Phase 1 — Structure
|
|
14
|
-
|
|
15
|
-
\`\`\`html
|
|
16
|
-
<article class="blog-post">
|
|
17
|
-
<header class="post-header">
|
|
18
|
-
<div class="post-category">Category</div>
|
|
19
|
-
<h1>Article Title That Is Specific and Engaging</h1>
|
|
20
|
-
<div class="post-meta">
|
|
21
|
-
<span class="post-author">Author Name</span>
|
|
22
|
-
<span class="post-date">Month DD, YYYY</span>
|
|
23
|
-
<span class="post-read-time">N min read</span>
|
|
24
|
-
</div>
|
|
25
|
-
</header>
|
|
26
|
-
<figure class="post-hero">
|
|
27
|
-
<img src="..." alt="...">
|
|
28
|
-
<figcaption>Image caption (optional)</figcaption>
|
|
29
|
-
</figure>
|
|
30
|
-
<div class="post-content">
|
|
31
|
-
<!-- prose -->
|
|
32
|
-
</div>
|
|
33
|
-
<footer class="post-footer">
|
|
34
|
-
<div class="post-tags"><!-- tag pills --></div>
|
|
35
|
-
<section class="related-posts"><!-- 3 related cards --></section>
|
|
36
|
-
</footer>
|
|
37
|
-
</article>
|
|
38
|
-
\`\`\`
|
|
39
|
-
|
|
40
|
-
## Phase 2 — Typography
|
|
41
|
-
|
|
42
|
-
\`\`\`css
|
|
43
|
-
.blog-post { max-width: 680px; margin: 0 auto; padding: 64px 24px; }
|
|
44
|
-
|
|
45
|
-
.post-header { margin-bottom: 32px; }
|
|
46
|
-
.post-category { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
|
|
47
|
-
.post-header h1 { font-size: 40px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
|
|
48
|
-
.post-meta { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
|
|
49
|
-
|
|
50
|
-
.post-hero { margin: 0 -24px 40px; }
|
|
51
|
-
.post-hero img { width: 100%; height: 400px; object-fit: cover; border-radius: 12px; }
|
|
52
|
-
.post-hero figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
|
|
53
|
-
|
|
54
|
-
/* Prose — comfortable reading measure */
|
|
55
|
-
.post-content { font-size: 18px; line-height: 1.8; color: var(--fg); }
|
|
56
|
-
.post-content p { margin: 24px 0; }
|
|
57
|
-
.post-content h2 { font-size: 28px; font-weight: 600; margin: 48px 0 16px; }
|
|
58
|
-
.post-content h3 { font-size: 22px; font-weight: 600; margin: 36px 0 12px; }
|
|
59
|
-
.post-content blockquote { border-left: 3px solid var(--accent); padding: 8px 20px; margin: 32px 0; font-style: italic; color: var(--muted); }
|
|
60
|
-
.post-content ul, .post-content ol { padding-left: 24px; margin: 16px 0; }
|
|
61
|
-
.post-content li { margin: 8px 0; }
|
|
62
|
-
.post-content img { max-width: 100%; border-radius: 8px; margin: 24px 0; }
|
|
63
|
-
.post-content code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface); padding: 2px 6px; border-radius: 4px; }
|
|
64
|
-
.post-content pre { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px; overflow-x: auto; font-family: var(--font-mono); font-size: 15px; line-height: 1.6; margin: 24px 0; }
|
|
65
|
-
|
|
66
|
-
/* Tags */
|
|
67
|
-
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0; padding-top: 32px; border-top: 1px solid var(--border); }
|
|
68
|
-
.post-tag { padding: 4px 12px; background: var(--surface); border-radius: 999px; font-size: 13px; color: var(--muted); }
|
|
69
|
-
|
|
70
|
-
/* Related posts */
|
|
71
|
-
.related-posts { margin-top: 48px; }
|
|
72
|
-
.related-posts h3 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
|
|
73
|
-
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
|
|
74
|
-
.related-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
|
|
75
|
-
.related-card img { width: 100%; height: 140px; object-fit: cover; }
|
|
76
|
-
.related-card-content { padding: 16px; }
|
|
77
|
-
.related-card-content h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
|
|
78
|
-
.related-card-content time { font-size: 12px; color: var(--muted); }
|
|
79
|
-
\`\`\`
|
|
80
|
-
|
|
81
|
-
## Phase 3 — Content Rules
|
|
82
|
-
- Article body: 800-2000 words of meaningful content (no lorem ipsum)
|
|
83
|
-
- Every heading is specific and informative
|
|
84
|
-
- Include at least one blockquote and one code block
|
|
85
|
-
- Feature image is a gradient shape if no real image
|
|
86
|
-
- Author bio is not generic — use a plausible name and role`,
|
|
87
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"critique.d.ts","sourceRoot":"","sources":["../../../../src/designer/data/skills/critique.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,QAAQ,EAAE,WA6GpB,CAAC"}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
export const critique = {
|
|
2
|
-
name: "critique",
|
|
3
|
-
scenario: "design",
|
|
4
|
-
description: "5-dimension expert design review. Scores any HTML artifact on Philosophy Consistency, Visual Hierarchy, Detail Execution, Functionality, and Innovation (each 0-10). Outputs an HTML report with a radar chart, evidence-backed scores, and three action lists: Keep / Fix / Quick-wins.",
|
|
5
|
-
outputKind: "html",
|
|
6
|
-
workflow: `# Critique Skill · 5-Dimension Expert Review
|
|
7
|
-
|
|
8
|
-
Produce a single-file HTML design review report that scores any artifact across 5 dimensions and proposes actionable fixes.
|
|
9
|
-
|
|
10
|
-
## When to use
|
|
11
|
-
- After generating an artifact (deck, prototype, landing page) and the user asks "what's wrong with this?" or "review this"
|
|
12
|
-
- As a self-check loop before emitting output
|
|
13
|
-
- For comparing two variants of the same design
|
|
14
|
-
|
|
15
|
-
## The 5 Dimensions
|
|
16
|
-
|
|
17
|
-
### 1. Philosophy Consistency
|
|
18
|
-
> Does the artifact pick a clear direction and stick to it through every micro-decision?
|
|
19
|
-
|
|
20
|
-
Look for: one declared design direction vs three styles fighting; chrome/kicker vocabulary in one register; accent/serif/mono used by the same rule throughout.
|
|
21
|
-
0-4: Three styles fighting. 5-6: One direction but elements drift. 7-8: Coherent, occasional drift. 9-10: Every element argues for the same thesis.
|
|
22
|
-
|
|
23
|
-
### 2. Visual Hierarchy
|
|
24
|
-
> Can a stranger figure out what to read first, second, third — without being told?
|
|
25
|
-
|
|
26
|
-
Look for: largest type = most important thing; mono/serif/sans roles match information roles; clear primary/secondary/tertiary tiers.
|
|
27
|
-
0-4: Everything shouts. 5-6: Works on hero pages but breaks on body. 7-8: Clear tiers, occasional collision. 9-10: Eye moves with zero friction.
|
|
28
|
-
|
|
29
|
-
### 3. Detail Execution
|
|
30
|
-
> Alignment, leading, kerning at large sizes, image framing, edge-case spacing.
|
|
31
|
-
|
|
32
|
-
Look for: big numbers on baseline or floating; left/right column tops aligned; proportions consistent across pages; orphaned <br> causing single-character lines.
|
|
33
|
-
0-4: Visible tape and string. 5-6: Most pages clean, 1-2 ragged. 7-8: Polished, expert eye finds 2-3 misses. 9-10: Magazine-grade polish.
|
|
34
|
-
|
|
35
|
-
### 4. Functionality
|
|
36
|
-
> Does the artifact work for its intended use?
|
|
37
|
-
|
|
38
|
-
Look for: keyboard/wheel/touch nav working in decks; CTAs above the fold; phone numbers tappable on mobile; code blocks copyable; critical info readable from 4m away.
|
|
39
|
-
0-4: Visually fine but doesn't accomplish its job. 5-6: Core flow works, edge cases broken. 7-8: Robust through normal use. 9-10: Defensively engineered — handles iframe / fullscreen / paste / print.
|
|
40
|
-
|
|
41
|
-
### 5. Innovation
|
|
42
|
-
> Does this push past the median? Is there one element that makes people lean in?
|
|
43
|
-
|
|
44
|
-
Look for: one unexpected layout/motion/typographic move not required; or 100% safe generic output; innovation earned (matches direction) or grafted on.
|
|
45
|
-
0-4: Generic AI-slop median. 5-6: Competent and unmemorable. 7-8: One memorable moment, the rest solid. 9-10: Multiple moves you'd steal — each serving the thesis.
|
|
46
|
-
|
|
47
|
-
## Scoring Discipline
|
|
48
|
-
- **Always cite evidence** — "scored 4 because hero page mixes Playfair display with Inter sans on the same line" beats "feels inconsistent"
|
|
49
|
-
- **Don't average up** — if Hierarchy is 5 because page 3 is broken, don't bump to 7 because pages 1-2 are fine. The score is the worst sustained band.
|
|
50
|
-
- **Don't grade-inflate** — a 7 means strong, not acceptable. If every score is 7+, you're not reviewing critically.
|
|
51
|
-
- **Innovation is allowed to be low** — 5/10 is fine for production deliverables.
|
|
52
|
-
|
|
53
|
-
## Workflow
|
|
54
|
-
|
|
55
|
-
### Step 1 — Acquire the artifact
|
|
56
|
-
1. **Project file** — user said "review the index.html I just made": read it from the project folder.
|
|
57
|
-
2. **Pasted HTML** — user pasted code in chat: read it from the message.
|
|
58
|
-
3. **Self-critique** — you just emitted an artifact and want to self-critique: re-read your own output.
|
|
59
|
-
|
|
60
|
-
### Step 2 — Read enough to score
|
|
61
|
-
Skim the entire <style>, then read 6-8 representative content blocks. Do not score from intent alone — the score depends on executed design, not declared intent.
|
|
62
|
-
|
|
63
|
-
### Step 3 — Score with evidence
|
|
64
|
-
For each of the 5 dimensions, write the score and a 30-80 word evidence paragraph naming specific elements. Example:
|
|
65
|
-
\`\`\`
|
|
66
|
-
Dimension: Detail execution
|
|
67
|
-
Score: 6 / 10
|
|
68
|
-
Evidence: Stat-cards on page 3 align cleanly, but on page 8 the right column sits 2vh higher than the left because .callout has 3vh top margin while the figure doesn't. Image captions use mono on page 5 but sans on page 7 — pick one.
|
|
69
|
-
\`\`\`
|
|
70
|
-
|
|
71
|
-
### Step 4 — Build action lists
|
|
72
|
-
- **Keep** (3-5 bullets) — concrete things working that the user must not break. Cite by class/page/element.
|
|
73
|
-
- **Fix** (3-6 bullets) — must-do, ordered by visual cost saved per minute. Each bullet ≤ 1 sentence.
|
|
74
|
-
- **Quick wins** (3-5 bullets) — 5-15 minutes each, high signal-to-noise.
|
|
75
|
-
|
|
76
|
-
### Step 5 — Emit the report HTML
|
|
77
|
-
Build a single file with:
|
|
78
|
-
- Header: artifact name + date + reviewer + 1-line verdict
|
|
79
|
-
- Big radar chart (inline SVG, no library)
|
|
80
|
-
- 5 dimension cards in a 1-column or 2-column grid
|
|
81
|
-
- Three action lists at the bottom with checkbox affordance
|
|
82
|
-
|
|
83
|
-
Use the active design system tokens if one exists; otherwise default to a neutral light theme (white background, near-black text, one accent for radar fill).
|
|
84
|
-
|
|
85
|
-
## Radar Chart SVG Template
|
|
86
|
-
\`\`\`svg
|
|
87
|
-
<svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg">
|
|
88
|
-
<!-- Pentagon grid lines -->
|
|
89
|
-
<polygon points="200,40 352,152 294,340 106,340 48,152" fill="none" stroke="#e0e0e0" stroke-width="1"/>
|
|
90
|
-
<polygon points="200,80 314,166 267,306 133,306 86,166" fill="none" stroke="#e0e0e0" stroke-width="1"/>
|
|
91
|
-
<polygon points="200,120 276,180 240,272 160,272 124,180" fill="none" stroke="#e0e0e0" stroke-width="1"/>
|
|
92
|
-
<!-- Score polygon (fill with accent at 20% opacity) -->
|
|
93
|
-
<polygon points="..." fill="var(--accent, #3B82F6)" fill-opacity="0.2" stroke="var(--accent, #3B82F6)" stroke-width="2"/>
|
|
94
|
-
<!-- Labels at each vertex -->
|
|
95
|
-
<text x="200" y="30" text-anchor="middle" font-size="11">Philosophy</text>
|
|
96
|
-
<text x="360" y="155" text-anchor="start" font-size="11">Hierarchy</text>
|
|
97
|
-
<text x="300" y="355" text-anchor="middle" font-size="11">Detail</text>
|
|
98
|
-
<text x="100" y="355" text-anchor="middle" font-size="11">Function</text>
|
|
99
|
-
<text x="40" y="155" text-anchor="end" font-size="11">Innovation</text>
|
|
100
|
-
</svg>
|
|
101
|
-
\`\`\`
|
|
102
|
-
|
|
103
|
-
## Hard Rules
|
|
104
|
-
- **5 scores, every time** — partial reports are not allowed.
|
|
105
|
-
- **Evidence per score** — no "feels off" / "needs work". If you can't cite an element, the score is not justified.
|
|
106
|
-
- **Don't grade-inflate** — overall mean above 8 is suspicious.
|
|
107
|
-
- **Single-file HTML only** — no external CSS/JS. Inline everything.
|
|
108
|
-
- **Radar chart is mandatory** — gives the report a recognizable silhouette.`,
|
|
109
|
-
};
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import type { DesignSkill } from "./design-skill.js";
|
|
2
|
-
|
|
3
|
-
export const critique: DesignSkill = {
|
|
4
|
-
name: "critique",
|
|
5
|
-
scenario: "design",
|
|
6
|
-
description:
|
|
7
|
-
"5-dimension expert design review. Scores any HTML artifact on Philosophy Consistency, Visual Hierarchy, Detail Execution, Functionality, and Innovation (each 0-10). Outputs an HTML report with a radar chart, evidence-backed scores, and three action lists: Keep / Fix / Quick-wins.",
|
|
8
|
-
outputKind: "html",
|
|
9
|
-
workflow: `# Critique Skill · 5-Dimension Expert Review
|
|
10
|
-
|
|
11
|
-
Produce a single-file HTML design review report that scores any artifact across 5 dimensions and proposes actionable fixes.
|
|
12
|
-
|
|
13
|
-
## When to use
|
|
14
|
-
- After generating an artifact (deck, prototype, landing page) and the user asks "what's wrong with this?" or "review this"
|
|
15
|
-
- As a self-check loop before emitting output
|
|
16
|
-
- For comparing two variants of the same design
|
|
17
|
-
|
|
18
|
-
## The 5 Dimensions
|
|
19
|
-
|
|
20
|
-
### 1. Philosophy Consistency
|
|
21
|
-
> Does the artifact pick a clear direction and stick to it through every micro-decision?
|
|
22
|
-
|
|
23
|
-
Look for: one declared design direction vs three styles fighting; chrome/kicker vocabulary in one register; accent/serif/mono used by the same rule throughout.
|
|
24
|
-
0-4: Three styles fighting. 5-6: One direction but elements drift. 7-8: Coherent, occasional drift. 9-10: Every element argues for the same thesis.
|
|
25
|
-
|
|
26
|
-
### 2. Visual Hierarchy
|
|
27
|
-
> Can a stranger figure out what to read first, second, third — without being told?
|
|
28
|
-
|
|
29
|
-
Look for: largest type = most important thing; mono/serif/sans roles match information roles; clear primary/secondary/tertiary tiers.
|
|
30
|
-
0-4: Everything shouts. 5-6: Works on hero pages but breaks on body. 7-8: Clear tiers, occasional collision. 9-10: Eye moves with zero friction.
|
|
31
|
-
|
|
32
|
-
### 3. Detail Execution
|
|
33
|
-
> Alignment, leading, kerning at large sizes, image framing, edge-case spacing.
|
|
34
|
-
|
|
35
|
-
Look for: big numbers on baseline or floating; left/right column tops aligned; proportions consistent across pages; orphaned <br> causing single-character lines.
|
|
36
|
-
0-4: Visible tape and string. 5-6: Most pages clean, 1-2 ragged. 7-8: Polished, expert eye finds 2-3 misses. 9-10: Magazine-grade polish.
|
|
37
|
-
|
|
38
|
-
### 4. Functionality
|
|
39
|
-
> Does the artifact work for its intended use?
|
|
40
|
-
|
|
41
|
-
Look for: keyboard/wheel/touch nav working in decks; CTAs above the fold; phone numbers tappable on mobile; code blocks copyable; critical info readable from 4m away.
|
|
42
|
-
0-4: Visually fine but doesn't accomplish its job. 5-6: Core flow works, edge cases broken. 7-8: Robust through normal use. 9-10: Defensively engineered — handles iframe / fullscreen / paste / print.
|
|
43
|
-
|
|
44
|
-
### 5. Innovation
|
|
45
|
-
> Does this push past the median? Is there one element that makes people lean in?
|
|
46
|
-
|
|
47
|
-
Look for: one unexpected layout/motion/typographic move not required; or 100% safe generic output; innovation earned (matches direction) or grafted on.
|
|
48
|
-
0-4: Generic AI-slop median. 5-6: Competent and unmemorable. 7-8: One memorable moment, the rest solid. 9-10: Multiple moves you'd steal — each serving the thesis.
|
|
49
|
-
|
|
50
|
-
## Scoring Discipline
|
|
51
|
-
- **Always cite evidence** — "scored 4 because hero page mixes Playfair display with Inter sans on the same line" beats "feels inconsistent"
|
|
52
|
-
- **Don't average up** — if Hierarchy is 5 because page 3 is broken, don't bump to 7 because pages 1-2 are fine. The score is the worst sustained band.
|
|
53
|
-
- **Don't grade-inflate** — a 7 means strong, not acceptable. If every score is 7+, you're not reviewing critically.
|
|
54
|
-
- **Innovation is allowed to be low** — 5/10 is fine for production deliverables.
|
|
55
|
-
|
|
56
|
-
## Workflow
|
|
57
|
-
|
|
58
|
-
### Step 1 — Acquire the artifact
|
|
59
|
-
1. **Project file** — user said "review the index.html I just made": read it from the project folder.
|
|
60
|
-
2. **Pasted HTML** — user pasted code in chat: read it from the message.
|
|
61
|
-
3. **Self-critique** — you just emitted an artifact and want to self-critique: re-read your own output.
|
|
62
|
-
|
|
63
|
-
### Step 2 — Read enough to score
|
|
64
|
-
Skim the entire <style>, then read 6-8 representative content blocks. Do not score from intent alone — the score depends on executed design, not declared intent.
|
|
65
|
-
|
|
66
|
-
### Step 3 — Score with evidence
|
|
67
|
-
For each of the 5 dimensions, write the score and a 30-80 word evidence paragraph naming specific elements. Example:
|
|
68
|
-
\`\`\`
|
|
69
|
-
Dimension: Detail execution
|
|
70
|
-
Score: 6 / 10
|
|
71
|
-
Evidence: Stat-cards on page 3 align cleanly, but on page 8 the right column sits 2vh higher than the left because .callout has 3vh top margin while the figure doesn't. Image captions use mono on page 5 but sans on page 7 — pick one.
|
|
72
|
-
\`\`\`
|
|
73
|
-
|
|
74
|
-
### Step 4 — Build action lists
|
|
75
|
-
- **Keep** (3-5 bullets) — concrete things working that the user must not break. Cite by class/page/element.
|
|
76
|
-
- **Fix** (3-6 bullets) — must-do, ordered by visual cost saved per minute. Each bullet ≤ 1 sentence.
|
|
77
|
-
- **Quick wins** (3-5 bullets) — 5-15 minutes each, high signal-to-noise.
|
|
78
|
-
|
|
79
|
-
### Step 5 — Emit the report HTML
|
|
80
|
-
Build a single file with:
|
|
81
|
-
- Header: artifact name + date + reviewer + 1-line verdict
|
|
82
|
-
- Big radar chart (inline SVG, no library)
|
|
83
|
-
- 5 dimension cards in a 1-column or 2-column grid
|
|
84
|
-
- Three action lists at the bottom with checkbox affordance
|
|
85
|
-
|
|
86
|
-
Use the active design system tokens if one exists; otherwise default to a neutral light theme (white background, near-black text, one accent for radar fill).
|
|
87
|
-
|
|
88
|
-
## Radar Chart SVG Template
|
|
89
|
-
\`\`\`svg
|
|
90
|
-
<svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg">
|
|
91
|
-
<!-- Pentagon grid lines -->
|
|
92
|
-
<polygon points="200,40 352,152 294,340 106,340 48,152" fill="none" stroke="#e0e0e0" stroke-width="1"/>
|
|
93
|
-
<polygon points="200,80 314,166 267,306 133,306 86,166" fill="none" stroke="#e0e0e0" stroke-width="1"/>
|
|
94
|
-
<polygon points="200,120 276,180 240,272 160,272 124,180" fill="none" stroke="#e0e0e0" stroke-width="1"/>
|
|
95
|
-
<!-- Score polygon (fill with accent at 20% opacity) -->
|
|
96
|
-
<polygon points="..." fill="var(--accent, #3B82F6)" fill-opacity="0.2" stroke="var(--accent, #3B82F6)" stroke-width="2"/>
|
|
97
|
-
<!-- Labels at each vertex -->
|
|
98
|
-
<text x="200" y="30" text-anchor="middle" font-size="11">Philosophy</text>
|
|
99
|
-
<text x="360" y="155" text-anchor="start" font-size="11">Hierarchy</text>
|
|
100
|
-
<text x="300" y="355" text-anchor="middle" font-size="11">Detail</text>
|
|
101
|
-
<text x="100" y="355" text-anchor="middle" font-size="11">Function</text>
|
|
102
|
-
<text x="40" y="155" text-anchor="end" font-size="11">Innovation</text>
|
|
103
|
-
</svg>
|
|
104
|
-
\`\`\`
|
|
105
|
-
|
|
106
|
-
## Hard Rules
|
|
107
|
-
- **5 scores, every time** — partial reports are not allowed.
|
|
108
|
-
- **Evidence per score** — no "feels off" / "needs work". If you can't cite an element, the score is not justified.
|
|
109
|
-
- **Don't grade-inflate** — overall mean above 8 is suspicious.
|
|
110
|
-
- **Single-file HTML only** — no external CSS/JS. Inline everything.
|
|
111
|
-
- **Radar chart is mandatory** — gives the report a recognizable silhouette.`,
|
|
112
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../../src/designer/data/skills/dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,SAAS,EAAE,WAqKrB,CAAC"}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
export const dashboard = {
|
|
2
|
-
name: "dashboard",
|
|
3
|
-
scenario: "design",
|
|
4
|
-
description: "Data dashboard with cards, charts, tables, and KPIs. Clean information hierarchy with grid layout.",
|
|
5
|
-
outputKind: "html",
|
|
6
|
-
workflow: `# Dashboard Skill
|
|
7
|
-
|
|
8
|
-
Produce a data dashboard as a single HTML file. Card-based layout with KPIs, charts (CSS-only or SVG), tables, and activity feeds.
|
|
9
|
-
|
|
10
|
-
## Phase 0 — Pre-flight
|
|
11
|
-
|
|
12
|
-
1. Read the design system. Dashboards work best with clean, muted systems (Linear, Notion, Vercel).
|
|
13
|
-
2. Determine: dashboard name, key metrics, sections needed.
|
|
14
|
-
3. Vocalize: "I'll build a [name] dashboard with [N] sections: [section names]."
|
|
15
|
-
|
|
16
|
-
## Phase 1 — Shell
|
|
17
|
-
|
|
18
|
-
Create \`dashboard.html\` with sidebar + main content layout:
|
|
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>Dashboard</title>
|
|
27
|
-
<style>
|
|
28
|
-
*, *::before, *::after { box-sizing: border-box; margin: 0; }
|
|
29
|
-
|
|
30
|
-
:root {
|
|
31
|
-
--sidebar-w: 240px;
|
|
32
|
-
/* Design system tokens */
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
body {
|
|
36
|
-
display: flex;
|
|
37
|
-
min-height: 100vh;
|
|
38
|
-
font-family: var(--font-sans);
|
|
39
|
-
background: var(--color-bg-secondary);
|
|
40
|
-
color: var(--color-text-primary);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.sidebar {
|
|
44
|
-
width: var(--sidebar-w);
|
|
45
|
-
background: var(--color-bg-primary);
|
|
46
|
-
border-right: 1px solid var(--color-border);
|
|
47
|
-
padding: 24px 16px;
|
|
48
|
-
display: flex;
|
|
49
|
-
flex-direction: column;
|
|
50
|
-
position: sticky;
|
|
51
|
-
top: 0;
|
|
52
|
-
height: 100vh;
|
|
53
|
-
}
|
|
54
|
-
.sidebar-logo { font-size: 18px; font-weight: 700; margin-bottom: 32px; }
|
|
55
|
-
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
|
|
56
|
-
.sidebar-link {
|
|
57
|
-
padding: 8px 12px;
|
|
58
|
-
border-radius: 6px;
|
|
59
|
-
font-size: 14px;
|
|
60
|
-
color: var(--color-text-secondary);
|
|
61
|
-
text-decoration: none;
|
|
62
|
-
cursor: pointer;
|
|
63
|
-
}
|
|
64
|
-
.sidebar-link:hover, .sidebar-link.active { background: var(--color-bg-hover, rgba(0,0,0,0.04)); color: var(--color-text-primary); }
|
|
65
|
-
|
|
66
|
-
.main {
|
|
67
|
-
flex: 1;
|
|
68
|
-
padding: 32px;
|
|
69
|
-
overflow-y: auto;
|
|
70
|
-
}
|
|
71
|
-
.main-header { margin-bottom: 32px; }
|
|
72
|
-
.main-header h1 { font-size: 28px; font-weight: 700; }
|
|
73
|
-
.main-header p { color: var(--color-text-secondary); margin-top: 4px; }
|
|
74
|
-
</style>
|
|
75
|
-
</head>
|
|
76
|
-
<body>
|
|
77
|
-
<aside class="sidebar">
|
|
78
|
-
<div class="sidebar-logo">Dashboard</div>
|
|
79
|
-
<nav class="sidebar-nav">
|
|
80
|
-
<a class="sidebar-link active">Overview</a>
|
|
81
|
-
<a class="sidebar-link">Analytics</a>
|
|
82
|
-
<a class="sidebar-link">Reports</a>
|
|
83
|
-
<a class="sidebar-link">Settings</a>
|
|
84
|
-
</nav>
|
|
85
|
-
</aside>
|
|
86
|
-
<main class="main">
|
|
87
|
-
<div class="main-header">
|
|
88
|
-
<h1>Overview</h1>
|
|
89
|
-
<p>Last updated: just now</p>
|
|
90
|
-
</div>
|
|
91
|
-
<!-- Content sections here -->
|
|
92
|
-
</main>
|
|
93
|
-
</body>
|
|
94
|
-
</html>
|
|
95
|
-
\`\`\`
|
|
96
|
-
|
|
97
|
-
## Phase 2 — Component Patterns
|
|
98
|
-
|
|
99
|
-
### KPI Cards (4-up row)
|
|
100
|
-
\`\`\`css
|
|
101
|
-
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
|
|
102
|
-
.kpi-card { background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius, 8px); padding: 20px; }
|
|
103
|
-
.kpi-label { font-size: 13px; color: var(--color-text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
104
|
-
.kpi-value { font-size: 32px; font-weight: 700; margin-top: 8px; }
|
|
105
|
-
.kpi-change { font-size: 13px; margin-top: 4px; }
|
|
106
|
-
.kpi-change.up { color: var(--color-success, #30a46c); }
|
|
107
|
-
.kpi-change.down { color: var(--color-danger, #e5484d); }
|
|
108
|
-
\`\`\`
|
|
109
|
-
|
|
110
|
-
### Chart (CSS-only bar chart)
|
|
111
|
-
\`\`\`css
|
|
112
|
-
.chart-card { background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius, 8px); padding: 24px; margin-bottom: 24px; }
|
|
113
|
-
.chart-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 20px; }
|
|
114
|
-
.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding-top: 8px; }
|
|
115
|
-
.bar { flex: 1; border-radius: 4px 4px 0 0; background: var(--color-accent); min-height: 4px; position: relative; transition: height 0.3s; }
|
|
116
|
-
.bar:hover { opacity: 0.8; }
|
|
117
|
-
.bar-label { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--color-text-secondary); }
|
|
118
|
-
\`\`\`
|
|
119
|
-
|
|
120
|
-
### Table
|
|
121
|
-
\`\`\`css
|
|
122
|
-
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
|
|
123
|
-
.data-table th { text-align: left; padding: 12px 16px; font-weight: 600; color: var(--color-text-secondary); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--color-border); }
|
|
124
|
-
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); }
|
|
125
|
-
.data-table tr:hover td { background: var(--color-bg-hover, rgba(0,0,0,0.02)); }
|
|
126
|
-
\`\`\`
|
|
127
|
-
|
|
128
|
-
### Activity Feed
|
|
129
|
-
\`\`\`css
|
|
130
|
-
.activity-feed { display: flex; flex-direction: column; }
|
|
131
|
-
.activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
|
|
132
|
-
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); margin-top: 6px; flex-shrink: 0; }
|
|
133
|
-
.activity-content { flex: 1; }
|
|
134
|
-
.activity-text { font-size: 14px; }
|
|
135
|
-
.activity-time { font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; }
|
|
136
|
-
\`\`\`
|
|
137
|
-
|
|
138
|
-
## Phase 3 — Layout Patterns
|
|
139
|
-
|
|
140
|
-
### Two-column main area
|
|
141
|
-
\`\`\`css
|
|
142
|
-
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
|
|
143
|
-
\`\`\`
|
|
144
|
-
|
|
145
|
-
### Responsive
|
|
146
|
-
\`\`\`css
|
|
147
|
-
@media (max-width: 1200px) {
|
|
148
|
-
.kpi-grid { grid-template-columns: repeat(2, 1fr); }
|
|
149
|
-
.dashboard-grid { grid-template-columns: 1fr; }
|
|
150
|
-
}
|
|
151
|
-
@media (max-width: 768px) {
|
|
152
|
-
.sidebar { display: none; }
|
|
153
|
-
.main { padding: 16px; }
|
|
154
|
-
.kpi-grid { grid-template-columns: 1fr; }
|
|
155
|
-
}
|
|
156
|
-
\`\`\`
|
|
157
|
-
|
|
158
|
-
## Phase 4 — Dashboard Design Rules
|
|
159
|
-
|
|
160
|
-
- Information hierarchy: KPIs → Main chart → Detail tables → Activity
|
|
161
|
-
- Use consistent card padding (24px)
|
|
162
|
-
- Numbers should be right-aligned in table columns
|
|
163
|
-
- Color code only the most important KPI change (1-2 per row max)
|
|
164
|
-
- Tables: max 6 columns, zebra striping optional, hover row highlight`,
|
|
165
|
-
};
|