Skip to content

Commit

Permalink
feat(extras): add zed editor theme
Browse files Browse the repository at this point in the history
* refactor(util): Add parse method for variant

* feat(extras): Init Cyberdream theme for zed

* chore: generate extras

* refactor(extras): put variant logic inside zed template

* docs(extras): update zed usage instructions

* fix(extras): small changes for better theme parity

* chore: generate extras

---------

Co-authored-by: byt3m4st3r <[email protected]>
Co-authored-by: Scott McKendry <[email protected]>
Co-authored-by: scottmckendry <[email protected]>
  • Loading branch information
4 people authored Jul 10, 2024
1 parent e916fef commit 7d75ae8
Show file tree
Hide file tree
Showing 6 changed files with 982 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ We've cooked up some wonderful extras to enhance your cyberdream experience. Mos
- **[Tmux](extras/tmux/)**
- **[Wezterm](extras/wezterm/)**
- **[Windows Terminal](extras/windowsterminal/)**
- **[Zed](extras/zed/)**
- **[Zellij](extras/zellij/)**

## 🧑‍🍳 Recipes
Expand Down
24 changes: 24 additions & 0 deletions extras/zed/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Usage

Create a directory `~/.config/zed/themes` if it does not already exist.

Copy `cyberdream.json` and/or `cyberdream-light.json` to the directory.

Open [Zed](https://zed.dev) and select the theme under `Settings -> Select Theme -> Cyberdream (dark|light)`.

Alternatively, put the following config into your `settings.json` under `~/.config/zed`.

```json
// settings.json
{
// ---
"theme": {
"mode": "system",
"light": "Cyberdream light",
"dark": "Cyberdream dark"
}
// ---
}
```

See also: [Zed - Docs - Themes](https://zed.dev/docs/themes)
313 changes: 313 additions & 0 deletions extras/zed/cyberdream-light.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,313 @@
{
"$schema": "https://zed.dev/schema/themes/v0.1.0.json",
"name": "Cyberdream",
"description": "High-contrast, Futuristic & Vibrant Coloursheme for Zed",
"author": "Byt3m4st3r",
"themes": [
{
"name": "Cyberdream light",
"appearance": "light",
"style": {
"background.appearance": "opaque",
"accents": [],
"border": null,
"border.variant": null,
"border.focused": null,
"border.selected": null,
"border.transparent": null,
"border.disabled": null,
"elevated_surface.background": null,
"surface.background": null,
"background": "#ffffff",
"element.background": null,
"element.hover": null,
"element.active": null,
"element.selected": null,
"element.disabled": null,
"drop_target.background": null,
"ghost_element.background": null,
"ghost_element.hover": null,
"ghost_element.active": null,
"ghost_element.selected": null,
"ghost_element.disabled": null,
"text": "#16181a",
"text.muted": null,
"text.placeholder": null,
"text.disabled": null,
"text.accent": null,
"icon": null,
"icon.muted": null,
"icon.disabled": null,
"icon.placeholder": null,
"icon.accent": null,
"status_bar.background": null,
"title_bar.background": null,
"toolbar.background": "#ffffff",
"tab_bar.background": null,
"tab.inactive_background": null,
"tab.active_background": null,
"search.match_background": null,
"panel.background": null,
"panel.focused_border": null,
"pane.focused_border": null,
"pane_group.border": null,
"scrollbar.thumb.background": null,
"scrollbar.thumb.hover_background": null,
"scrollbar.thumb.border": null,
"scrollbar.track.background": "#ffffff",
"scrollbar.track.border": null,
"editor.foreground": "#16181a",
"editor.background": "#ffffff",
"editor.gutter.background": "#ffffff",
"editor.subheader.background": null,
"editor.active_line.background": "#acacac",
"editor.highlighted_line.background": null,
"editor.line_number": null,
"editor.active_line_number": "#16181a",
"editor.invisible": null,
"editor.wrap_guide": null,
"editor.active_wrap_guide": null,
"editor.indent_guide": null,
"editor.indent_guide_active": null,
"editor.document_highlight.read_background": null,
"editor.document_highlight.write_background": null,
"terminal.background": null,
"terminal.foreground": null,
"terminal.bright_foreground": null,
"terminal.dim_foreground": null,
"terminal.ansi.black": null,
"terminal.ansi.bright_black": null,
"terminal.ansi.dim_black": null,
"terminal.ansi.red": null,
"terminal.ansi.bright_red": null,
"terminal.ansi.dim_red": null,
"terminal.ansi.green": null,
"terminal.ansi.bright_green": null,
"terminal.ansi.dim_green": null,
"terminal.ansi.yellow": null,
"terminal.ansi.bright_yellow": null,
"terminal.ansi.dim_yellow": null,
"terminal.ansi.blue": null,
"terminal.ansi.bright_blue": null,
"terminal.ansi.dim_blue": null,
"terminal.ansi.magenta": null,
"terminal.ansi.bright_magenta": null,
"terminal.ansi.dim_magenta": null,
"terminal.ansi.cyan": null,
"terminal.ansi.bright_cyan": null,
"terminal.ansi.dim_cyan": null,
"terminal.ansi.white": null,
"terminal.ansi.bright_white": null,
"terminal.ansi.dim_white": null,
"link_text.hover": null,
"conflict": null,
"conflict.background": null,
"conflict.border": null,
"created": null,
"created.background": null,
"created.border": null,
"deleted": null,
"deleted.background": null,
"deleted.border": null,
"error": null,
"error.background": null,
"error.border": null,
"hidden": null,
"hidden.background": null,
"hidden.border": null,
"hint": "#7b8496",
"hint.background": null,
"hint.border": null,
"ignored": null,
"ignored.background": null,
"ignored.border": null,
"info": null,
"info.background": null,
"info.border": null,
"modified": null,
"modified.background": null,
"modified.border": null,
"predictive": null,
"predictive.background": null,
"predictive.border": null,
"renamed": null,
"renamed.background": null,
"renamed.border": null,
"success": null,
"success.background": null,
"success.border": null,
"unreachable": null,
"unreachable.background": null,
"unreachable.border": null,
"warning": null,
"warning.background": null,
"warning.border": null,
"players": [],
"syntax": {
"attribute": {
"color": "#008c99",
"background_color": null,
"font_style": null,
"font_weight": null
},
"boolean": {
"color": "#0057d1",
"background_color": null,
"font_style": null,
"font_weight": null
},
"comment": {
"color": "#7b8496",
"background_color": null,
"font_style": null,
"font_weight": null
},
"comment.doc": {
"color": "#7b8496",
"background_color": null,
"font_style": null,
"font_weight": null
},
"constant": {
"color": "#16181a",
"background_color": null,
"font_style": null,
"font_weight": null
},
"constructor": {
"color": "#008c99",
"background_color": null,
"font_style": null,
"font_weight": null
},
"emphasis": {
"color": "#d17c00",
"background_color": null,
"font_style": "italic",
"font_weight": null
},
"emphasis.strong": {
"color": "#d17c00",
"background_color": null,
"font_style": null,
"font_weight": 700
},
"function": {
"color": "#0057d1",
"background_color": null,
"font_style": null,
"font_weight": null
},
"keyword": {
"color": "#d17c00",
"background_color": null,
"font_style": null,
"font_weight": null
},
"number": {
"color": "#d17c00",
"background_color": null,
"font_style": null,
"font_weight": null
},
"operator": {
"color": "#a018ff",
"background_color": null,
"font_style": null,
"font_weight": null
},
"punctuation": {
"color": "#f40064",
"background_color": null,
"font_style": null,
"font_weight": null
},
"punctuation.bracket": {
"color": "#f40064",
"background_color": null,
"font_style": null,
"font_weight": null
},
"punctuation.delimiter": {
"color": "#f40064",
"background_color": null,
"font_style": null,
"font_weight": null
},
"punctuation.list_marker": {
"color": "#f40064",
"background_color": null,
"font_style": null,
"font_weight": null
},
"punctuation.special": {
"color": "#f40064",
"background_color": null,
"font_style": null,
"font_weight": null
},
"string": {
"color": "#008b0c",
"background_color": null,
"font_style": null,
"font_weight": null
},
"string.escape": {
"color": "#16181a",
"background_color": null,
"font_style": null,
"font_weight": null
},
"string.regex": {
"color": "#008b0c",
"background_color": null,
"font_style": null,
"font_weight": null
},
"string.special": {
"color": "#008b0c",
"background_color": null,
"font_style": null,
"font_weight": null
},
"string.special.symbol": {
"color": "#008b0c",
"background_color": null,
"font_style": null,
"font_weight": null
},
"tag": {
"color": "#008c99",
"background_color": null,
"font_style": null,
"font_weight": null
},
"text.literal": {
"color": "#008b0c",
"background_color": null,
"font_style": null,
"font_weight": null
},
"type": {
"color": "#a018ff",
"background_color": null,
"font_style": "italic",
"font_weight": null
},
"variable": {
"color": "#16181a",
"background_color": null,
"font_style": null,
"font_weight": null
},
"variable.special": {
"color": "#a018ff",
"background_color": null,
"font_style": null,
"font_weight": null
}
}
}
}
]
}
Loading

0 comments on commit 7d75ae8

Please sign in to comment.