Comments (11)
@dev-nicolaos updated. It's now optional
from figma-plugin.
Interesting. Thanks for feedback @cailborg
I'll check it out.
Which version of Style Dictionary do you use?
from figma-plugin.
Just latest
at the moment, so 3.8.0
from figma-plugin.
Thank, and for which platform, CSS?
I'll check it in the morning 🙂
from figma-plugin.
Yep CSS and SCSS
from figma-plugin.
Should work fine, without value
at the end. I've checked a test JSON file with Style Dictionary playground — here is a link
Looks like the reason in something else.
Also, I made Style Dictionary utils package. So, you can try to transform your tokens with it — https://github.com/tokens-bruecke/sd-utils
Here is a test repo with Github Actions — https://github.com/tokens-bruecke/tokens-deploy-with-actions
from figma-plugin.
I made a custom build. In this build, the plugin will add .value
at the end of the alias string.
Can you check if it works for you?
from figma-plugin.
Also, might be the reason in this:
"$value": "{base.primary.yellow.value}"
that you're using DTCG format $value
from figma-plugin.
Added value
or $value
(if it's the DTCG
format) at the end of the alias paths.
from figma-plugin.
@PavelLaptev wouldn't it be more appropriate for this change to live in the style dictionary utils? The alias example provided by the spec does not append value
to the end of an alias. Cobalt's (a DTCG parser) example matches the spec. Style dictionary is the only place I've seen so far where value
is appended.
from figma-plugin.
@dev-nicolaos thank you for your feedback. I think you're right. I'll leave adding value
at the end of an alias optional.
from figma-plugin.
Related Issues (17)
- Reference tokens auto-referencing themselves in the exported JSON HOT 4
- Effects key label is uppercase HOT 2
- No value key in token schema HOT 11
- Multi-tenant HOT 2
- Multiple collection and modes HOT 28
- Sorting variables HOT 1
- Drop shadow effects: how to support multiple shadows in one effect? HOT 8
- $meta is not valid DTCG HOT 6
- Use of plugin within different teams and projects HOT 1
- Toggle token extensions on/off
- Select collections to push / export
- Implement support for more text style properties? HOT 5
- Feature suggestion: Option to omit collection names as top-level groups HOT 3
- Inter Semibold wrong 400 weight HOT 6
- Support new Figma typography variables in styles HOT 1
- Improve Accessibility of Text Inputs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from figma-plugin.