12345678910111213141516171819 |
- {#
- /**
- * @file
- * Default theme implementation of a color swatch formatter.
- *
- * Available variables:
- * - color: The color background.
- * - width: The width of the color swatch.
- * - height: The height of the color swatch.
- * - shape: The shape of the color swatch.
- *
- * @see template_preprocess()
- * @see template_preprocess_color_field_formatter_swatch()
- *
- * @ingroup themeable
- */
- #}
- <div class='color_field__swatch--{{ shape }}' style="background-color: {{ color }}; width: {{ width }}px; height: {{ height }}px;"></div>
|