redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Using redux variables for sass

Open zerocool1 opened this issue 12 years ago • 7 comments

Here's an example of something I want to do:

In redux theme options panel, allow user to set Primary Color Using Sass, set a mixin using the Primary Color variable (for gradients)

I'm assuming you just can't put the PC variable into the sass file .. so is this done in a style.php type file or done right in the redux config file? I feel like it must be done in the config file ... I've read up on using compiler, but I'm obviously missing something

zerocool1 avatar Mar 10 '14 14:03 zerocool1

All the compiler does is say, hey. Values have changed. You then run your own code to compile the SASS.

Might I suggest this for a base? https://github.com/sanchothefat/wp-sass

It may help. :P

dovy avatar Mar 10 '14 14:03 dovy

I knew I was missing something! So, if I’m reading the docs on wp-sass correctly, every time the user changes a value (which I’m using in the sass file), WP would re-compile and employ in the stylesheet ... Is that correct?

Thanks Dovy ... you guys are awesome

From: Dovy Paukstys Sent: Monday, March 10, 2014 10:58 AM To: ReduxFramework/redux-framework Cc: zerocool1 Subject: Re: [redux-framework] Using redux variables for sass (#897)

All the compiler does is say, hey. Values have changed. You then run your own code to compile the SASS.

Might I suggest this for a base? https://github.com/sanchothefat/wp-sass

It may help. :P

— Reply to this email directly or view it on GitHub.

zerocool1 avatar Mar 10 '14 15:03 zerocool1

I believe that's correct. I may be forking that and providing the same feature set for both LESS and SCSS to make it easier for our users. It needs to be fixed a little for multi-site I think. ;)

dovy avatar Mar 10 '14 15:03 dovy

Dovy you’re a beauty! thanks so much. and fyi i’ve been recommending redux to everyone I know. you guys are doing great work

From: Dovy Paukstys Sent: Monday, March 10, 2014 11:18 AM To: ReduxFramework/redux-framework Cc: zerocool1 Subject: Re: [redux-framework] Using redux variables for sass (#897)

I believe that's correct. I may be forking that and providing the same feature set for both LESS and SCSS to make it easier for our users. It needs to be fixed a little for multi-site I think. ;)

— Reply to this email directly or view it on GitHub.

zerocool1 avatar Mar 10 '14 15:03 zerocool1

Awesome! Thank you. Have you written a review for us yet? That helps a lot too:

http://wordpress.org/support/view/plugin-reviews/redux-framework

Also, like us on Facebook! https://www.facebook.com/ReduxFramework ;)

dovy avatar Mar 10 '14 15:03 dovy

Just wrote the review, and already liked on Facebook

From: Dovy Paukstys Sent: Monday, March 10, 2014 11:26 AM To: ReduxFramework/redux-framework Cc: zerocool1 Subject: Re: [redux-framework] Using redux variables for sass (#897)

Awesome! Thank you. Have you written a review for us yet? That helps a lot too:

http://wordpress.org/support/view/plugin-reviews/redux-framework

Also, like us on Facebook! https://www.facebook.com/ReduxFramework ;)

— Reply to this email directly or view it on GitHub.

zerocool1 avatar Mar 10 '14 15:03 zerocool1

Awesome. Thank you.

dovy avatar Mar 10 '14 15:03 dovy