Something went wrong. Try again.
A minimal colorscheme for neovim and more
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485---@param p nor.GeneratorPalette---@return stringreturn function(p) local colors = { accent = p.blue.fg, border = p.bg_alt, borderAccent = p.blue.fg, borderMuted = p.fg_hint, success = p.success, error = p.error, warning = p.warning, muted = p.fg_dim, dim = p.fg_hint, text = p.fg, thinkingText = p.fg_dim,
selectedBg = p.bg_alt, scrollbarTrack = p.bg_dim, scrollbarThumb = p.fg_alt, searchMatchBg = p.bg_alt, searchMatchText = p.fg, userMessageBg = p.bg_dim, userMessageText = p.fg, customMessageBg = p.bg_hint, customMessageText = p.fg, customMessageLabel = p.orange.fg, toolPendingBg = p.bg_dim, toolSuccessBg = p.green.bg, toolErrorBg = p.red.bg, toolTitle = p.fg, toolOutput = p.fg_alt,
mdHeading = p.red.mid, mdLink = p.fg_alt, mdLinkUrl = p.blue.fg, mdCode = p.blue.fg, mdCodeBlock = p.blue.fg, mdCodeBlockBorder = p.fg_hint, mdQuote = p.fg_dim, mdQuoteBorder = p.fg_hint, mdHr = p.fg_dim, mdListBullet = p.fg_alt,
toolDiffAdded = p.green.fg, toolDiffRemoved = p.red.fg, toolDiffContext = p.fg_dim,
syntaxComment = p.fg_dim, syntaxKeyword = p.red.mid, syntaxFunction = p.fg, syntaxVariable = p.fg_alt, syntaxString = p.red.fg, syntaxNumber = p.blue.fg, syntaxType = p.blue.fg, syntaxOperator = p.fg, syntaxPunctuation = p.fg_dim,
thinkingOff = p.fg_dim, thinkingMinimal = p.fg_alt, thinkingLow = p.blue.fg, thinkingMedium = p.cyan.fg, thinkingHigh = p.green.fg, thinkingXhigh = p.orange.fg, thinkingMax = p.red.fg,
bashMode = p.green.fg, }
local theme = { ["$schema"] = "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json", name = "nor-" .. p.variant, colors = colors, export = { pageBg = p.bg, cardBg = p.bg_hint, infoBg = p.blue.bg, }, }
local json = vim.json.encode(theme) local ok, result = pcall(vim.fn.system, { "jq", "--indent", "2", "--sort-keys" }, json) if ok and result and vim.v.shell_error == 0 then return result end return jsonend