Skip to content

Instantly share code, notes, and snippets.

@Moccine
Created December 12, 2016 14:34
Show Gist options
  • Select an option

  • Save Moccine/6102b11f8ad52e0dfb34805e2ad91999 to your computer and use it in GitHub Desktop.

Select an option

Save Moccine/6102b11f8ad52e0dfb34805e2ad91999 to your computer and use it in GitHub Desktop.
ADDING GOOGLE FONTS TO A DRUPAL 8 THEME
# use in your css file
# @import url('https://fonts.googleapis.com/css?family=Ubuntu'
# Or use your theme.libraries.yml
global-styling:
version: 1.x
css:
theme:
font-awesome/css/font-awesome.css: {}
css/bootstrap.css: {}
css/styles.css: {}
https://fonts.googleapis.com/css?family=Ubuntu: {type: external}
js:
js/bootstrap.js: {}
js/scripts.js: {}
dependencies:
- core/jquery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment