Libraries can also be extended to allow overriding CSS added by another library without modifying the original files. This can be done by adding the following to our *.info.yml configuration:
libraries-extend:
core/drupal.vertical-tabs:
- example/tabs
In this case, the libraries-extend configuration is extending Drupal's own core.libraries.yml file and the drupal.vertical-tabs library with additional styling.
While we now have a general understanding of how libraries are defined, overridden, and extended, we have only dealt with libraries globally loaded into our Drupal instance using our configuration. However, there are two more methods to include assets within a page directly, without the need to add it to every page.