Take the design of your Drupal site to the next level by creating custom themes with front-end development finesse
About This Book
* Bring modern front-end development practices to Drupal
* Take total control of your HTML with Twig
* Create themes that can be used for more than just one project
Who This Book Is For
This book is for those who are familiar with Drupal and have used PHP in development or worked with Drupal themes before but want to go further in creating a custom theme. It is also ideal for those who are familiar with front-end development basics but do not know how to best integrate those practices with a Drupal theme.
What you will learn
* See what's new with Drupal 8 theme files and how to find the best starting point for your custom theme
* Gain a deep understanding of how a Drupal theme fits within an overall site architecture and strategies to best implement a custom design
* Know how to override default Drupal markup with Twig templates and get just the right data exactly where you want it in your HTML markup
* Integrate front-end development techniques with your Drupal theme, including front-end frameworks such as Bootstrap and Angular
* Build CSS from Sass using Grunt or Gulp, pulling in third-party tools with npm and Bower
* Use Drupal behaviors and settings so your JavaScript works well with Drupal's APIs
* Prototype new designs with Pattern Lab and provide responsive image styles
* Add user interface settings to your theme, generate sub themes with Drupal Console, and contribute your theme to the community
In Detail
Dressing for success can make or break your site. An off-the-shelf design might look okay, but will it stand out? A custom theme can make your Drupal 8 site shine like no other. Not sure where to start? If you've used default Drupal themes and want to kick it up a notch to create your own theme, this book is here to help.
Take full control of the appearance of your Drupal 8 site. Get your HTML markup just the way you want it with Twig. Use front-end frameworks from Bootstrap and Foundation to Angular. Or craft your own user experience with Sass, and front-end build tools and custom JavaScript that makes the most of Drupal's APIs. Make sure your site is responsive: prototype new designs with Pattern Lab and provide responsive image styles. Soon you'll have a high performance site that soars above the rest.
Once your finely-tuned theme is using front-end development best practices, you might even share your theme with others. You will also provide settings for your theme on administration screens and simplify how your theme can be reused for future projects. Fame, fortune, fashion—just look at that bright future ahead once you've mastered Drupal 8 theme development!
- ISBN13 9781786469335
- Publish Date 31 March 2017
- Publish Status Active
- Publish Country GB
- Imprint Packt Publishing Limited
- Format eBook
- Pages 541
- Language English