color-scheme-form.html.twig

Default theme implementation for a theme's color form.

Available variables:

  • form: Form elements for the color scheme form, including:

    • scheme: A color scheme form element. For example: a select element with color theme presets, or a color picker widget.
    • palette: Color fields that can be changed by entering in a new hex value.
  • html_preview: A HTML preview of the theme's current color scheme.

See also

template_preprocess()

template_preprocess_color_scheme_form()

1 theme call to color-scheme-form.html.twig

File

drupal/core/modules/color/templates/color-scheme-form.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a theme's color form.
  5. *
  6. * Available variables:
  7. * - form: Form elements for the color scheme form, including:
  8. * - scheme: A color scheme form element. For example: a select element with
  9. * color theme presets, or a color picker widget.
  10. * - palette: Color fields that can be changed by entering in a new hex value.
  11. * - html_preview: A HTML preview of the theme's current color scheme.
  12. *
  13. * @see template_preprocess()
  14. * @see template_preprocess_color_scheme_form()
  15. *
  16. * @ingroup themeable
  17. */
  18. #}
  19. <div class="color-form clearfix">
  20. {{ form.scheme }}
  21. <div id="palette" class="clearfix">
  22. {{ form.palette }}
  23. </div>
  24. {{ form }}
  25. <h2>{{ 'Preview'|t }}</h2>
  26. {{ html_preview }}
  27. </div>

Related topics