color-scheme-form.html.twig 755 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
{#
/**
 * @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 }}
20
  <div id="palette" class="clearfix">
21 22
    {{ form.palette }}
  </div>
23
  {{ form|without('scheme', 'palette') }}
24 25 26
  <h2>{{ 'Preview'|t }}</h2>
  {{ html_preview }}
</div>