{ "about": "Each colour that is text, and the surfaces it is text on, as src/lib/contrast.ts and knotless's theme check (crates/knotless/src/theme.rs) both read them. A new colour that is text goes here.", "pairs": [ { "texts": ["fg", "mute", "faint"], "on": ["bg", "panel", "soft"] }, { "texts": ["accent", "green", "red", "purple", "yellow"], "on": ["bg"] }, { "texts": ["accent"], "on": ["accent-soft"] }, { "why": "A file's age, while it is fresh (FileList).", "texts": ["heat"], "on": ["bg", "panel"] }, { "why": "The pills a pull, an issue or a check is in, and the danger button.", "texts": ["on-solid"], "on": ["green", "purple", "red", "gray"] }, { "texts": ["on-primary"], "on": ["primary"] }, { "texts": ["notice-fg"], "on": ["notice"] }, { "why": "Code, and a diff's lines.", "texts": ["fg", "comment", "string", "keyword", "number", "function", "type", "tag", "attr"], "on": ["bg", "ins", "del", "hunk"] }, { "why": "Fenced code in Markdown, on its block's surface.", "texts": ["fg", "comment", "string", "keyword", "number", "function", "type", "tag", "attr"], "on": ["soft"] }, { "why": "A changed word's mark: its text is the body's, over the syntax's colours (src/lib/highlight.ts).", "texts": ["fg"], "on": ["ins-x", "del-x"] } ] }