Skip to content
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

Add a custom variant name #666

Open
radvil opened this issue Feb 25, 2024 · 2 comments
Open

Add a custom variant name #666

radvil opened this issue Feb 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@radvil
Copy link

radvil commented Feb 25, 2024

Is your feature request related to a problem? Please describe.

I often find myself always tinkering my catpuccin color palettes, but at the same time I don't want to replace all of the default colors variant. It depends on the situation e.g. I am working on my low light room, I usually switch from mocha to frappe because frappe is more satisfying to work with. The problem is now I have my new color palettes for frappe, but I sometimes going back to my config to toggle them in order to get my default ones (again because I like it).

Describe the solution you'd like

I want a custom variant name to work with when i am focusing on work, rather then going back and forth to toggle my custom palettes. For example by simple calling vim.cmd("colorscheme catppuccin-custom1"),

Describe alternatives you've considered

I was thinking maybe you guys can provide some config similar to the following:

    custom_variants = {
      custom1 = {
        merge_from = "frappe",
        values = {
          maroon = "#ea999c",
          peach = "#ff9b5e",
        },
      },
      custom2 = {
        merge_from = "mocha",
        values = {
          maroon = "#ea999c",
          peach = "#ff9b5e",
        },
      },
    },

Additional context

This is my custom config override for frappe variant, I like the color contrast sometimes, but I don't want to override the default palette because I like all of the default variants palette.
image

Anyway, thanks for a good work!. I've been using catppuccin since I started to switch to neovim couple months ago.

@radvil radvil added the enhancement New feature or request label Feb 25, 2024
@benoror
Copy link

benoror commented Dec 3, 2024

I would love to have #0000ff blue variants!

@bbaserdem
Copy link

I have been trying to do this on my own as well. So far I have done the following and hit a snag

  • In my config at lua/catppuccin/palettes/, I added files akin to the ones on this repo, lua files that just return a table of color definitions. (For my case, this is lua/catppuccin/palettes/gruvbox.lua
  • Added the file colors/catppuccin-gruvbox.vim that calls lua require("catppuccin").load 'gruvbox'

Hit a snag here, because the list of palettes are built-in at lua/catppuccin/init.lua without any ability to have a drop in file to have additional themes added in.

If this could be specified in the opts to the config, it would be great. Current overriding mechanism requires one to sacrifice one of the flavor options if I want to be able to use a different colorscheme but with all the catppuccin integrations still available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants