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

Add purging of global styles #54

Closed milesj closed 5 years ago

milesj commented 5 years ago

Global styles via themes can still collide as there isn't a perfect solution. This PR adds a new layer to clear all previously flushed global styles so that switching themes actually works correctly.

It's still suggested to avoid adding globals that would collide.