Storefront UI best practices
The storefront theme is the front facing interface for a Magento application that can be customized through a theme extension. We suggest adopting the following best practices to avoid common problems we have seen other developers make while making a theme extension.
Clear your cache periodically
Forgetting to clear or disable caching can cause a lot of development headache. Visual spot checks on rendered content are unreliable when the content being displayed is retrieved from the cache. We recommend clearing your cache before doing visual checks for your theme to make sure the content displayed is correct.
You can manage your cache in the Admin section under System > Cache Management.
Consider different resolutions/devices
When developing your theme extension, you should check how it looks using different resolutions or devices. We recommend you apply responsive web design(RWD) concepts to optimize the look and feel of your theme on different devices and resolutions. To help you with this task, both Chrome and FireFox web browsers have built in developer tools that allow you to view your theme under different resolutions.
Inherit and customise
There is a lot of work in building a theme extension for Magento from scratch. This is why we recommend you inherit and customize an existing theme. Magento comes with both Blank and Luma themes after initial install. You can leverage the work already done to make those two themes responsive by setting one of them as your theme’s parent.