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

[Question] Can the `stylename` be part of a component's classnames? #22

Closed ror-y closed 6 years ago

ror-y commented 6 years ago

We are using aesthetic with JSS in our project.

Here is an excerpt of our rendered HTML: <a class="logo-0-1-9"><div class="image-0-1-7"></div></a>

Is it possible to have the stylename included as part of the classname, for example:

<a class="MyComponent__logo-0-1-9"><div class="MyImage__image-0-1-7"></div></a>

milesj commented 6 years ago

Hah, it was actually this way in Aesthetic 1.0, but was removed during the rewrite. I can easily add it back in. 👍

milesj commented 6 years ago

Should work now in 2.1!