Closed RobinVanCauter closed 7 years ago
I believe the problem is use()
, as it requires plugins to be spread in: https://github.com/cssinjs/jss/blob/master/src/Jss.js#L88
Where as preset()
returns an object of plugins: https://github.com/cssinjs/jss-preset-default/blob/master/src/index.js#L12
I believe you want setup()
: https://github.com/cssinjs/jss/blob/master/src/Jss.js#L31
Sorry for my docs being wrong, I will update them! Let me know if this fixes it.
This fixes the issue. Thanks!
Sweet. Thanks for using Aesthetic!
We're trying to setup Aesthetic in our project in combination with the JSS adapter.
But we're running into an issue where the jss plugins provided by 'jss-preset-default' aren't being used.
As an example, the style object used:
results in the following class:
As you can see, the maxWidth rule is not being compiled to max-width (jss-camel-case plugin) as well as it's value, which should become 380px (jss-default-unit plugin).
This is what our styler configuration file looks like currently, is there anything we're missing here?
Nice job on this library btw, looks very promising!