Skip to content

ANSI index swap for base05 and base06 in base24 breaks base16 compatibility #43

@tummetott

Description

@tummetott

Hello,

is there a particular reason why ANSI indexes for colors base05 and base06 are swapped in the base24 specification compared to the base16 specification?

Base24
Image

Base16
Image

From my perspective this change is confusing and seems to break compatibility between the two specs. For example when styling a terminal via ANSI indices I would normally assume that the foreground color (base05) maps to index 7. With a base24 scheme this assumption no longer holds.

As a result base16 and base24 schemes cannot be used interchangeably with the same ANSI based styling logic which feels unintuitive. Could you clarify the reasoning behind this design choice?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions