-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Import Themes from VSCode #7111
Comments
The VS Code theme importer is public now. Right now, its just tied up in the repo here. Also, tomorrow's preview release should have support for loading in user themes from a directory. |
@JosephTLyons , that's super exciting. Question: will this be exposed in the GUI of Zed? I ask because it's not super clear to me how to use that crate from the ReadMe file. |
Yeah, sorry, things aren't documented at the moment. I wasn't on the team who made it and I decided to give it a spin last night. What I did was:
{
"name": "Some name",
"author": "Some author",
"themes": [
<output_of_theme_importer_here>
]
}
Sorry this is pretty informal and not great documentation, we will add some instructions and probably streamline the process a bit more going forward. |
Thanks for the help but I run into this error on step # 3
My environment is: macOS 14.3 I assume I need to install the CLI, or install something from https://www.rust-lang.org I'll give this a try and report back https://doc.rust-lang.org/cargo/getting-started/installation.html Question: any word if this will be exposed in the GUI? It's such a great feature that I think so many would appreciate! |
@michealp-coder. Oops, I made the bad assumption that users already have |
@JosephTLyons super excited about this functionality, question though. From the blog post, it says:
And the development toolchain requires: Postgres, Xcode, and much much more to be installed and setup. I don't want to come across as unappreciative, but doesn't it seem a bit excessive to have to install Postgres and Xcode just to import a theme? |
I've built out the theme json file now, and I'm wondering how to replace the existing theme json, overriding the existing styles to achieve the replacement theme. |
The
At some point we'll have a better "golden path" for importing themes, perhaps even built-in to Zed itself, but for right now the expectation is that to use the |
The themes directory is Check out the blog post for all the details of the theme system. |
This is now shipped. There might be a bit of friction, since users have to install the necessary tools to compile the importer, but it is technically shipped, so I'm going to close this issue out. We will improve the process going forward to streamline it more, as Marshall said. |
We know there is a bit of friction here, but this is the first step to at least getting the ball rolling. Improvements will be made going forward. |
Authored a simple VSCode extension to streamline this: https://marketplace.visualstudio.com/items?itemName=degreat.theme-to-zed It allows to select a theme directly from vscode and export it directly to the zed themes folder. No need to download the zed repo and build stuff. |
Amazing!! |
@blackmann This is awesome. Also by any chance could you share the exported json of your monokai theme? I got some different results with some borders etc missing during my export using your tool (probably because we are using different base themes in VSCode). |
Getting this error using this extension https://marketplace.visualstudio.com/items?itemName=degreat.theme-to-zed
|
To be honest, I have not understood how to run cargo run, from where exactly, there should be a file cargo.toml, can you describe the steps in detail? |
@Edgar200021 you have to follow all the steps from https://zed.dev/docs/development, including cloning the zed repo. then you run that cargo command within the /zed repo |
I have tried to use theme_importer to convert SpaceBox-color-theme.json theme to Zed theme, but getting $ cargo run SpaceBox-color-theme.json
Compiling proc-macro2 v1.0.89
Compiling serde v1.0.209
Compiling libc v0.2.161
Compiling typeid v1.0.2
error: linking with `clang` failed: exit status: 1
| also tried this |
Originally posted by @JosephTLyons in #6659 (comment)
The text was updated successfully, but these errors were encountered: