Implementing and using a third-party CSS library
Drupal provides many things. However, one thing that it does not provide is any kind of CSS component library. In the recipe Using the new asset management system, in Chapter 5, Frontend for the Win, we added FontAwesome
as a library. CSS frameworks implement robust user interface design components and they can be quite large if using a compiled version with everything bundled. The asset management system can be used to define each component as its own library to only deliver the exact files required for a strong frontend performance.
In this recipe, we will implement the Semantic UI framework, using the CSS only distribution, which provides each individual component's CSS file. We will register ...
Get Drupal 8: Enterprise Web Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.