Book Image

Magento 2 Theme Design - Second Edition

By : Richard Carter
Book Image

Magento 2 Theme Design - Second Edition

By: Richard Carter

Overview of this book

Magento is the e-commerce software and platform trusted by the world’s leading brands. Using Magento’s powerful theming engine, you can control the look, content, and functionality, and easily launch a flexible e-commerce website. However, because of its powerful features, developing Magento themes is easier said than done. This book aims to leverage the enhancements to theme designing in Magento 2 to the fullest. It will show you how to gear up the performance of your e-commerce website. We begin by introducing Magento 2 and its features along with implementing a local development Magento environment. We then move on to discuss the concepts of the Magento theme structure such as templates, inheritance, customization, and override. Further on, we explore the Magento UI Library, which is a new feature available in Magento 2.0. We will create a new Magento 2.0 theme named MyCake Store using Magento Bootstrap from Maven E-commerce and also create print strategies for the Magento 2.0 theme. We will also create and customize a new theme proposal for the Magento admin panel. At the end, we will integrate Magento 2.0 to Twitter and integrate it with social bookmarking and finally deploy our new Magento 2.0 theme.
Table of Contents (18 chapters)
Magento 2 Theme Design - Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

LESS and CSS preprocessing


One of the major questions that is always raised when developers work with large and complex projects that require many frontend rules via CSS, is: how will I work my code in a sustainable, scalable, and modular way?

The preprocessing in CSS, although not a silver bullet for all issues, promotes the writing of reusable and maintainable CSS codes, increasing productivity and reducing the amount of coding in the project, thereby achieving a better performance.

In Magento 1.9, the solution used for CSS compilation was the SASS (Syntactically Awesome Style Sheets) technology (http://sass-lang.com/). The SASS is a CSS extension that implements additional features for use in their projects, such as variables, mixins, inline imports, and so on. For Magento 2, there is a project that still uses the SASS technology, and this project is maintained on GitHub at https://github.com/SnowdogApps/magento2-theme-blank-sass .

In order to follow the natural evolution of CSS technology...