The initial root page not load global.less file, I try to config same with your mkn repo but my initial Root page not load my override ant styles + css variable styles. global.less was loaded when I direct to the page /about using antd (Button), you can try with codesandbox link above.
reproduce step:
default you in root / page
click button go to ant page direct to /about (about page using ant button)
then global.less styles I set will apply from now
click back to normal page back to root /, style applied
Hi, here is my codesandbox https://codesandbox.io/s/nextjs-ant-less-egwo5?file=/pages/_app.js
The initial root page not load
global.less
file, I try to config same with yourmkn
repo but my initial Root page not load my override ant styles + css variable styles.global.less
was loaded when I direct to the page/about
using antd (Button), you can try with codesandbox link above.reproduce step:
/
pagego to ant page
direct to/about
(about page using ant button)global.less
styles I set will apply from nowback to normal page
back to root/
, style appliedSorry, my English isn't good