I use PrimeFaces 8 and I can't get the same design as that of showcase. Which CSS should I declare?
Asked
Active
Viewed 465 times
1
-
1Did you see your 'answer' was removed and what the better way is: https://stackoverflow.com/help/accepted-answer – Kukeltje Apr 26 '20 at 06:54
1 Answers
1
PrimeFaces comes with several free themes. You can see them in action at the themeSwitcher
showcase. If you don't configure a theme, PrimeFaces 8 will use the (legacy) theme aristo
by default. The theme the showcase uses by default is nova-light
. To make your application look the same as the showcase, configure your theme to be nova-light
. So, in your web.xml
add:
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>nova-light</param-value>
</context-param>
Once you've set a theme, you can override the default theme styling if you need to.

Jasper de Vries
- 19,370
- 6
- 64
- 102