Shopify Tutorials

How to convert theme SCSS to CSS liquid theme?

SCSS offers all the features of CSS along with additional features that are useful for Shopify developers. Though SCSS is the advanced version of CSS, it is not understandable by web browsers. You will have to convert SCSS to CSS liquid theme. Keep reading and we help you quickly convert SCSS to CSS through a series of steps:

What is CSS?

Cascading Style Sheets (CSS) is a scripting language used in developing web pages as well as styling them to make them attractive. It is one of the popular technologies used with HTML and JavaScript. It is used with the extension ‘.css’.  

What is SCSS?

SCSS refers to Sassy Cascading Style Sheets which is the more advanced version of CSS. It has a pre-processor language that is interrupted into the CSS files. The SCSS liquid theme files have a file extension of .scss. 

How to convert theme SCSS to CSS liquid?

Unfortunately, the SCSS features aren’t introduced yet in the CSS specs and the web browsers don’t understand the SCSS and SASS code directly. Therefore, you have to transform the code SCSS to CSS code. Also, the SCSS support has depreciated in themes. To make sure that your Shopify online store and Shopify theme editor perform better, you would have to convert the .scss liquid files into .css liquid files.    

  1. First, remove all the liquid variables from the .scss liquid file.
  2. Create the .css liquid file.
  3. Insert all the liquid variables on the .css liquid file
  4. The file is now converted to .css liquid theme.

Convert SCSS to CSS manually:

  1. Rename the storepickup.scss.liquid to storepickup.css.liquid
  2. In storepickup.liquid, change ####{{ ‘storepickup.scss.css’| asset_url | stylesheet_tag }} to ####{{‘storepickup.css’ | asset_url | stylesheet_tag }}

Rename storepickup.scss.liquid to storepickup.css.liquid:

  1. Proceed to Online store> Themes> [Theme name]> Edit code.
  2. Click Assets>storepickup.scss.liquid.
  3. Select Rename.
  4. Change the file name to storepickup.css.liquid.

Make sure that storepickup.liquid is loading the correct CSS file. Verify it with the following steps:

  1. Go to Online store>Themes> [Theme name] > Edit code.
  2. Go to Snippets> storepickup.liquid
  3. Replace ####{{‘storepickup.scss.css’ | asset_url | stylesheet_tag }}
  4. Select Save

Note:

SASS syntax no longer works. If you use any SASS syntax, you must manually convert the file into CSS syntax.  

For example, the above code no longer works and when converted to CSS, your code looks like this:

Any comments need to be modified from // comment to/* Comment */.

Conclusion

If you are looking for an online SCSS to CSS converter, there are plenty of tools like JSON formatter, CSS Portal, Code Beautify, bfotool, etc available online. You can choose any of them and convert the files from SCSS to CSS right away.

Let us know in the comment section. if you need immediate ecommerce web development services or assistance, you can contact  Shopify development company in California now . Our friendly and knowledgeable representatives are available to help you with Shopify inquiries .

Thanks for Reading!

Shopify Developer

Recent Posts

Unlock the Power of Shopify Flow: Automation Strategies for eCommerce

Let’s face it. Running an online store requires unwavering discipline. Juggling multiple tasks simultaneously is…

4 weeks ago

Everything You Need to Know About Shopify Liquid

There’s no denying that Shopify has taken over the world. The ecommerce platform contributes to…

1 month ago

Maximizing Revenue: 7 Best Shopify Themes for Conversion Rates that Soar

It’s true. Every marketing strategy has one common objective: to drive maximum conversion rates. If…

2 months ago

Terrific Dropshipping Business Ideas for 2024

*Sigh*. Are you tired of trying out different methods of making money online? Hear it…

2 months ago

Shopify SEO Checklist for Continued Success in 2023

When driving traffic to your Shopify store, Search Engine Optimization (SEO) is the most affordable…

2 months ago

Steps to Add Shopify Video Banner Section

Numbers don’t lie! According to research conducted by Statista, there were an estimated 7.1 billion…

2 months ago