Match Media Pro
Explanation #
data-match-media keeps a signal synced with a media query match state. In this example, $isDark tracks prefers-color-scheme: dark and class bindings switch styling.
The query can be written without surrounding quotes or parentheses; the plugin normalizes it before calling window.matchMedia.
For more complex queries, use a quoted query string with explicit media-query syntax and parentheses so the exact browser query is preserved.