Closed Mar-he closed 3 years ago
I don't find the problem, can you show more error info or repo?
I don't find the problem, can you show more error info or repo?
Hello, Could you please show me how to use less global variable. I required a less file include less varaible in _app.jsx. but I can't use it in styled-jsx component? if there is any way to use global less variable in styled-jsx component. Thanks for your plugin, it helps a lot.
@yy523697597 i have not used styled-jsx. you can try trans less vars to css vars. use this node script.
https://github.com/SolidZORO/mkr/blob/master/src/styles/_sync-vars-to-root.js
Is this thread now about a different problem? I am a bit confused.
I solved this by adding less and less-loader to the dependencies for now, but the a custom theme.less does not get picked up and variables do not apply.
Update: I've updated my config to:
lessVarsFilePath: './styles/theme.less',
lessVarsFilePathAppendToEndOfContent: true,
And now all themes apply. Let's see if this still works with a proper build. Too much has gone sideways so far.
Cloning mkn works just fine, but trying to implement it into an existing project always results in:
I've updated all installed modules, to be exactly the same as in the mkn demo, sans eslint and everything, that I don't use, but I just won't work.
If somebody could guide me in the right direction, that would be great.