Comments (3)
I have been thinking about it. I am not as well versed in web components yet but not opposed to exploring them. I did a bit more digging just before I built the Svelte version of this (which you may want to check out). My hope is to support this in a few flavors and then expand upon the number of components.
If interested in the Svelte one:
https://github.com/thomas-lowry/figma-plugin-ds-svelte
https://github.com/thomas-lowry/figsvelte (boilerplate)
One question: Do you think this be a separate repo/flavor? There is a certain approachability to not having them for those who just know basic html and css which may also be desirable?
What I was hoping to do with this repo
- setup a starter with webpack or rollup with a build process that bundles assets
- make it easy for the final build to only include css and js for the "components" that are used
- no frameworks at runtime
- rework the icon component specifically to be much smaller like the Svelte version
- may even consider just using CSS vars and no SASS like I did with the Svelte one as well
from figma-plugin-ds.
Amazing work over there, without even knowing svelte ;)
Here are my thoughts on this:
- Figma comes with a vanilla html/css/(j|t)s setup
- There is no such buy-in into any of the available (major) UI frameworks/libraries at the moment
- The common ground for this are web-components 🤷♂
- If you opt-in for any of the frameworks/libraries of your choice, feel free to do so
- For those, I think it would make sense either to use web-components as-is or provide wrapper components in the respective framework/library
- PS: I like the idea for css-custom-properties
To bootstrap this:
Figma asks which template it should use to create a new plugin, I think these can be extended to even have a more package-oriented one (still vanilla technology stack). E.g. what I did here: https://github.com/gossi/figma-style-references/ (I restructred the folders a bit more to my flavor). On top of this could be templates that put your favorite framework/library on top of it, so you can choose to use svelte/glimmer/react/...
More focus to the base-/groundwork and a slim layer on top for each lib/framework. Sounds to me like a more flexible approach to serve more flavors while still maintainable.
from figma-plugin-ds.
I decided to keep this as vanilla html and css. Web components may be another future avenue. Goal of this project is to make it easier to new comers with html, css, and a little JS knowledge. Would love to keep the convo going though for another version of this repo!
BTW I really like Style References!
from figma-plugin-ds.
Related Issues (20)
- Demo page missing? HOT 2
- Backward compatibility is broken? HOT 1
- How do i set a value for a selectMenu programtically? HOT 4
- Is there also a Figma file of these components? HOT 2
- License HOT 1
- What happened to .visual-bell ? HOT 3
- Any way to make the Select Menu work with React? HOT 1
- Use "currentColor" for the SVG icons fill HOT 1
- Spinning icon is not centered correctly HOT 3
- Fix "align-items: top" declaration HOT 1
- Add a "flex: none" to the icon when is inside the Onboarding Tip HOT 1
- Missing Effect Icons
- Interactive elements (like button, switch, etc) inside the disclosure are not clickable
- Start using tags & releases
- Missing active state for switch
- How to use this library? HOT 2
- Dark mode updates? HOT 1
- Getting up and running HOT 2
- import styles from HOT 1
- Figma Integrated Color Picker 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 figma-plugin-ds.