Skip to content

Instantly share code, notes, and snippets.

@rikki-iki
Last active February 7, 2023 01:53
Show Gist options
  • Save rikki-iki/c95273bec1155977bdc6 to your computer and use it in GitHub Desktop.
Save rikki-iki/c95273bec1155977bdc6 to your computer and use it in GitHub Desktop.
Example Drupal 8 info file for removing base theme CSS or Libraries
# Extend an existing library:
# Ensures overrides are only added when the toolbar is available.
libraries-extend:
toolbar/toolbar.menu:
- my_theme/drupal
# Replace or remove entire libraries;
# Un-comment each library to exclude it's CSS, JS and Dependencies from being loaded.
libraries-override:
core/normalize: false
core/html5shiv: false
system/base: false
core/jquery.ui:
css:
theme:
assets/vendor/jquery.ui/themes/base/theme.css: false
# CKEDITOR
ckeditor_stylesheets:
- css/ckeditor.css
ckeditor5-stylesheets:
- css/ckeditor5.css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment