I am trying to work out from the documentation how to add the simple CSS styling
border-radius: 50%;
to an image.
It is simple to define a new role.
But not at all clear how to link the role and theme.css
theme.css contains elements named anvil-role-“whatever”. does that mean I simply add
Ah, have you created the role in the IDE as well? In the app browser, under “Theme” there’s a link called “Roles”. Add the role there (you only need give it the name, not the anvil-role- bit)
That allows you to set the roles for components in the IDE.
If that still doesn;t work - could you share a simple project and I’ll take a look?