Template:Background color/doc

Usage

[edit]
{{Background color|<color>|<text>}}

Web colors provides a list of colors which can be used. Simple colors, like black, blue, red, green, etc. can just be spelled out. Alternatively, colors can be specified using either RGB or hex notation.

Examples

[edit]
Using the Codex Design Style Guide for Wikimedia background colors:
  • {{Background color|var(--background-color-success-subtle, #eaecf0)|Success}}Success
  • {{Background color|var(--background-color-error-subtle--active, #ffc8bd)|Error}}Error
  • {{Background color|var(--background-color-warning-subtle, #fdf2d5)|Warning}}Warning
  • {{Background color|var(--background-color-content-added, #a3d3ff)|Content added}}Content added
  • {{Background color|var(--background-color-content-removed, #ffe49c)|Content removed}}Content removed

Tracking category

[edit]

Supporting template

[edit]

See also

[edit]