{"id":13895649,"url":"https://github.com/NvChad/base46","last_synced_at":"2025-07-17T11:31:50.105Z","repository":{"id":37047790,"uuid":"364777858","full_name":"NvChad/base46","owner":"NvChad","description":"NvChad's base46 theme plugin with caching ( Total re-write ) ","archived":false,"fork":true,"pushed_at":"2025-05-30T07:41:04.000Z","size":708,"stargazers_count":250,"open_issues_count":4,"forks_count":223,"subscribers_count":5,"default_branch":"v3.0","last_synced_at":"2025-07-10T05:28:38.369Z","etag":null,"topics":["base16","neovim","neovim-plugin","nvchad","rice","theme"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"norcalli/nvim-base16.lua","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NvChad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-05-06T03:52:17.000Z","updated_at":"2025-07-04T22:19:16.000Z","dependencies_parsed_at":"2023-02-14T06:00:35.262Z","dependency_job_id":"437da2a7-1a8c-49fb-9e97-9ede029f0207","html_url":"https://github.com/NvChad/base46","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NvChad/base46","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NvChad%2Fbase46","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NvChad%2Fbase46/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NvChad%2Fbase46/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NvChad%2Fbase46/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NvChad","download_url":"https://codeload.github.com/NvChad/base46/tar.gz/refs/heads/v3.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NvChad%2Fbase46/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265600604,"owners_count":23795722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["base16","neovim","neovim-plugin","nvchad","rice","theme"],"created_at":"2024-08-06T18:02:21.882Z","updated_at":"2025-07-17T11:31:50.098Z","avatar_url":"https://github.com/NvChad.png","language":"Lua","readme":"## NvChad theme plugin\n\n- This plugin's a whole re-write of Norcalli's plugin.\n- It should be used along with [NvChad](https://github.com/NvChad/NvChad) for best experience.\n- Non NvChad users can have the nvconfig module on the path\n\n## Setup\nThis is supposed to be use with NvChad's UI plugin.\n\nCheck its [install doc](https://github.com/NvChad/ui?tab=readme-ov-file#install)\nand then read `:h nvui.base46`\n\n## Supported Integrations\n\n- Bufferline.nvim\n- Cmp.nvim\n- Codeactionmenu\n- Nvim-dap\n- Nvim-webdevicons\n- Hop.nvim\n- Vim-illuminate\n- Lsp ( diagnostics )\n- Nvim Navic\n- LspSaga\n- Mason.nvim\n- Notify.nvim\n- Nvim-tree\n- Telescope.nvim\n- Rainbow-delimiters.nvim\n- Todo.nvim\n- Nvim-treesitter\n- Lsp Semantic tokens\n- Trouble.nvim\n- Whichkey.nvim\n- git-conflict.nvim\n- Orgmode\n- diffview.nvim\n- leap.nvim\n- Edgy.nvim\n- Grug-far.nvim\n- Flash.nvim\n\n## Configuration\n\n- Base46 is configured by [nvconfig](https://github.com/NvChad/ui/blob/v2.5/lua/nvconfig.lua) in your path.\n- Read the [themeing docs](https://nvchad.com/docs/config/theming)\n\n## Highlight command\n\n- `:hi` command will list all highlight groups\n- `:hi` with args will highlight a **highlight group**\n-  Example : `hi Comment guifg=#ffffff gui=italic, bold`\n\n### Neovim Lua api for setting highlights\n\n- Check `:h nvim_set_hl` for detailed doc\n\n```lua\nvim.api.nvim_set_hl(0, \"Comment\", {\n  fg = \"#ffffff\",\n  italic = true,\n  bold = true,\n})\n```\n## Understanding theme variables\n\nThere are 2 main tables used for `base46`\n\n- `base_30` is used for general UI\n- `base_16` is used for syntax highlighting\n- Use a color lightening/darkening tool, such as this\n  https://imagecolorpicker.com/color-code\n\n**Note: the below values are mostly approx values so its not compulsory that you\nhave to use those exact numbers, test your theme i.e show it in the PR to get\nfeedback from @siduck**\n\n## Default Theme table\n\n```lua\n-- this line for types, by hovering and autocompletion (lsp required)\n-- will help you understanding properties, fields, and what highlightings the color used for\n---@type Base46Table\nlocal M = {}\n-- UI\nM.base_30 = {\n  white = \"\",\n  black = \"\", -- usually your theme bg\n  darker_black = \"\", -- 6% darker than black\n  black2 = \"\", -- 6% lighter than black\n  one_bg = \"\", -- 10% lighter than black\n  one_bg2 = \"\", -- 6% lighter than one_bg\n  one_bg3 = \"\", -- 6% lighter than one_bg2\n  grey = \"\", -- 40% lighter than black (the % here depends so choose the perfect grey!)\n  grey_fg = \"\", -- 10% lighter than grey\n  grey_fg2 = \"\", -- 5% lighter than grey\n  light_grey = \"\",\n  red = \"\",\n  baby_pink = \"\",\n  pink = \"\",\n  line = \"\", -- 15% lighter than black\n  green = \"\",\n  vibrant_green = \"\",\n  nord_blue = \"\",\n  blue = \"\",\n  seablue = \"\",\n  yellow = \"\", -- 8% lighter than yellow\n  sun = \"\",\n  purple = \"\",\n  dark_purple = \"\",\n  teal = \"\",\n  orange = \"\",\n  cyan = \"\",\n  statusline_bg = \"\",\n  lightbg = \"\",\n  pmenu_bg = \"\",\n  folder_bg = \"\"\n}\n\n-- check https://github.com/chriskempson/base16/blob/master/styling.md for more info\nM.base_16 = {\n  base00 = \"\",\n  base01 = \"\",\n  base02 = \"\",\n  base03 = \"\",\n  base04 = \"\",\n  base05 = \"\",\n  base06 = \"\",\n  base07 = \"\",\n  base08 = \"\",\n  base09 = \"\",\n  base0A = \"\",\n  base0B = \"\",\n  base0C = \"\",\n  base0D = \"\",\n  base0E = \"\",\n  base0F = \"\"\n}\n\n-- OPTIONAL\n-- overriding or adding highlights for this specific theme only\n-- defaults/treesitter is the filename i.e integration there,\n\nM.polish_hl = {\n  defaults = {\n    Comment = {\n      bg = \"#ffffff\", -- or M.base_30.cyan\n      italic = true,\n    },\n  },\n\n  treesitter = {\n    [\"@variable\"] = { fg = \"#000000\" },\n  },\n}\n\n-- set the theme type whether is dark or light\nM.type = \"dark\" -- \"or light\"\n\n-- this will be later used for users to override your theme table from chadrc\nM = require(\"base46\").override_theme(M, \"abc\")\n\nreturn M\n```\n\n## Credits\n\n- [@LeonHeidelbach](https://github.com/LeonHeidelbach) for making [color functions!](https://github.com/LeonHeidelbach/lua_color_tools) which we use in base46.\n\n## Contribute\n\n- Send PR in the https://github.com/NvChad/base46/tree/v2.5/lua/base46/themes\n\n### Testing your theme\n\n- Just place your theme file in your `/lua/themes` folder\n- And select the theme with theme switcher or change in chadrc\n\n## Tips\n\n- Capture what highlight are used under the cursor by running the `:Inspect` or\n  `:InspectTree` commands\n","funding_links":[],"categories":["Lua"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNvChad%2Fbase46","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNvChad%2Fbase46","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNvChad%2Fbase46/lists"}