The post asks if it's possible to define CSS classes via code, specifically to have one class name that does two different things depending on whether it's on a Button or a Link. The community members discuss various approaches, such as adding classes through the Settings, using nested classes, and leveraging Webstudio's features to handle specificity issues. They also mention that a lot of this information is documented, and provide a couple of video references to help with understanding Tokens and Local. However, there is no explicitly marked answer to the original question.
Is it possible to define CSS classes via code? The main reason I ask is because I want to have one class name that does 2 different things depending on if it's on a Button or a Link
Maybe this is something a Component Editor could do too if you want to have a defined section like this with expecations of what goes inside and the design