Some context: I’m starting my switch to Penpot with a project imported from Figma which has a main design and some colour and typography variations. Tokens and themes are great for this but I’ve run into a problem when it comes to highlighting words within a text.
I know Design Tokens can’t be applied to editing text. So, is there any other way to make the text color change when changing the theme?
I’m sharing some screenshots[1] in case it may be useful to understand what I’m talking about:
You can apply design tokens to text elements. I think the confusion here might have come out of the error message that says you cannot apply a design token fill colour to text while you are editing the text inside the text element.
A separate issue for the mockup you’ve included here is that you cannot change the colour of the Amaranto text separately from the Block theme for WooCommerce text if it’s all included inside the same text element. (Although you can work around this by separating the text into multiple text elements, using flex layout to mimic the flow of text, and applying different colour design tokens to each element.)
Yep, I understood the difference between not being able to apply the token while editing the text and being able to do so to the text layer when selected. The answer I was looking for is the one you suggested using Flex Layout (or another alternative, if any) to simulate the highlighted text which would be inside the same tag or block or whatever when coding. I’ll try to set it up with Flex Layout, then.
Thanks!
PD. Not sure if I’ve correctly reply to your comment @LauraKalbag ^^’ Still getting used to how the forum UI works—sorry!
The font color changes when changing the token set (if you have assigned one which I haven’t done yet with all the text shown in the screenshot because I’m still in the process of migrating the project). The thing is that you cannot assign different token color (or other tokens) to different words in a same text element. You have to put each piece of text separately in order to assign different tokens and make the text change when switching sets or themes. I was wondering if another alternative existed for a design like the one on the screenshots.