Jss: Is there any way I can use sass features with jss?

Created on 28 Jul 2016  路  1Comment  路  Source: cssinjs/jss

I am trying to generate styles dynamically based on color provided.

const styles = function(btnColor){
    return {
        btnTest : {
            borderColor     : darken(btnColor, '20%'),
            backgroundColor : btnColor
        }
    }
};

I am getting error as darken is not defined. How can I use sass features with jss ?
Please guide.
Thanks

question

Most helpful comment

You can use this library for color conversions. It is unrelated to jss. https://www.npmjs.com/package/color

>All comments

You can use this library for color conversions. It is unrelated to jss. https://www.npmjs.com/package/color

Was this page helpful?
0 / 5 - 0 ratings