What problem does it solve?
Building document-style or graphics-focused PostHog canvases with React components and Quill adds unnecessary structure. This Skill guides authoring canvases as semantic HTML documents, generative graphics, 2D canvas, or WebGL experiences using plain browser APIs inside the thin React wrapper the runtime requires.
Core Features & Use Cases
- Thin React Wrapper Pattern: Keep
src/canvas.tsx as a minimal shell while writing the experience in semantic HTML, <style> blocks, and imperative browser APIs driven from useEffect.
- Drawing and Animation: Render
<canvas> elements with 2D or WebGL contexts, run requestAnimationFrame loops, and clean up listeners and contexts on unmount to avoid leaks.
- Theme-Aware Styling: Size the root to the iframe viewport with
h-screen, define CSS variables under :root and html.dark, and read resolved theme tokens at runtime for canvas drawing colors.
- Use Case: A user asks for a generative-art canvas or a written report with verifiable PostHog numbers; this Skill routes the implementation to raw HTML/CSS/WebGL instead of forcing React component structure.
Quick Start
Build a PostHog canvas as a semantic HTML document with a WebGL animation using plain browser APIs inside the required React wrapper.