KHALED AMR
PROJECT [02 / 15]
Live Web Engine

Retone

Live Material You Dynamic Theming Engine

ARCHITECTURAL ROLE
Frontend & Color Science Developer
RELEASE YEAR
2026
AUDIENCE & REACH
Production Platform
EXTERNAL LINKS
Retone

[ 01 // OVERVIEW & PURPOSE ]

Retone is an interactive demonstration of Material You's dynamic color system, rebuilt for the modern web. Pick a seed color, drop a photo, or sample your screen—the HCT (Hue-Chroma-Tone) engine generates a full tonal palette and retones every surface, button, and shape on the page live in real time.

[ 02 // PROBLEM & ARCHITECTURAL CHALLENGE ]

Replicating Google's HCT color algorithm in a real-time browser environment without causing lag or perceptible delay during live color wheel scrubbing.

[ 03 // SOLUTION & IMPLEMENTATION ]

Integrated Material Color Utilities with pure CSS custom properties and hardware-accelerated transforms. Built with Material 3 Expressive's shape-morphing motion and responsive typography tokens.

[ 04 // KEY TECHNICAL & DESIGN DECISIONS ]

Real-Time HCT Algorithmic Quantization

Processed image pixel data using fast octree quantization to extract dominant chromatic seeds and generate 13 dynamic tonal roles.

CSS Custom Property Mapping

Mapped computed HCT tonal swatches directly to CSS variables, triggering instantaneous, reflow-free UI theme transitions.

[ 05 // SYSTEM INTERACTION SCREENS ]

Retone screen 1
TECHNOLOGY & TOOLCHAIN
JavaScriptMaterial Color UtilitiesHCT Color EngineMaterial 3 ExpressiveCSS3
VERIFIABLE PLATFORM HIGHLIGHTS
  • Sub-16ms Real-Time Theming Loop
  • Accurate Google HCT Color Science
  • Zero External CSS Framework Dependencies
NEXT.JS APP ROUTER•TYPESCRIPT•GSAP SCROLLTRIGGER•ACCESSIBILITY COMPLIANT•60 FPS ZERO-JANK•KHALED AMR // 2026•