You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding additonal split string to convert variables to Token Studio syntax and remove unwanted characters and pull out specific parts of the output parameters
#60
Open
mikeysouthwell opened this issue
Aug 14, 2024
· 0 comments
Is it just as simple as adding this code below to the section of code above?
case"tokenstudio":
returnrawString.join("/");
The objective here is to change something like this:
Colours/Surface/button-white
To this:
Colours.Surface.button-white
The custom Code Syntax option for variables is painful as you have to do this for each individual variable and if you change the name or move it you have to rename the custom code syntax!
Could we also use the same string transform filters on things like this to pull out the parts we need or remove the "px" next to the numbers?
The text was updated successfully, but these errors were encountered:
mikeysouthwell
changed the title
Adding additional split string to convert "/" variable folder syntax to "." Token Studio syntax
Adding additonal split string to convert variables to Token Studio syntax and remove unwanted characters and pull out specific parts of the output
Aug 16, 2024
mikeysouthwell
changed the title
Adding additonal split string to convert variables to Token Studio syntax and remove unwanted characters and pull out specific parts of the output
Adding additonal split string to convert variables to Token Studio syntax and remove unwanted characters and pull out specific parts of the output parameters
Aug 16, 2024
Hi Jake,
I believe this is the section of your code in the "snippets.ts" script that needs to be adjusted to allow this change:
Is it just as simple as adding this code below to the section of code above?
The objective here is to change something like this:
Colours/Surface/button-white
To this:
Colours.Surface.button-white
The custom Code Syntax option for variables is painful as you have to do this for each individual variable and if you change the name or move it you have to rename the custom code syntax!
Could we also use the same string transform filters on things like this to pull out the parts we need or remove the "px" next to the numbers?
"css.border": "var(--Stroke-stroke-2xs, 0.5px) solid Colours.Border.neutral"
"css.boxShadow": 0px 0.5px 1px 0px rgba(0, 0, 0, 0.10)
The text was updated successfully, but these errors were encountered: