Liquid in Styles
Shopify has deprected the use of SaSS in themes. But there are still ways of using Liquid to change the way your styles behave. Here is one simple approach to achieve this:
#
Create a css-variables snippetCreate a snippet in src/theme/snippets/css-variables/css-variables.liquid
where you are going to define all the CSS variables that will be controled by liquid statements (generally settings).
css-variables.liquid
Then, render this snippet in the head tag of your layout(s) before the script-tags
render.
src/theme/layout/theme/theme.liquid
#
Initialize your Styles variablesNow, in your style files you can make use of this CSS variables as you need. For example, you can create SASS variables with the CSS variables as their value:
src/theme/layout/theme/theme.layout.scss