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

Pass down a new `cx` prop #48

Closed milesj closed 5 years ago

milesj commented 5 years ago

To support RTL and advanced features in the future, the process in which we transform styles into CSS class names had to change. In previous versions, the cx function was factoried outside of a component, in which it has 0 context into the rendering cycle (for HOCs only). This new approach passes the cx function down as a prop.