light-dark() beats media queries by 7.2% on real CSS
Replacing prefers-color-scheme queries with light-dark() cut CSS-Tricks' minified CSS by 12,262 bytes (7.2%). A custom-property abstraction removes the repetitive argument pairs,…
Topic
Replacing prefers-color-scheme queries with light-dark() cut CSS-Tricks' minified CSS by 12,262 bytes (7.2%). A custom-property abstraction removes the repetitive argument pairs,…
CSS-Tricks’ soft-launched redesign cuts zipped CSS from 31.7KB to 24.6KB, removes inherited theme code, and r…