What if you have a semantic name like Avatar and use multiple utility tokens to style it?
Naming instance doesn't automatically mean it needs a reusable token
Tokens are specifically designed to be reusable, otherwise a one-off doesn't need a token at all
Sounds very similar to tailwind. I personally am not a huge fan of working this way, since code becomes much harder to navigate in the production site, but it is much faster to develop, so I understand the need for this system.
So if you have a complex section styling you would use the Local instance for styling?
Also I tend to be in the minority of people who don't prefer tailwind, so I think following that approach is actually more benefitial for most devs anyway.
You can use only local styles without tokens if you feel comfortable with such approach.
In the future we will add nocode components support. So you could reuse parts without copy/paste.
I don't advocate for one approch or another
I am just saying that instance name is not token name, they serve different purposes
With css variables that we are going to add soon, semantic approach will be prefferable
but even then You may want to have different names on the instance and token
Instance naming is about specific meaning in the tree where its being used, token naming is a reusable meaning across all usages
E.g. My Red Very Important Button could be instance name, while token Could be just Button or "Primary Button" or "button" "button-primary"
You seem to be coming with webflow mindset I have a feeling.
Definitely a webflow mindset.
Another question: I tend to use classes as a way to animate using GSAP, for example:
Go through all elements with class of .sticker-image
And make the very top one have the highest z index than the ones on bottom.
If I do something like this, would i work with token name or instance name?
you can still add classes to an instance
Oh okay, so if I set the class name and then change the styling, would it apply to the class name I have selected, or is that more of an Identified?
no, class name is just an attribute/property
we don't use your classes for css we generate