You are here

gutenberg-palette.html.twig in Gutenberg 8

{% for color in colors %}
  .has-{{ color.name|clean_class }}-color {
    color: {{ color.color }};
  }
  .has-{{ color.name|clean_class }}-background-color {
    background-color: {{ color.color }};
  }
{% endfor %}

File

templates/gutenberg-palette.html.twig
View source
  1. {% for color in colors %}
  2. .has-{{ color.name|clean_class }}-color {
  3. color: {{ color.color }};
  4. }
  5. .has-{{ color.name|clean_class }}-background-color {
  6. background-color: {{ color.color }};
  7. }
  8. {% endfor %}