color-scheme-form.html.twig
Same filename in this branch
Same filename in other branches
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_color_scheme_form()
1 theme call to color-scheme-form.html.twig
- color_form_system_theme_settings_alter in core/
modules/ color/ color.module - Implements hook_form_FORM_ID_alter().
File
-
core/
modules/ color/ templates/ color-scheme-form.html.twig
View source
- {#
- /**
- * @file
- * 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 template_preprocess_color_scheme_form()
- *
- * @ingroup themeable
- */
- #}
- <div class="color-form clearfix">
- {{ form.scheme }}
- <div class="clearfix color-palette js-color-palette">
- {{ form.palette }}
- </div>
- {{ form|without('scheme', 'palette') }}
- <h2>{{ 'Preview'|t }}</h2>
- {{ html_preview }}
- </div>
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.