color.code.selection-bg
Editor selection background (muted text stays 4.71:1).
Source revision 9afef8564142e41458748895d16b4df161a67d66
Find related usageSpecification anchorMeasured contrast report (default profile)Report an issue with this token
color.code.selection-bg--color-code-selection-bgdefault · approved
- Resolved value
#420f0c- Status
- observed
- Consumption
- use — Use within the role's documented scope and restrictions.
- Decisions
- None pending.
- Source
- tokens/semantic.tokens.json:1050
/color/code/selection-bg - Alias chain
color.primitive.red.50- Used by aliases
- No declared aliases depend on this role.
Provenance and restrictions
nullDeclared component and port usage
| Consumer / kind | Part / variant | State / surface | Source declaration |
|---|---|---|---|
| code-editor · contrast | — | selected · color.code.selection-bg | spec/components/code-editor.md:92 /contrast/15 |
| code-editor · contrast | — | selected · color.code.selection-bg | spec/components/code-editor.md:93 /contrast/16 |
| code-editor · contrast | — | selected · color.code.selection-bg | spec/components/code-editor.md:94 /contrast/17 |
| code-editor · contrast | — | selected · color.code.selection-bg | spec/components/code-editor.md:95 /contrast/18 |
| code-editor · contrast | — | selected · color.code.selection-bg | spec/components/code-editor.md:96 /contrast/19 |
| diagnostics · contrast | — | selected · color.code.selection-bg | spec/components/diagnostics.md:78 /contrast/5 |
| Shared rule · contrast | — | — · color.code.selection-bg | spec/contrast.json:55 /pairs/51 |
| code-editor · part | selection.bg | — | spec/components/code-editor.md:44 /tokens/selection.bg |
| diagnostics · part | code.selection-bg | — | spec/components/diagnostics.md:38 /tokens/code.selection-bg |
obsidian · port.theme-dark .markdown-source-view.mod-cm6 .cm-scroller | --text-selection | — | — | ports/obsidian/mapping.json:335 /mappings/color.code.selection-bg/0 |
claude-code · portselectionBg | — | — | ports/claude-code/mapping.json:15 /mappings/color.code.selection-bg/0 |
windows · portterminal.selection | — | — | ports/windows/mapping.json:295 /mappings/color.code.selection-bg/0 |
| code-editor · state | bg | selected · color.code.selection-bg | spec/components/code-editor.md:72 /stateTokens/selected/bg |
Declared unmapped ports
- chatgpt: Code colours come from the chosen code theme, not from separate settings. · ports/chatgpt/mapping.json:99
/unmapped/color.code.selection-bg - codex: The file carries it as globals.selection; Codex paints no selection from a tmTheme and keeps the terminal background. · ports/codex/mapping.json:126
/unmapped/color.code.selection-bg - ghostty: Interface colour role; a terminal theme file carries terminal colours only. · ports/ghostty/mapping.json:134
/unmapped/color.code.selection-bg - orca: No separately mapped public Orca theme key for this role; the host derives or retains this state. The app plugin maps supported chrome and editor keys independently of terminal colours. · ports/orca/mapping.json:352
/unmapped/color.code.selection-bg - telegram: color.code.selection-bg has no separate native hook in this projection; related controls share the declared canonical role instead. · ports/telegram/mapping.json:1446
/unmapped/color.code.selection-bg - warp: Interface colour role; a terminal theme file carries terminal colours only. · ports/warp/mapping.json:128
/unmapped/color.code.selection-bg
Relevant contrast declarations
- comment syntax inside the selection: color.code.syntax.comment on color.code.selection-bg · spec/components/code-editor.md:92
/contrast/15 - keyword and tag text inside the selection (D-029): color.code.syntax.keyword on color.code.selection-bg · spec/components/code-editor.md:95
/contrast/18 - property, heading and invalid text inside the selection (D-029): color.code.syntax.property on color.code.selection-bg · spec/components/code-editor.md:96
/contrast/19 - muted string text inside the selection: color.code.syntax.string on color.code.selection-bg · spec/components/code-editor.md:94
/contrast/17 - type syntax inside the selection: color.code.syntax.type on color.code.selection-bg · spec/components/code-editor.md:93
/contrast/16 - code-editor selected fg: color.code.syntax.variable on color.code.selection-bg · spec/components/code-editor.md:72
/stateTokens/selected - warning underline inside the selected range: color.diagnostic.warning.underline on color.code.selection-bg · spec/components/diagnostics.md:78
/contrast/5 - muted text on editor selection: color.text.muted on color.code.selection-bg · spec/contrast.json:55
/pairs/51
heritage-ansi · heritage
- Resolved value
#420f0c- Status
- observed
- Consumption
- historical-only — Historical fidelity only; preserve all documented limitations and deprecations.
- Decisions
- None pending.
- Source
- tokens/semantic.tokens.json:1050
/color/code/selection-bg - Alias chain
color.primitive.red.50- Used by aliases
- No declared aliases depend on this role.
Provenance and restrictions
nullDeclared component and port usage
Relevant contrast declarations
- comment syntax inside the selection: color.code.syntax.comment on color.code.selection-bg · spec/components/code-editor.md:92
/contrast/15 - keyword and tag text inside the selection (D-029): color.code.syntax.keyword on color.code.selection-bg · spec/components/code-editor.md:95
/contrast/18 - property, heading and invalid text inside the selection (D-029): color.code.syntax.property on color.code.selection-bg · spec/components/code-editor.md:96
/contrast/19 - muted string text inside the selection: color.code.syntax.string on color.code.selection-bg · spec/components/code-editor.md:94
/contrast/17 - type syntax inside the selection: color.code.syntax.type on color.code.selection-bg · spec/components/code-editor.md:93
/contrast/16 - code-editor selected fg: color.code.syntax.variable on color.code.selection-bg · spec/components/code-editor.md:72
/stateTokens/selected - warning underline inside the selected range: color.diagnostic.warning.underline on color.code.selection-bg · spec/components/diagnostics.md:78
/contrast/5 - muted text on editor selection: color.text.muted on color.code.selection-bg · spec/contrast.json:55
/pairs/51
extended · proposed
- Resolved value
#420f0c- Status
- observed
- Consumption
- blocked — Proposed profile: preview only, not downstream delivery.
- Decisions
- None pending.
- Source
- tokens/semantic.tokens.json:1050
/color/code/selection-bg - Alias chain
color.primitive.red.50- Used by aliases
- No declared aliases depend on this role.
Provenance and restrictions
nullDeclared component and port usage
Relevant contrast declarations
- comment syntax inside the selection: color.code.syntax.comment on color.code.selection-bg · spec/components/code-editor.md:92
/contrast/15 - keyword and tag text inside the selection (D-029): color.code.syntax.keyword on color.code.selection-bg · spec/components/code-editor.md:95
/contrast/18 - property, heading and invalid text inside the selection (D-029): color.code.syntax.property on color.code.selection-bg · spec/components/code-editor.md:96
/contrast/19 - muted string text inside the selection: color.code.syntax.string on color.code.selection-bg · spec/components/code-editor.md:94
/contrast/17 - type syntax inside the selection: color.code.syntax.type on color.code.selection-bg · spec/components/code-editor.md:93
/contrast/16 - code-editor selected fg: color.code.syntax.variable on color.code.selection-bg · spec/components/code-editor.md:72
/stateTokens/selected - warning underline inside the selected range: color.diagnostic.warning.underline on color.code.selection-bg · spec/components/diagnostics.md:78
/contrast/5 - muted text on editor selection: color.text.muted on color.code.selection-bg · spec/contrast.json:55
/pairs/51