First stab at converting to farout palette

Also renamed all/most instances of tokyonight to farout
This commit is contained in:
2023-12-01 15:30:50 -05:00
parent f247ee700b
commit 1752319cc5
130 changed files with 18963 additions and 301 deletions

View File

@@ -0,0 +1,88 @@
local util = require("farout.util")
local M = {}
--- @param colors ColorScheme
function M.generate(colors)
return util.template(M.template, colors)
end
M.template = [[
module.exports = {
plain: {
color: "${fg}",
backgroundColor: "${bg}",
},
styles: [
{
types: ["prolog", "builtin"],
style: {
color: "${red}",
},
},
{
types: ["function"],
style: {
color: "${blue}",
},
},
{
types: ["symbol"],
style: {
color: "${blue1}",
},
},
{
types: ["punctuation"],
style: {
color: "${magenta}",
},
},
{
types: ["string", "char", "tag", "selector"],
style: {
color: "${green}",
},
},
{
types: ["keyword"],
style: {
color: "${purple}",
},
},
{
types: ["operator"],
style: {
color: "${blue5}",
},
},
{
types: ["constant", "boolean"],
style: {
color: "${orange}",
},
},
{
types: ["variable"],
style: {
color: "${fg}",
},
},
{
types: ["comment"],
style: {
color: "${comment}",
fontStyle: "italic",
},
},
{
types: ["attr-name"],
style: {
color: "rgb(241, 250, 140)",
},
},
],
};
]]
return M