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






Need help implementing a tutorial in your site or want to hire me for custom work?


Find the article helpful and wish to donate?



For adding code blocks wrap the code in three backticks. Markdown should work.
Provide a URL of your site/webpage if something is not working.

5 comments on “Oxygen Sass plugin”

  1. just moved a website from local to a server and I get this error from your plugin:

    “Sass Compiling Error


    “File Permission Error, permission denied. Please make the cache directory writable.”

    Do you have any idea about this?

    On my local I don’t have this error.

  2. Hi, is there any reason why I’m getting double slashes in my links from this plug?
    The paths in WP-SASS are as you say, /css/and /scss/
    The extra slash is confusing WP Rocket

    Oh, also, I had some trouble with css load order which I fixed by changing:
    Now I can load the my sass generated css last, which is ideal for my overrides.
    Thanks for the excellent work—brilliant stuff.
    One last thing, adding the url:
    below was rejected

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: