Hey everyone,

I am trying to incorporate Ant design components into a project I am working on for school. I want to be able to style these components via less styles.

I used the craco-less package for my installation. I also have a craco.config.js file set up.

r/webdev - QUESTION: setting up Less via craco to work with Antd components

In my main index.js file I have:

r/webdev - QUESTION: setting up Less via craco to work with Antd components

So this set up works but when I change the import to:

r/webdev - QUESTION: setting up Less via craco to work with Antd components

Then I see the Antd components but I lose their styles.

Any thoughts as too how to remedy this problem? I would like to practice styling with less.



Source link

Write A Comment