A Neovim theme based on the OpenCode color palette with light and dark variants.
- Light and dark variants
- Extensive syntax highlighting
- Support for popular plugins (Telescope, NvimTree, WhichKey, nvim-cmp, GitSigns)
- Configurable styles and transparency
- Tree-sitter support
- Terminal colors
Using lazy.nvim:
{
"garymjr/opencode.nvim",
config = function()
require("opencode").setup()
end,
}-- Basic setup require("opencode").setup() -- Load the colorscheme vim.cmd("colorscheme opencode")
require("opencode").setup({ style = "dark", -- "dark" or "light" transparent = false, -- Enable transparent background terminal_colors = true, -- Apply colors to terminal styles = { comments = { italic = true }, keywords = { bold = true }, functions = {}, variables = {}, types = {}, }, integrations = { telescope = true, nvimtree = true, which_key = true, cmp = true, gitsigns = true, treesitter = true, }, highlight_overrides = { -- Custom highlight overrides Normal = { fg = "#ffffff" }, }, })
style: Theme style ("dark"or"light")transparent: Enable transparent backgroundterminal_colors: Apply colors to the integrated terminalstyles: Style configurations for different syntax elementsintegrations: Enable/disable plugin integrationshighlight_overrides: Custom highlight group overrides
You can switch between light and dark themes:
-- Switch to dark theme require("opencode").config.style = "dark" require("opencode").load() -- Switch to light theme require("opencode").config.style = "light" require("opencode").load()
The theme is based on the OpenCode color palette with carefully selected colors for optimal readability and visual comfort.
- Background:
#0a0a0a - Primary:
#fab283 - Secondary:
#5c9cf5 - Accent:
#9d7cd8 - Text:
#eeeeee
- Background:
#ffffff - Primary:
#3b7dd8 - Secondary:
#7b5bb6 - Accent:
#d68c27 - Text:
#1a1a1a
- Telescope.nvim
- NvimTree
- WhichKey.nvim
- nvim-cmp
- GitSigns.nvim
- Tree-sitter
MIT License