style
Allows for the inclusion of CSS directly in a template.
string
The CSS content to include.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
HTML tags help you work with HTML in your Liquid templates.
style{% style %}
css_content
{% endstyle %}
{% style %}
.highlighted {
background-color: yellow;
padding: 5px;
font-weight: bold;
}
{% endstyle %}
<span class="highlighted">This text is highlighted</span>
<style>
.highlighted {
background-color: yellow;
padding: 5px;
font-weight: bold;
}
</style>
<span class="highlighted">This text is highlighted</span>
