react-grab@0.1.46
·
107 commits
to main
since this release
Patch Changes
-
b85b9b1: Make app theme detection (which drives the overlay's inverted theme) more robust:
- Read background luminance through the existing
parseAnyColorhelper so pages whose background is authored withoklch()(e.g. Tailwind v4) are no longer mis-detected. Browsers serialize these computed colors in their own color space rather thanrgb(), so the previousrgb()-only luminance heuristic silently failed and fell back toprefers-color-scheme— a forced-light page then looked dark to dark-OS visitors. - Treat a dual
color-scheme(light dark/dark light) as "decided by the OS preference / actual paint" instead of blindly trusting the first listed token, which mis-detected dark-OS visitors on sites that opt into both schemes. - Inspect
<body>in addition to<html>for theme markers (class,data-theme/data-bs-theme/etc., and presence attributes) so apps that theme the body are detected. - Fall back from the body background to the root element when the body background is transparent.
- @react-grab/cli@0.1.46
- Read background luminance through the existing