Reactjs - Need to apply different styles to the card component across different pages

I need to use the card component across different pages on my app, but with different styles (e.g. different margins, paddings, etc).
What is the recommended way of doing this in react. I tried using CSS modules, but unable to find a clean approach.


Hi @Ateesh_Verma :wave:

Could you share with me how you tried to solve it with CSS? Did you find any specific problem?
I’m asking because, for this use case, the best solution would be the custom CSS.

Hi - I was able to solve it by using CSS ‘container’ classes for each page and make local modifications where needed.