-
Notifications
You must be signed in to change notification settings - Fork 309
Get Zulip color palette from Figma design #831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The steps for implementing this will basically be:
For the plugin, after searching through Figma's store of plugins for a bit, we're basically doomed to using some code that a random person on the Internet put together and decided to publish. That's a lot more palatable if the code is at least open source. There don't seem to be very many open-source Figma plugins, but here's two that should be able to do the job: Here's another plugin I ran across that is open source and does almost the right job, but in reverse: |
Oh and about running plugins that are from a random person on the Internet: Figma has a pretty credible-seeming story for how plugins are contained in what they can do: But even the intended security model means that when you choose to run a plugin, it can "modify any data in your Figma document" and "communicate with any server over the internet": So that remains quite a lot of trust. It's not more trust than any of the numerous tools one ordinarily runs on a development machine, published by a variety of people on the Internet to pub.dev or npmjs.com or pypi.python.org… but it's not clear it's really any less trust, either. So it's good for the plugins we use to be open source, just like those other tools are, as that's a key layer of protection we're used to relying on. |
The colors were added in the web app in zulip/zulip@4405110 , in case that's helpful. |
There is a difference between color palette and color variables in a figma document. Color variables may link to colors from the palette or may not. |
Right, this issue is about the color palette. As a follow-up to this we might also automate exporting the variables from your Figma document for mobile and generating Dart code for those too. That would re-use the same plugin and much of the same other code as for this issue. But I'm content for now with the status quo where we pull those variables' values one by one when we need them. When we do pull those variables manually (or in the future automatically), it will be convenient if they can refer to the color palette where applicable, rather than spell out the color in hex. That's what this issue is for. |
There's a new color palette for Zulip's UIs, designed recently by @terpimost:
https://www.figma.com/design/msWyAJ8cnMHgOMPxi7BUvA/Zulip-Web-UI-kit?node-id=900-1861&t=7OnwOYAxWXBEtYXW-0
We should export that and turn it into some generated Dart code, so that our UI code can refer to it.
The text was updated successfully, but these errors were encountered: