Skip to content
Component detail view

Shader Tint

A two-layer WebGL light that glides between marks, colors them and swells on press.

Last updated: November 28, 2026

Installation

Install CLI
npx smoothui-cli add shader-tint

Usage

Pass a list of marks and three hexadecimal shader stops per mark. Set dark to match your canvas so the upper layer tints the marks rather than painting over them.

Both shader layers follow the same active mark: one lights the canvas and the other tints the foreground.

Accessibility

Each mark is a labelled button. Focus, click, tap and arrow keys can change the active mark. Reduced motion swaps the glow without a glide or swirl. The marks stay usable without WebGL.

Props

Created by

Powered by

motion.dev