In this chapter, we will look at best practices that need to be followed in theme development. We will also look at generally applicable best practices in web design as well as those in rich Internet applications and PrimeFaces themes.
In this chapter, we will cover the following best practices in theme development:
An introduction to web WAI guidelines for good web design
Colors, icon sets, background, and foreground
Fonts make the text stand out
Rich Internet applications versus desktop applications
Functions per page
Components that you will be using
Some important PrimeFaces CSS classes
Going beyond the standard built-in PrimeFaces theme
Overriding the PrimeFaces CSS classes
Overriding specific component CSS styles
Previewing theme styles before using them
Considerations for mobile applications
Busy UI versus data-dominated UI
Feedback from potential users
Miscellaneous best practices