mirror of https://github.com/gabehf/base46.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.6 KiB
65 lines
1.6 KiB
## NvChad theme plugin
|
|
|
|
- This plugin's a whole re-write of Norcalli's plugin.
|
|
|
|
(Note: This theme plugin is supposed to be used along with [NvChad](https://github.com/NvChad/NvChad) only so watchout!)
|
|
|
|
## Contribute for new themes
|
|
|
|
- go to base46/themes and add your file, ex: atheme.lua
|
|
```lua
|
|
-- atheme.lua file be like
|
|
|
|
local M = {}
|
|
|
|
M.base_30 = {
|
|
-- some colors
|
|
}
|
|
|
|
M.base_16 = {
|
|
-- some colors
|
|
}
|
|
|
|
vim.opt.bg = "dark" -- this can be either dark or light
|
|
|
|
M = require("base46").override_theme(M, "atheme")
|
|
|
|
return M
|
|
```
|
|
|
|
## Understanding theme variables
|
|
|
|
- Read the following for base_16 variables https://github.com/chriskempson/base16/blob/master/styling.md
|
|
|
|
- Use a color lightening/darkening tool, such as this https://siduck.github.io/hex-tools/
|
|
- The following variables are for base_30
|
|
|
|
```
|
|
black = usually your theme bg
|
|
darker_black = 6% darker than black
|
|
black2 = 6% lighter than black
|
|
|
|
onebg = 10% lighter than black
|
|
oneb2 = 19% lighter than black
|
|
oneb3 = 27% lighter than black
|
|
|
|
grey = 40% lighter than black (the % here depends so choose the perfect grey!)
|
|
grey_fg = 10% lighter than grey
|
|
grey_fg2 = 20% lighter than grey
|
|
light_grey = 28% lighter than grey
|
|
|
|
baby_pink = 15% lighter than red or any babypink color you like!
|
|
line = 15% lighter than black
|
|
|
|
nord_blue = 13% darker than blue
|
|
sun = 8% lighter than yellow
|
|
|
|
statusline_bg = 4% lighter than black
|
|
lightbg = 13% lighter than statusline_bg
|
|
lightbg2 = 7% lighter than statusline_bg
|
|
|
|
folder_bg = blue color
|
|
|
|
(note : the above values are mostly approx values so its not compulsory that you have to use those exact numbers , test your theme i.e show it in the PR to get feedback from @siduck)
|
|
```
|