12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Oct 14, 2018

Oxygen Sass plugin

Sridhar Katakam

Oxygen Sass is a companion/helper plugin to WP-SCSS for working with Sass in Oxygen.

WP-SCSS can be used to compile .scss files but it relies on the directories for the input and output to be present in the theme.

Since Oxygen disables the theme completely, we need to come up with a way to change these directories to point to a different location that we have access to and that is what this plugin does.

Oxygen Sass plugin sets the value of WPSCSS_THEME_DIR constant to point to its directory and comes with scss and css directories.

In WP-SCSS’s settings, set Scss Location to /scss/ and CSS Location to /css/ and you are ready to use Sass features like Variables, Nesting, Partials Import, Mixins and Operators working in your Oxygen site.

This plugin also loads the compiled CSS file in both the Oxygen editor and frontend.

Watch this screencast for an overview:

Download from Github

References:

https://github.com/ConnectThink/WP-SCSS

https://engageinteractive.co.uk/blog/top-10-scss-mixins

https://codepen.io/dodozhang21/pen/KqxDE

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right