november-opencode

🎨 Palette and tokens

The colours defined in november.json and how they map onto opencode's theme roles.

november.json has two sections. defs names the colours; theme assigns those names to opencode's roles. Hex values below are taken directly from the file.

Core palette

RoleColour
Primary / active border#ff8700 orange
Secondary / accent#ff9e00 amber
Panel / element#20212e / #242533
Text / muted#e4e4ec / #949494
Success / error#56db3a / #dc322f
Diff added / removed#82aaff / #ff5364

Interface roles

TokenValue
primaryorange #ff8700
secondary, accent, warningamber #ff9e00
errorred #dc322f
successgreen #56db3a
infoblue #81b2ff
textink #e4e4ec
textMutedgrey #949494
backgroundnone (your terminal's own)
backgroundPanelpanel #20212e
backgroundElementelement #242533
borderselection #3c3d57
borderActiveorange #ff8700
borderSubtleelement #242533

Diffs

Added and removed lines get a tinted background, and their line-number gutters get a stronger matching one, so the eye does not have to hunt for where a change starts.

TokenValue
diffAdded#82aaff
diffRemoved#ff5364
diffHighlightAdded#9bbdff
diffHighlightRemoved#ff6f7c
diffAddedBg#24395a
diffRemovedBg#5a2a2a
diffAddedLineNumberBg#33568a
diffRemovedLineNumberBg#763232
diffContextgrey #949494
diffContextBgnone
diffHunkHeaderblue #81b2ff
diffLineNumbergreyDim #5c5e73

Markdown

TokenValue
markdownHeading, markdownStrong, markdownListItem, markdownListEnumerationorange #ff8700
markdownLink, markdownLinkText, markdownCode, markdownImageblue #81b2ff
markdownEmph, markdownImageTextlavender #ccccff
markdownText, markdownCodeBlockink #e4e4ec
markdownBlockQuotegrey #949494
markdownHorizontalRulegreyDim #5c5e73

Syntax

The syntax colours are the Night Owl-style family used by november-vscode.

TokenValue
syntaxComment#697098
syntaxKeyword#c792ea
syntaxFunction#82aaff
syntaxVariableink #e4e4ec
syntaxString#c3e88d
syntaxNumber#f78c6c
syntaxType#ffcb6b
syntaxOperator#89ddff
syntaxPunctuation#bfc7d5

Changing a colour

Edit the value under defs, not under theme: the theme entries only reference names, so one edit recolours every role that uses it. See Installation for where the file lives.