![]() | This is a documentation subpage for Template:LDHex. It may contain usage information, categories and other content that is not part of the original template page. |
This template takes in a single hex color and (assuming mixing with white) returns a color with the appropriate blending and alpha transparency to achieve that color.
The primary use of this template is to ensure that colors appear appropriately in both light and dark mode.
Usage
editInside an HTML tag, use {{LDHex|hex color}}
as well as "color:inherit".