color.code.line-number
D-041 owner correction: rose is the default UI and reading foreground; near-white is reserved for document headings, highlights and contrast-critical fills.
Source revision 9afef8564142e41458748895d16b4df161a67d66
Find related usageSpecification anchorMeasured contrast report (default profile)Report an issue with this token
color.code.line-number--color-code-line-numberdefault · approved
- Resolved value
#bd787d- Status
- approved
- Consumption
- use — Use within the role's documented scope and restrictions.
- Decisions
- None pending.
- Source
- tokens/semantic.tokens.json:1002
/color/code/line-number - Alias chain
color.text.subtlecolor.primitive.rose.600- Used by aliases
- No declared aliases depend on this role.
Provenance and restrictions
{
"status": "approved",
"approval": {
"decision": "D-041"
}
}Declared component and port usage
| Consumer / kind | Part / variant | State / surface | Source declaration |
|---|---|---|---|
| code-editor · contrast | — | — · color.code.gutter-bg | spec/components/code-editor.md:80 /contrast/3 |
| Shared rule · contrast | — | — · color.code.bg | spec/contrast.json:49 /pairs/45 |
| code-editor · part | line-number.text | — | spec/components/code-editor.md:40 /tokens/line-number.text |
| diagnostics · part | code.line-number | — | spec/components/diagnostics.md:36 /tokens/code.line-number |
| diff-view · prose | — | — | spec/components/diff-view.md:131 body |
| code-editor · state | fg | read-only · color.surface.sunken | spec/components/code-editor.md:75 /stateTokens/read-only/fg |
Declared unmapped ports
- chatgpt: Code colours come from the chosen code theme, not from separate settings. · ports/chatgpt/mapping.json:94
/unmapped/color.code.line-number - claude-code: Claude Code draws code in fixed ANSI slots on the terminal background; its theme has no key for this role. · ports/claude-code/mapping.json:202
/unmapped/color.code.line-number - codex: The file carries it as globals.gutterForeground; Codex paints no line numbers from a tmTheme and keeps the terminal background. · ports/codex/mapping.json:121
/unmapped/color.code.line-number - ghostty: Interface colour role; a terminal theme file carries terminal colours only. · ports/ghostty/mapping.json:129
/unmapped/color.code.line-number - obsidian: Native CM6 line numbers inherit text variables; their source selector is not replaced with an independent line-number role. · ports/obsidian/mapping.json:570
/unmapped/color.code.line-number - 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:347
/unmapped/color.code.line-number - telegram: color.code.line-number has no separate native hook in this projection; related controls share the declared canonical role instead. · ports/telegram/mapping.json:1442
/unmapped/color.code.line-number - warp: Interface colour role; a terminal theme file carries terminal colours only. · ports/warp/mapping.json:123
/unmapped/color.code.line-number - windows: Outside Windows visual adapter scope; preserve host semantics. · ports/windows/mapping.json:2397
/unmapped/color.code.line-number
Relevant contrast declarations
- line numbers on code background: color.code.line-number on color.code.bg · spec/contrast.json:49
/pairs/45 - line numbers in the gutter: color.code.line-number on color.code.gutter-bg · spec/components/code-editor.md:80
/contrast/3 - code-editor read-only fg: color.code.line-number on color.surface.sunken · spec/components/code-editor.md:75
/stateTokens/read-only
heritage-ansi · heritage
- Resolved value
#7d1310- Status
- heritage · deprecated: fails 4.5:1 (1.86); historical fidelity only
- Consumption
- historical-only — Historical fidelity only; preserve all documented limitations and deprecations.
- Decisions
- None pending.
- Source
- tokens/profiles/heritage-ansi.tokens.json:38
/color/code/line-number - Alias chain
color.primitive.red.200- Used by aliases
- No declared aliases depend on this role.
Provenance and restrictions
{
"status": "heritage"
}Declared component and port usage
| Consumer / kind | Part / variant | State / surface | Source declaration |
|---|---|---|---|
| code-editor · contrast | — | — · color.code.gutter-bg | spec/components/code-editor.md:80 /contrast/3 |
| Shared rule · contrast | — | — · color.code.bg | spec/contrast.json:49 /pairs/45 |
| code-editor · part | line-number.text | — | spec/components/code-editor.md:40 /tokens/line-number.text |
| diagnostics · part | code.line-number | — | spec/components/diagnostics.md:36 /tokens/code.line-number |
| diff-view · prose | — | — | spec/components/diff-view.md:131 body |
| code-editor · state | fg | read-only · color.surface.sunken | spec/components/code-editor.md:75 /stateTokens/read-only/fg |
Relevant contrast declarations
- line numbers on code background: color.code.line-number on color.code.bg · spec/contrast.json:49
/pairs/45 - line numbers in the gutter: color.code.line-number on color.code.gutter-bg · spec/components/code-editor.md:80
/contrast/3 - code-editor read-only fg: color.code.line-number on color.surface.sunken · spec/components/code-editor.md:75
/stateTokens/read-only
extended · proposed
- Resolved value
#bd787d- Status
- approved
- Consumption
- blocked — Proposed profile: preview only, not downstream delivery.
- Decisions
- None pending.
- Source
- tokens/semantic.tokens.json:1002
/color/code/line-number - Alias chain
color.text.subtlecolor.primitive.rose.600- Used by aliases
- No declared aliases depend on this role.
Provenance and restrictions
{
"status": "approved",
"approval": {
"decision": "D-041"
}
}Declared component and port usage
| Consumer / kind | Part / variant | State / surface | Source declaration |
|---|---|---|---|
| code-editor · contrast | — | — · color.code.gutter-bg | spec/components/code-editor.md:80 /contrast/3 |
| Shared rule · contrast | — | — · color.code.bg | spec/contrast.json:49 /pairs/45 |
| code-editor · part | line-number.text | — | spec/components/code-editor.md:40 /tokens/line-number.text |
| diagnostics · part | code.line-number | — | spec/components/diagnostics.md:36 /tokens/code.line-number |
| diff-view · prose | — | — | spec/components/diff-view.md:131 body |
| code-editor · state | fg | read-only · color.surface.sunken | spec/components/code-editor.md:75 /stateTokens/read-only/fg |
Relevant contrast declarations
- line numbers on code background: color.code.line-number on color.code.bg · spec/contrast.json:49
/pairs/45 - line numbers in the gutter: color.code.line-number on color.code.gutter-bg · spec/components/code-editor.md:80
/contrast/3 - code-editor read-only fg: color.code.line-number on color.surface.sunken · spec/components/code-editor.md:75
/stateTokens/read-only