style
Generates an HTML <style> tag with an attribute of data-shopify.
If you reference color settings inside style tags, then
the associated CSS rules will update as the setting is changed in the theme editor, without a page refresh. See more information and limitations of live preview.
If you reference color settings inside style tags, then
the associated CSS rules will update as the setting is changed in the theme editor, without a page refresh. See more information and limitations of live preview.
Note: If you reference <a href="/docs/storefronts/themes/architecture/settings/input-settings#color">color settings</a> inside <code>style</code> tags, then the associated CSS rules will update as the setting is changed in the theme editor, without a page refresh. See <a href="/docs/storefronts/themes/tools/online-editor#color-settings">more information and limitations</a> of live preview.
Syntax
The desired CSS rules for the <style> tag.
Code
{% style %}
.h1 {
color: {{ settings.colors_accent_1 }};
}
{% endstyle %}Data
{
"settings": {
"colors_accent_1": "#121212"
}
}Output
Output
<style data-shopify>
.h1 {
color: #121212;
}
</style>