postcss-liquid-variables

1.0.1 • Public • Published

PostCSS Liquid Variables

PostCSS plugin to allow use of Liquid theme variables in CSS files.

Forked from PostCSS Shopify Settings Variables and adjusted slightly for use with non-Shopify Liquid templates.

.foo {
  background-color: $(theme_preferences.background_colour);
}

Will be transformed to:

.foo {
  background-color: {{ theme_preferences.background_colour }};
}

Usage

postcss([ require('postcss-liquid-variables') ])

See PostCSS docs for examples for your environment.

Package Sidebar

Install

npm i postcss-liquid-variables

Weekly Downloads

279

Version

1.0.1

License

MIT

Unpacked Size

3.62 kB

Total Files

6

Last publish

Collaborators

  • rosswilson23
  • chris-homeflow
  • bob_homeflow
  • homeflowdev