How do you recommend applying styles?

UI Components for React
Post Reply
Posts: 6
Joined: 11 Jun 2018, 20:27

12 Jun 2018, 20:03


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.

Posts: 18
Joined: 18 Aug 2017, 10:57

13 Jun 2018, 08:18

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...

Posts: 1
Joined: 18 Mar 2013, 05:47

29 May 2019, 13:05

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.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest