Module:ConvCSS/doc

From Multilingual Bookbinding Dictionary
Jump to navigation Jump to search

This is the documentation page for Module:ConvCSS

This module converts a CSS color name to its hexadecimal color code. The 148 CSS names are case-insensitive.

All the seven occurrencies of "grey" are doubled with the other spelling "gray".

It is used e.g. by the module Color2dec; because Color2dec first checks color names for tinctures, and afterwards for CSS names,
the occurrence of "Azure" for complete different colors in both sets needs precaution: to avoid that "Azure" is found in tinctures,
when the CSS color is required, the name "Azure_CSS" can be used to ensure that the lighter CSS color will be returned.
A similar diffentiation is done for "Orange" which became now also a tincture ("n" for "naranja").

  "azure" is the tincture "#0F47AF"
  "azure_CSS" is almost white "#F0FFFF"
  "orange_t" is the tincture "#FC7A11"
  "orange" is the CSS color "#FFA500"
  "invisible" or "transparent" is colorless