-
Notifications
You must be signed in to change notification settings - Fork 433
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
docs(readme): recipe to modify a style #601
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Jonas Dujava <[email protected]>
This PR is stale because it has been open 30 days with no activity. |
I think this is still relevant :). |
This is not very clear - where, exactly, are we supposed to put that code? |
Neighboring examples also don't provide exact instructions on where to put the code. I personally put it in the config = function(_, opts)
local styles = require('tokyonight.colors').styles
-- change the colors for your new palette here
---@type Palette
local modified_colors = {
bg_darker = '#1a1a1a',
...
}
-- save as `custom` style (by extending the `storm` style)
styles.custom = vim.tbl_extend('force', styles.storm --[[@as Palette]], modified_colors)
require('tokyonight').load(opts) -- load custom style (be sure to have opts.style = 'custom')
end, If it would be desirable, I have no problem including it in the recipe. |
This PR is stale because it has been open 30 days with no activity. |
Is there a reason for not merging this yet? |
This PR is stale because it has been open 30 days with no activity. |
Description
Document the ability to modify the color palette of a style.
Related Issue(s)
See #595.