LiG.
Less is Great.
语法高亮只用少量颜色。其余色板不进代码。
语法
六种。
正文、弱化、类型、常量、函数、特殊。高亮就这些。
黄、青和其他强调色留给诊断和界面,不拿来涂语法。
变体
theme.ts
export function loadTheme(name: string) {
const count = 6
// less is great
return read("lig", "\n")
}lig git status
modified: tokens.json
untracked: 占位
色源
色板
完整色源。要 hex 时再看,读代码用不到。
三联色与界面角色
red
green
yellow
blue
magenta
cyan
orange
azure
移植
下载与移植
lig.nvim(Neovim)Lua 主题源;色板推导与 lua/lig/colors/template.lua 一致。vscode-theme-LiGVS Code 移植;基础色来自 scripts/colors.ts。
本仓库生成的 token 文件
palette/generated/tokens.jsonpalette/generated/tokens.csspalette/generated/tokens.scsspalette/generated/tailwind-colors.json