A physics-based lighting system for CSS
SMRTR summary
Ambient CSS is a physics-based lighting framework for CSS that replaces arbitrary shadow utility classes with a deterministic lighting engine. Define a light source — direction, intensity, and hue — and every shadow, highlight, surface gradient, and edge treatment across all child elements updates consistently. Calibrated against Blender raytracing, it supports pure CSS and a React component library.
SMRTR provides this summary for quick context. The original article belongs to lobste.rs.
Read the original article