Kinetic Modern Web (Modern Motion UI Design System v1.3)
Three-tier coupling of Google Chrome Modern Web Guidance 1.0 native browser capabilities, Anti-Boring Visual & Motion System, and an automated code-level review pipeline, ensuring the generated web interface meets engineering standards in platform nativity, visual quality, accessibility, and maintainability.
Use Cases
- Building standalone HTML/CSS/JS pages, product landing pages, dashboards, or web applications (React, Vue, Svelte, Next/Vite, etc.)
- Creating educational science demos, interactive courseware, conceptual/data visualizations, step-by-step algorithm/engineering principle walkthroughs, and interactive experiment benches
- Designing asymmetric Bento Grid layouts, sticky scrolling narrative stages (Scrollytelling), interactive SVG schematics, or 3D Three.js/WebGL spatial interfaces
- Refactoring legacy front-end code or rigid template styles into native implementations compliant with modern Baseline standards
- Scope boundary: If you only need to render lightweight interactive widgets within a conversation, prefer
generative_uifirst; for specialized scientific 3D sidebars (e.g., biomolecular structure viewer), use the corresponding sidebar tool first.
Execution Workflow (Four-Stage Review Loop)
Step 1: Read Visual Preferences and Formulate an "Anti-Template Visual Brief"
First, read aesthetic-preferences.yaml and anti-boring-design-system.md. Before coding, clarify the current theme's surface polarity, hue tendency, spatial topology, and playful interaction mechanisms. Flexibly select or recombine based on content context:
- Surface Themes:
obsidian_precision(Obsidian Precision Dark): Cool-tone deep obsidian ink base (oklch(0.145 0.016 258)),1pxmirror-like hairline borders, ambient radial glow, and proportional width alignment metrics.warm_editorial_atelier(Warm Paper Editorial Atelier): Warm white paper texture (oklch(0.968 0.011 84)), deep charcoal ink text (oklch(0.195 0.016 260)), serif/sans-serif typographic contrast, and generous whitespace.
- Layout Archetypes:
asymmetric_bento(12-column asymmetric Bento Grid),sticky_scrollytelling(fixed100dvhinteractive stage + scroll sections),editorial_index_rail(sticky220pxnumbered index rail +66chbody text).
Step 2: Retrieve Google Modern Web Guidance 1.0
Before writing components, animations, forms, or client-side browser APIs, first search the official guide:
- Windows (PowerShell wrapper script, auto-sets
DISABLE_TELEMETRY=1and uses local shared cache):powershell -ExecutionPolicy Bypass -File "C:\Users\35398\.gemini\config\skills\kinetic-modern-web\scripts\mwg.ps1" search "<2-5 word generic capability>" powershell -ExecutionPolicy Bypass -File "C:\Users\35398\.gemini\config\skills\kinetic-modern-web\scripts\mwg.ps1" retrieve "<guide-id-1,guide-id-2>" - macOS / Linux / WSL:
Search term rules: Upstream offline vector search only recognizes English capability keywords, so use 2–5 generic English words describing the underlying capability (e.g.,./scripts/mwg.sh search "<2-5 word generic capability>" ./scripts/mwg.sh retrieve "<guide-id-1,guide-id-2>""light dismiss dialog","scroll driven animation","auto growing textarea","anchor positioned popover"); do not include framework names (React/Vue/Tailwind). When doing a comprehensive modernization scan of an old project, uselegacy-scan <path> --jsonand adhere tokeepWhen/dropWhenguardrails. - Offline / Degrade Fallback: If Node.js or local cache is unavailable, read directly from modern-web-platform-reference.md and legacy-to-modern-matrix.md.
Step 3: Build Based on Three-Tier OKLCH Token Architecture and Framework-Lossless Adaptation
Refer to kinetic-tokens.css to retain the CSS cascade layer structure (@layer tokens, base, layout, components, motion;), and read starter-bento-demo.html to understand its underlying mechanisms—but starter-bento-demo.html is for mechanism reference only; do not copy the entire page or skin it wholesale; you must flexibly reconstruct layout, colors, and interaction structure based on the current theme context:
- Unidirectional Token Flow:
--p-*(primitive) ->--s-*(semantic role) ->--c-*(component override), build at least 3 OKLCH surface lightness steps; never output raw#ffffff/#000000. - Fluid Typography and Contrast:
clamp()fluid font sizes, titletext-wrap: balance, bodytext-wrap: pretty(<= 66ch), numberstabular-nums, meet contrast requirements: body>= 4.5:1, large titles/controls>= 3:1. - Framework-Lossless Adaptation (React / Vue / SSR):
- For new native attributes (
closedby,popover,commandfor) in TypeScript/JSX, use type passthrough ({...({ closedby: 'any' } as any)}), never regress to olddivhacks; - In SSR environments, guard
window/HTMLElement; keep:root,@starting-style, and::details-contentin global non-scoped styles; for component multiple instances, use unique IDs (e.g.,useId()) to isolateanchor-nameandview-transition-name.
- For new native attributes (
Step 4: Orchestrate Native Animations and Interactive Visual Media
- Scroll-Driven Animations: Place
animation-timeline: scroll()/view()inside@supportsand@media (prefers-reduced-motion: no-preference)protection. - Smooth State Transitions: Wrap tabs, filters, and theme toggles inside
document.startViewTransition?.(). - Declarative Overlays and Intrinsic Sizing: Use
<dialog closedby="any">,popover="auto", CSS Anchor Positioning,@starting-style+transition-behavior: allow-discrete, andinterpolate-size: allow-keywords/details::details-content. - Playful Interactive Diagrams: For educational and visualization tasks, prioritize providing adjustable parameter sliders, step-by-step state evolutions, or interactive SVG/Canvas/Three.js stages; zero Emoji in interface chrome.
Step 5: Code-Level Automatic Diagnosis, Visual Acceptance, and Specification Disclosure
Before delivery, you must execute the review gates defined in review-and-evolution-standard.md:
- Run the Code-Level Diagnostic Script (automatically loads 11 built-in core rules + dynamic evolution rules from
evolution/rules-registry.json; supports--recordto accumulate anonymous hit ledger and--with-mwgto chain the officiallegacy-scan):
For deliberately retained compatibility fallback code, usenode "C:\Users\35398\.gemini\config\skills\kinetic-modern-web\scripts\audit-ui.mjs" "<target file or directory>"/* kmw-keep: reason */comments to exempt. - Self-Evolution Deposition (when new anti-patterns are discovered): If this round fixes a new cross-browser/accessibility/animation anti-pattern, directly solidify it as a new rule using evolve-skill.mjs and automatically run a regression test:
node "C:\Users\35398\.gemini\config\skills\kinetic-modern-web\scripts\evolve-skill.mjs" promote --id KMW-XXX-001 --severity warn --category "Modern Platform" --scope css --pattern "<regex>" --message "<issue>" --fix "<fix>" - Browser Visual Acceptance: For standalone HTML pages or local dev servers, use
browsersub-agent to actually test layout, theme switching, and interaction states. - Specification Citation Disclosure: If
modern-web-guidancesearch results were applied in this round, briefly list at the end of the reply the actually used<guide-id>s and the pitfalls avoided (never fabricate IDs from memory).