

The following image illustrates this:ĮxampleCorp wants to change the color of the primary buttons to orange. action.primary class, so called primary buttons, are blue.

Here is a simple illustration of changing styles using the first approach: changing the color of the buttons of a certain class. To enable / disable these settings, go into Admin > Stores > Setting > Configuration > Advanced > Developer > CSS Settings. Use CSS critical path to eliminate render-blocking CSS resources. It does this by stripping white space within the file. Minification of CSS files reduces the file size being sent. Merge CSS files to decrease the number of HTTP requests required to load the page.

There are a couple options to help with CSS and site performance.
#DEVDOCS CSS HOW TO#
See the Clean static files cache topic for instructions how to do this.ĬSS merging, minification and performance If your style changes do not apply after refreshing the page, cleaning the static files cache might help. Make sure that you set your Magento application to the developer or default mode. Things to remember when working with styles
