{"version":"2.1.246","anchor":"diff-colours-follow-your-theme","canonical_anchor":"diff-colours-follow-your-theme","heading":"Diff colours follow your theme","tier":"use","area":"Themes","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.246\/e\/diff-colours-follow-your-theme","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.246","markdown":"### Diff colours follow your theme\n\nDiff colours now come from your theme, using new added and removed theme keys.\n\n**What**\n\nAdded and removed lines in diffs now take their colours from the active theme rather than fixed values, via the theme keys `diffAdded`, `diffRemoved`, `diffAddedDimmed`, `diffRemovedDimmed`, `diffAddedWord` and `diffRemovedWord`.\n\n**Details**\n\n- Theme colour strings in `rgb()`, `#rrggbb`, `#rgb`, `ansi256()` and `ansi:` form are all parsed.\n- Those keys are part of the diff render cache key, so switching theme redraws diffs rather than reusing stale colours.\n\n**Evidence**\n\n`diffAddedDimmed`\n\n- Area: Themes\n- Names: `diffAdded`, `diffRemoved`, `diffAddedDimmed`, `diffRemovedDimmed`, `diffAddedWord`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 1\/5"}