I use PrimeFaces 8 and I can't get the same design as that of showcase. Which CSS should I declare?
My application

Showcase

I use PrimeFaces 8 and I can't get the same design as that of showcase. Which CSS should I declare?


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.