Page 1 of 1

How do you recommend applying styles?

Posted: 12 Jun 2018, 20:03
by KScarabello
Greetings,

Does anyone have a recommended way of applying styles? I have tried applying styles in my App.css file, but I presume they are being overridden by the Primefaces stylesheets. The only way that I have been able to successfully manipulate them is via inline styling. Digging through the large Primefaces stylesheet is a bit overwhelming - I was wondering what worked for everyone in here.

Re: How do you recommend applying styles?

Posted: 13 Jun 2018, 08:18
by kaho29
For me, overriding the PrimeReact styles inside my own css works, but you very often have to use !important to prevent your own styles from being overridden.

Not really a smooth way of styling in my opinion. Would be nice, if the classnames extension would be used consequently so you could just inject your own style class directly into the components...

Re: How do you recommend applying styles?

Posted: 29 May 2019, 13:05
by vbhardwaj7
We have purchased babylon theme and after analyzing this we have come to know that overriding css with important is required.

@Support can you please guide us if this can be avoided in any theme.