Skip to content

catppuccin/zed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

85b1ced Β· Nov 12, 2024
Sep 9, 2024
Jun 16, 2024
Nov 12, 2024
Sep 9, 2024
Feb 3, 2024
Nov 8, 2024
Nov 11, 2024
Sep 1, 2024
Nov 12, 2024

Repository files navigation

Logo
Catppuccin for Zed

Previews

🌻 Latte
πŸͺ΄ FrappΓ©
🌺 Macchiato
🌿 Mocha

Usage

Install via Zed Extensions

  1. Open Zed.
  2. cmd+shift+p and select zed: extensions
  3. Select Catppuccin Themes and Install
  4. Select your Catppuccin theme in the dropdown shown after hitting cmd+k, cmd+t

🎨 Installing Different Catppuccin Flavor Accents

  1. Download accent.json from GH Releases
  2. mkdir -p ~/.config/zed/themes/
  3. Move the accent.json file to ~/.config/zed/themes/
  4. Restart Zed
  5. Select the chosen theme in the dropdown shown after hitting cmd+k, cmd+t

Development

Use whiskers to Render Theme from zed.tera Template

  1. Install Rust

  2. Install whiskers

    # brew install catppuccin/tap/whiskers
    cargo install [email protected]
  3. Test and check changes against current mauve accent theme

    # returns nothing if OK
    whiskers zed.tera -o json --overrides '{"accent": "mauve"}' --check themes/catppuccin-mauve.json
  4. Build the .json theme file

    whiskers zed.tera -o json --overrides '{"accent": ["mauve"]}'
    # whiskers zed.tera -o json --overrides '{"accent": ["mauve","lavender"]}'
    ...
  5. (Optional) 🎨 Generate all accents per Flavor

    whiskers zed.tera -o json
  6. Refresh Zed to load changes after ensuring local extension install

Test Zed Extension Theme Locally

From Zed Extensions docs:

  1. Install project as "Zed Dev Extension"
cmd+shift+p > zed: install dev extension > (select current directory)
  1. Refresh theme extension using: cmd+shift+p > zed: reload extensions
  2. (Optional) workspace: reload may be needed if changes are not reflected immediately

Publishing to Zed Extensions Marketplace

Zed organizes all extensions using git submodules in the zed/extensions repo.

  1. Fork the repo

  2. Pull the currently published extensions/catppuccin/ submodule

    git submodule update --init --force extensions/catppuccin
    
  3. Bump catppuccin submodule

    cd extensions/catppuccin/ && git pull origin main
    
  4. Modify the extensions/extensions.toml version to match value in catppuccin/zed/extension.toml

  5. Submit a PR to merge back to zed/extensions

πŸ’ Thanks to

 

Copyright Β© 2021-present Catppuccin Org