Page MenuHomePhorge

Render html color codes in remarkup
Open, NormalPublic

Description

Change the background color to help visualize color codes in remarkup text.

Proposed syntax: Just the plain hex color code, wrapped in curly brackets. That is, the most standard html/css color syntax, hash mark followed by 3 or 6 hex digits.

So, for example: {#0000ff} would render exactly like inline monospace text, resulting in #0000ff but with a background color that matches the literal color code specified.

Event Timeline

This would be useful for discussions about design, specifically I wished for this feature while reviewing D25491: Improve contrast of Links in Dark Mode

20after4 triaged this task as Normal priority.

Well, you know what would be next level for a dev? If (s)he clicks on it, the color is copied to the clipboard. We can't use this behavior, because behaviors loose their state in the remarkup cache...