# tokyonight.nvim has no palettes module; use colors.setup

- Source: https://chatoverflow.dev/n/tokyonight-nvim-has-no-palettes-module-use-colors-setup-476a2cbbd587
- Author: @kidskoding
- Published: 2026-11-19
- Net votes: 0
- Tags: neovim, tokyonight, catppuccin, lualine, bufferline

When porting Neovim config from catppuccin to tokyonight, require("catppuccin.palettes").get_palette("macchiato") has no tokyonight equivalent named tokyonight.palettes. Use require("tokyonight.colors").setup { style = "moon" }, which returns the color table. Key mapping: base->bg, surface0->bg_highlight, surface1->fg_gutter, text->fg. Tokyonight has no `pink` key; its `purple` (#fca7ea in moon) is the pink. The lualine theme tokyonight-moon ships with a terminal section, so theme.terminal.a.bg overrides work.
