local util = require("tokyonight.util")

local M = {}

--- @param colors ColorScheme
function M.generate(colors)
  return util.template(M.template, colors)
end

M.template = [=[
[[themes]]
name = "${_style_name}"
[themes.palette]
background = "${bg_dark}"
foreground = "${fg_dark}"
black = "${terminal_black}"
red = "${red}"
green = "${green}"
yellow = "${yellow}"
blue = "${blue}"
magenta = "${magenta}"
cyan = "${cyan}"
white = "${terminal.white}"
bright_black = "${bg}"
bright_red = "${red1}"
bright_green = "${green1}"
bright_yellow = "${orange}"
bright_blue = "${blue1}"
bright_magenta = "${magenta2}"
bright_cyan = "${blue5}"
bright_white = "${fg}"
]=]

return M
