Adding CSS styles
When discussing user interface implementations for the applications in this book, we chose not to focus on the details of the CSS styling code applied and relied mostly on the default Material-UI stylings. But given that implementing any user interface requires considering styling solutions, we will briefly look at some of the options available.
When it comes to adding CSS styles to the frontend, there are a number of options, each with pros and cons. In this section, we will discuss the two most common options, which are external style sheets and inline styles, along with a newer approach of writing CSS in JavaScript, or more specifically JSS, which is used in Material-UI components and hence also for the applications in this book.
External style sheets
External style sheets allow us to define CSS rules in separate files that can be injected into the necessary view. Placing CSS styles this way in external style sheets was once considered the better practice because it...