Comments (3)
This is a very important subject, and we have a flags feature to contribute on it (still in preview stage).
- Flgas docs - https://grida.co/docs/flags/
- Flags demo - https://blog.grida.co/introducing-grida-embeddings-figma-designs-made-alive-with-production-ready-code-254e40b206bc
Please take a look and share your thoughts!
p.s. your w3c link seems dead (404)
from assistant.
Oh wow, thank you, for your quick reply! Sorry, I fixed the w3c link.
Yes, I played a bit with the concept of the flag and I think it is really great for annotating something semantically e.g. as a button. But I don't see how this could be still user-friendly when you build e.g. a button with 5 different states (normal, hover, pressed, focus, disabled) and multiple attributes changes in each state (e.g. color, border, shadow).
So I thought it could be cool if you would have a w3c design token definition for each element that looks something like this:
{
"button":{
"variants":{
"base":{
"default":{
"bg":{
"$value":"{colors.primary.20}"
}
},
"hover":{
"bg":{
"$value":"{colors.primary.80}"
}
}
}
}
}
}
So you would have a nested structure of type -> variants -> state. This token structure could be managed with tools like Figma Tokens and then automatically applied to the generated code.
from assistant.
That is great. Infact it was something I was looking for.
Theres a lot on my table right now, I'll get on to this tomorrow and share my thoughts in details.
from assistant.
Related Issues (20)
- Booting time hacking - Use hosted version of assistant HOT 1
- [Bug] DnD event does not work on hosted version of plugin HOT 3
- Add Internet ping for loading hosted version of plugin.
- Optimize plugin window by droping React, adopting Svelte or Preact HOT 1
- Optimization with user interest & conversion caching
- [Bug] Responsive preview to shrink its height regarding to scaled inner iframe
- [Bug] Constraints will print wrong positions if group is selected under other root screen (frame)
- [Draft] Live session from Assistant
- [Refactor] Use NextJS Router instead of react-router
- [Draft] Support figma command pallete
- Add icon loading from svg on `icons loader`
- Multiple selection occurring thread lock - which should be handled as double click.
- Add `"pause"` button for computing lock
- [Bug] Plugin fails when cannot read localstorage. (Related to chrome canary? or incognito mode?)
- images is not hosted though user is logged in grid assistant in Figma HOT 7
- [Bug] I cannot authenticate HOT 5
- New design utility: Sort with X
- [Bug] Plugin won't un on incognito mode (or on whale browser?)
- Add GIPHY support
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 assistant.