Colors
This stylesheet provides a common interface to specify custom colors for transformations to presentation-oreinted formats. This allows similar output for different types of input documents.
This stylesheet also provides a number of templates for manipulating colors and extracting information about colors.
Defines Parameters
- color.bg — The normal background color.
- color.bg.blue — A blue background color.
- color.bg.dark — A dark gray background color.
- color.bg.gray — A gray background color.
- color.bg.green — A green background color.
- color.bg.orange — An orange background color.
- color.bg.purple — A purple background color.
- color.bg.red — A red background color.
- color.bg.yellow — A yellow background color.
- color.blue — A blue accent color.
- color.fg — The primary text color.
- color.fg.blue — A blue text color.
- color.fg.dark — A dark gray text color.
- color.fg.gray — A gray text color.
- color.fg.green — A green text color.
- color.fg.orange — An orange text color.
- color.fg.purple — A purple text color.
- color.fg.red — A red text color.
- color.fg.yellow — A yellow text color.
- color.gray — A gray accent color.
- color.green — A green accent color.
- color.orange — An orange accent color.
- color.purple — A purple accent color.
- color.red — A red accent color.
- color.yellow — A yellow accent color.
Defines Templates
- color.a — Extract the alpha value of a color.
- color.b — Extract the blue component of a color.
- color.blend — Blend two colors together at a specified mix level.
- color.contrast — Get the contrast between two colors.
- color.g — Extract the green component of a color.
- color.hex2dec — Convert a hexidecimal number to decimal.
- color.r — Extract the red component of a color.
- color.rl — Get the relative luminance of a color.