I am trying to use downloaded tokens.json file with Style Dictionary v4 for generating CSS variables, but I encounter problem with referencing values. Penpot doesn’t reference full path for the value in Json .
What is generated by Penpot:
{
"Global":{
"red":{
"$value":"rgb(252, 35, 35)",
"$type":"color",
"$description":""
},
"warning":{
"$value":"{red}", <<<<<<<<<<<< That's the problem
"$type":"color",
"$description":""
}
},
"$themes":[
],
"$metadata":{
"tokenSetOrder":[
"Global"
],
"activeThemes":[
],
"activeSets":[
"Global"
]
}
}
The red color should be referenced {Global.red} to work.
It’s even described in the Design Tokens Format Module → Design Tokens Format Module
" For a design token to reference another, its value MUST be a string containing the period-separated (.) path to the token it’s referencing enclosed in curly brackets."
Maybe I am to new to the topic, but it seems that the path need to be included.

