--- name: static-web-artifacts-builder description: 'Build self-contained static HTML artifacts opened in a browser: interactive diagrams, dashboards, infographics. Pure HTML5+CSS3+inline SVG, zero toolchain. Triggers on: "interactive HTML", "open in browser", "HTML artifact", "visual dashboard", "HTML infographic". NOT for PNG/SVG output, use concept-to-image.' metadata: version: 1.1.1 category: visualization tags: [html, interactive, dashboard, svg] difficulty: intermediate --- # Static Web Artifacts Builder To build high-density static infographic artifacts, follow these steps: 1. Initialize the project scaffold using `scripts/init-artifact.sh` 2. Develop your artifact by editing the generated HTML file(s) 3. Validate and finalize using `scripts/bundle-artifact.sh` 4. Display artifact to user **Stack**: Vanilla HTML5 + CSS3 (Grid/Flexbox) + inline SVG — zero runtime dependencies ## Design & Style Guidelines VERY IMPORTANT: To avoid what is often referred to as "AI slop", avoid excessive centered layouts, purple gradients, uniform rounded corners, and Inter font. ### Infographic-Specific Constraints - **Density**: Content-to-whitespace ratio ≥ 70:30. Maximize signal per pixel. - **Geometry**: Layered/nested containers, shaped regions (clip-path, border-radius variations), gradient fills, subtle box-shadows — not flat uniform boxes. - **Iconography**: Inline SVG icons for every major concept. No naked text labels. - **Color**: Purposeful palette (3-4 hues + neutrals), encoding meaning (category, flow direction, severity). Define as CSS custom properties. - **Flows**: Directional connectors with SVG arrowheads, curved paths, labeled edges. Architecture diagrams = layered tiers with bidirectional data flows, not flat node graphs. - **Layout math**: CSS Grid with explicit `grid-template-columns`/`grid-template-rows` fractional allocations. No auto-spacing defaults. Every margin/padding intentional. ## Quick Start ### Step 1: Initialize Project Run the initialization script to create a new static project: ```bash bash scripts/init-artifact.sh cd ``` This creates a minimal scaffold with: - ✅ Template HTML with CSS custom properties (theming) - ✅ CSS Grid + Flexbox layout utilities (inline `