Hiya,
Where can I start in order to leverage Omega's phpsass for my own scss in a subtheme?

Preferably commandline compass watch in the subtheme folder would be great.

Had it setup 'manually' for Ov3 and Ov4, but trying to avoid having to add redundant compass libraries to the subtheme, seeing it's in Omega for v5 already.

Scenario: As my scss for site styling is updated, would like the autocompile to kick in on 'save' in order to simply refresh browser as appose to having to use the Drupal UI to click the 'Save & Update Styles' button.

To the same end, I would like then to add functions like minimize etc.
Thanks

Comments

pietpomp created an issue.

himerus’s picture

At what point did you create your subtheme? Did you use the clone feature and clone a starterkit?

The last couple releases did include a config.rb, that should be generated with the correct paths in your subtheme in order to simply run compass watch and have any styles (including grid) generated as you'd expect.

There's a setting to disable CSS compiling in the browser as well, so you could still use the form, which would keep the appropriate (and exportable) configurations synced with the database. What that does IS recompile the SCSS based on the variables in the form, and updates the appropriate configurations so the form settings and the SCSS match up.

Doing it this way, you can still edit your own SCSS, use compass watch to watch for changes in your custom stuff, and the grid layouts.

If you completely ignore the interface, it will still work, but the interface will be completely useless after the first edit that doesn't sync with config in the database.

No matter what, Omega is writing valid SCSS for the layouts, so using compass watch will work.

pietpomp’s picture

Thx and the option where the UI is used for SCSS build was exactly what I was trying to do.

So UI builds SCSS layout and track it in the database [unchecked CSS compiling].
I did use the UI to clone the theme and the config.rd is present in the subtheme.

The dilemma is when in drupal/themes/mytheme in terminal it's not recognizing compass and gives error bash: compass: command not found

hence, the question, if it should be working from subtheme folder through terminal.

thanks