technical-ui-implementation

Guides selection of DOM versus Canvas rendering and Rive, CSS, or JS animation strategies.

Updated Jun 30, 2026
One-click install
npx skills add https://github.com/kaitoartz/dotfiles --skill technical-ui-implementation-kaitoartz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: technical-ui-implementation
Source: https://github.com/kaitoartz/dotfiles/tree/main/dot_gemini/config/skills/technical-ui-implementation
Command: npx skills add https://github.com/kaitoartz/dotfiles --skill technical-ui-implementation-kaitoartz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Choosing the wrong rendering or animation technology leads to slow interfaces, blurry text, inaccessible UIs, and poor mobile performance. This Skill provides a decision framework for picking between DOM and Canvas rendering and between CSS, JS, and Rive animation based on performance, accessibility, and design needs. ## Core Features & Use Cases - DOM vs. Canvas Decision Framework: Compares retained-mode DOM (native accessibility, free event handling, crisp text) against immediate-mode Canvas (60FPS with thousands of objects, GPU rendering via WebGL) with concrete pros, cons, and ideal use cases. - Hybrid Layering Strategy: Recommends overlaying a Canvas/WebGL game layer with a DOM/HTML UI layer to combine rendering performance with text sharpness and accessibility. - Rive Animation Guidance: Explains when to use Rive state machines for interactive animations (characters, animated buttons, live progress bars) instead of heavier Lottie files or video. - Use Case: A web game runs slowly on mobile because UI animations animate top/left properties causing layout reflow. The Skill directs switching to GPU-accelerated transform and opacity CSS properties or moving intensive rendering to Canvas. ## Quick Start Ask the assistant to recommend whether your game HUD, menu system, or particle effect should use DOM or Canvas rendering and which animation technology fits best.

Frequently Asked Questions about technical-ui-implementation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
When should I use Canvas instead of DOM for UI rendering?▼

Use Canvas when rendering thousands of objects at 60FPS, such as game worlds, particle systems, or real-time data visualizations. Use DOM for functional UIs like menus, forms, and inventories where native accessibility, event handling, and crisp text matter.

Rive vs Lottie for interactive animations, which is better?▼

Rive is better for interactive animations because its state machines embed visual logic directly in the animation, reacting to runtime variables without complex code. Rive files are also smaller and render vector graphics in real time, using less CPU than Lottie or video.

Can I combine DOM and Canvas in the same web application?▼

Yes, the recommended hybrid approach layers Canvas or WebGL for the game rendering underneath a DOM/HTML overlay for the UI. This combines Canvas rendering performance with DOM accessibility and sharp text rendering.

Why is my DOM animation slow on mobile devices?▼

Slow DOM animations usually come from animating properties like top or left that trigger layout reflow and repaints. Animate transform and opacity instead for GPU-accelerated compositing, or move intensive rendering to Canvas.

Why does text look blurry when rendered in Canvas?▼

Canvas text can appear blurry when scaled because it is rasterized as pixels rather than rendered by the browser's text engine. The fix is moving text to a superimposed DOM layer above the Canvas for native sharp rendering.

What are the limitations of using Canvas for user interfaces?▼

Canvas has no native accessibility for screen readers, no built-in mouse events so you must calculate coordinates manually, and text can blur when scaled. These make it unsuitable for form-heavy or accessibility-critical interfaces.