Magento 2.1.18 is the final 2.1.x release. After June 2019, Magento 2.1.x will no longer receive security patches, quality fixes, or documentation updates.
To maintain your site's performance, security, and PCI compliance, upgrade to the latest version of Magento.

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 > Tools > Cache Management.

Recommended Reading

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.

Recommended Reading

Inherit and customize

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.

Recommended Reading

Updated