Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 646 Bytes

TwigUtilities.adoc

File metadata and controls

15 lines (11 loc) · 646 Bytes

Twig Utilities

The module provides a lot of utilities to facilitate the integration of content:

<!-- This import allows to load a font from a slug -->
{% include '@RichIdDesignCustomization/font-import.html.twig' with {configurationSlug: 'my-font-slug'} %}

<!-- This import allows to apply to an HTML element a font from its slug -->
{% include '@RichIdDesignCustomization/apply-font-to.html.twig' with {configurationSlug: 'font-primary', applyTo: 'body'} %}

<!-- This import allows to define the css variables of type color and radius -->
{% include '@RichIdDesignCustomization/colors-customization.html.twig' %}