aesthetic-suite / framework

🎨 Aesthetic is an end-to-end multi-platform styling framework that offers a strict design system, robust atomic CSS-in-JS engine, a structural style sheet specification (SSS), a low-runtime solution, and much more!
https://aestheticsuite.dev
MIT License
203 stars 5 forks source link

breaking: Break `conditions` into `media` and `supports`. #138

Closed milesj closed 3 years ago

milesj commented 3 years ago

Summary

Turns out using arrays for conditions and selectors caused a huge performance hit. This rewrites conditions to media and supports strings, and selectors back to selector. Performance went from 150k/s -> 190k/s.

Screenshots

Checklist