Theming D8

Theming D8

THEME

    Drupal 8 OFFICIAL THEMING GUIDE
    sqndr THEMING GUIDE
    see useful videos
    Creating a Drupal 8 sub-theme

Adding javascript to specific pages

https://www.drupal.org/theme-guide/8/assets Attaching a library to a subset of pages

Javascript depending on PHP info

https://www.drupal.org/theme-guide/8/assets Attaching configurable JavaScript

CDN / externally hosted libraries

https://www.drupal.org/theme-guide/8/assets

Inline JavaScript

https://www.drupal.org/theme-guide/8/assets