Intercept Base

17
9.X

Overview

Intercept Base is a base theme meant for use with Intercept, a suite of modules for managing events, room reservations and equipment reservations.

Intercept's decoupled interfaces are built using Material UI – a library of React components based on Google's Material Design. Intercept Base applies many of the underlying Material Design styles to common ui elements to make the Material UI components and standard Drupal theme elements seamless.

Extending Intercept Base and Material UI

Material UI utilizes JSS. While JSS is a powerful method for styling dynamic components, overriding styles in the traditional sense of replacing or overriding CSS is not a practical method of customization. While this still works for extending a majority of a site, overriding Material UI components requires replacing the global JS interceptTheme object. See Material UI's default theme for available overrides.

To change the Material UI JSS theme, override the intercept_core/interceptTheme library.

my_subtheme.libraries.yml

...
interceptTheme:
  js:
    path/to/overridden/interceptTheme.js: { preprocess: true }
  dependencies:
    - core/drupalSettings
...

my_subtheme.info.yml

...
libraries-override:
  intercept_core/interceptTheme: my_subtheme/interceptTheme
...

 

Want to customize this theme in a unique way for your website, we are here to help you!

We also build custom Drupal themes

 

Get a custom theme