Overview
Dim the surrounding preferences while keeping type size bright. Change its slider and preview together, then restore context with the new value preserved.
Build
- 01
Establish the two reading-preference controls.
- 02
Dim context and preserve a bright type-size panel.
- 03
Move the size control and show the text preview grow.
- 04
Restore the full interface while preserving the new value.
Example source React / TSX
examples/focus-contrast-isolation.tsx · Uses the catalog’s shared composition helpers.
Loading source…