Closed mikeysouthwell closed 2 weeks ago
the best way to handle this is through the web code syntax in variables. i dont have control over the output of the CSS, i can only filter it after the fact. you can change what that value is going to be by adding code syntaxes through the variables modal
Ahh this is exactly what I'm looking for. Thanks Jake!
I'll use the custom web code syntax for the variables :)
Hey Jake,
Is it possible to have an option like {{css.background|pascal}} for Token Studio or just generic "dot" notation eg. {{css.background|tokenstudio}} or {{css.background|dots}}
{{css.background|pascal}} BackgroundColor=Var(ThemeColoursNeutralsNeutral500, #888C84)
{{css.background|tokenstudiol}} BackgroundColor=Var(Theme.Colours.Neutrals.neutral-500, #888C84)
"css.background": "var(--Theme-Colours-Neutrals-neutral-500, #888C84)", "variables.fills": "theme-colours-neutrals-neutral-500"
So the last string of text after the dot "." would be unchanged, which in this case is neutral-500.
While the rest would go from "--Theme-Colours-Neutrals-" to "Theme.Colours.Neutrals".