In this chapter, we explored the structure of a theme and the rules that we need to change in order to tweak our theme to make it even better. We also learned how to override the PrimeFaces component rules and make sure that our rules have precedence over them. We saw that PrimeFaces also uses more modern CSS rules than the ones that jQuery UI uses where appropriate and that we can change these rules as well. We also became comfortable defining new rules by associating our theme with specific component types. It was demonstrated that although a PrimeFaces theme is about how things look like on a page, we are not restricted to the general rules provided by ThemeRoller to achieve our aims.
In the next chapter, we are going to discover how PrimeFaces uses icon sprites, how we can provide our own icons, how to add new icons that are not already provided, and how to use Font Awesome icons in PrimeFaces application.