Comments (8)
Just merged this PR #12
New version in Figma also published.
from figma-plugin.
Agreed it'd be good support multiple shadows in the same token. I know its already been linked to in the PR, but for those searching in the future here is the relevant spec issue.
It looks like Cobalt implemented support for this recently. It'd be nice if the implementation was interoperable.
from figma-plugin.
I thought to myself: why not looking at the code, to see if multiple drop shadows are supported already, and I am not missing something. Turns out that only one part of an effect is considered, by selecting effect[0]
, rather than considering the drop shadow effect as an array.
I am not aware of how effects are passed to the plugin, but I assumed that any drop shadow would be an entry of the effect
array. That is why I forked this repo and created a PR to submit a suggestion for handling the drop shadow effects.
This is my PR: 35acf36
Please do note that a guide for contribution to this repo is still WIP. I don't know how to properly contribute to this repo. Consider my PR as a suggestion, and use it whichever way you like to. I think that treating the drop shadow effects as arrays and exporting them as such may be the best way to go.
I am curious to any feedback.
from figma-plugin.
Looks like the release (0b64358) that implemented this fix didn't get tagged in GitHub. I don't know if anyone consumes the package that way so its not a huge deal. However, this does mean the repo's homepage looks misleading since the other releases were tagged. The "Releases" section on the right still shows 2.0.0 as being the most recent release.
Other than that, it looks like this issue could be closed.
from figma-plugin.
You right, that's my bad. I'll fix it asap
from figma-plugin.
done https://github.com/tokens-bruecke/figma-plugin/releases/tag/2.1.0
from figma-plugin.
Nice! I think this issue can get closed then.
from figma-plugin.
Sorry for the delay. Indeed, this issue can be closed. Support for multiple shadows has been implemented.
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
- Alias resolution with Style Dictionary HOT 11
- Multi-tenant HOT 2
- Multiple collection and modes HOT 28
- Sorting variables HOT 1
- $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.