Logo
X
  • Who We Serve
    • By Role

      • CEO / Business Executives
      • CTO / IT Professionals
      • COO / Operations Head
    • By Industries

      • Healthcare
      • Digital Commerce
      • Travel and Transportation
      • Real Estate
      • Software and Technology
  • Our Technology Focus
    • Web
    • Mobile
    • Enterprise
    • Artificial Intelligence
    • Blockchain
    • DevOps
    • Internet Of Things
  • Discover Daffodil
    • About
    • Leadership
    • Corporate Social
      Responsibility
    • Partners
    • Careers
  • Resources
    • Blog

    • E-Books

    • Case Studies

    • View all resources

  • Who We Serve
    • By Role

      • CEO / Business Executives
      • CTO / IT Professionals
      • COO / Operations Head
    • By Industries

      • Healthcare
      • Digital Commerce
      • Travel and Transportation
      • Real Estate
      • Software and Technology
  • Our Technology Focus
    • Web

      Create responsive web apps that excel across all platforms

    • Mobile

      User centric mobile app development services that help you scale.

    • Enterprise

      Innovation-driven enterprise services to help you achieve more efficiency and cost savings

      • Domains
      • Artificial Intelligence
      • DevOps
      • Blockchain
      • Internet Of Things
  • Discover Daffodil
    • About
    • Leadership
    • Corporate Social Responsibilities
    • Partners
    • Careers
  • Resources
    • Blog

      Insights for building and maintaining your software projects

    • E-Books

      Our publications for the connected software ecosystem

    • Case Studies

      The impact that we have created for our clients

    • View all resources
daffodil-logo
Get in Touch
  • What We Do
    • Product Engineering

    • Discover & Frame Workshop
    • Software Development
    • Software Testing
    • Managed Cloud Services
    • Support & Maintenance
    • Smart Teams

    • Dedicated Teams
    • Offshore Development Centre
    • Enterprise Services

    • Technology Consulting
    • Robotic Process Automation
    • Legacy Modernization
    • Enterprise Mobility
    • ECM Solutions
  • Who We Serve
    • By Industry

    • Healthcare
    • Software & Technology
    • Finance
    • Banking
    • Real Estate
    • Travel & Transportation
    • Public Sector
    • Media & Entertainment
    • By Role

    • CEO / Business executives
    • CTO / IT professionals
    • COO / Operations
  • Our Expertise
    • Mobility
    • UI/UX Design
    • Blockchain
    • DevOps
    • Artificial Intelligence
    • Data Enrichment
    • Digital Transformation
    • Internet of Things
    • Digital Commerce
    • OTT Platforms
    • eLearning Solutions
    • Salesforce
    • Business Intelligence
    • Managed IT Services
    • AWS Services
    • Application Security
    • Digital Marketing
  • Case Studies
  • Discover Daffodil
    • About us
    • Partnership
    • Career & Culture
    • Case Studies
    • Leadership
    • Resources
    • Insights Blog
    • Corporate Social Responsibility
Get in Touch
resources-bg.jpg

Software Engineering Insights

Magento Responsive Design: How to Get Started with SASS on Magento CE 1.9

Jan 21, 2015 3:39:25 PM

  • Tweet

Ever since eBay Enterprise released the new version of Magento i.e. Magento Community Edition version 1.9 on May 13, 2014 at the Imagine 2014 Global Ecommerce event hosted at Las Vegas, more than 50 enhancements have been introduced in an endeavor to improve the quality and security of the updated platform throughout the product.

Though the default theme in Magento CE 1.9 incorporates a new responsive layout that already includes usage of modern technologies like SASS with a cleaner and extra modern code base along with supporting documentation, it has never been so simpler & quicker for developers to extend default Magento themes with specific customizations on their Windows, Mac or Linux OS platforms.

A Brief Introduction To SASS - CSS For Programmers

SASS refers to Syntactically Awesome Stylesheets that is basically one of the most powerful professional grade CSS extension languages in the world allowing developers to use variables, mixins, inline imports & nested rules - everything along with a well-organized, fully CSS-compatible syntax. To be precise, SASS is the "CSS for programmers".

What this blog is about - This blog is a quick step by step guide on how to get started with SASS on Magento CE 1.9.

Step 1 - Install Magento CE 1.9

Download Magento CE 1.9 from the below link and install it on your server or local machine using the URL:

http://www.magentocommerce.com/download

Step 2 - Install Ruby on Rails

Installing Ruby on Rails facilitates rapid web development and that's the biggest reason as to why a large number of developers and designers prefer to use the HTMLtemplate language and SASS CSS preprocessor that are both native to Rails.

Download Ruby on Rails from the below link on your Mac/Windows/Linux or any other operating system

http://rubyonrails.org/download/

Next, install it on your server or local machine where you want to work on SASS.

Step 3 - Install Ruby Gem Compass

Just installing Magento CE 1.9 and Ruby on Rails doesn't prepare you fully to work with SASS. You'll also need a compiler in order to compile your SASS files to dynamic CSS. Also, installing compass will allow you to monitor your SASS files while offering additional functionality to SASS itself.

For this, you need to install Ruby Gem Compass using following instructions -

1. Open your Terminal or Command Prompt. On Mac OS, the Terminal.app comes installed by default and is located in your "Utilities" folder. On Windows, run 'cmd'.

2. Install Compass. Ruby uses Gems to manage its various packages of code like Compass.

In your open terminal type: gem install compass

This will install Compass and any dependencies for you. It's pretty magical. If you get an error message then it's likely you will need to use the following sudo command to install the SASS gem.

sudo gem install compass

Alternatively, you can also download 3rd party applications to get started with SASS in a few minutes. These applications can work for multiple OS platforms (Mac, Windows and Linux). Amongst these apps, most of them are open source (free of cost) while a few of them are commercial (paid apps), the details of which are listed below.

Magento Responsive Design How to Get Started with SASS on Magento CE

Step 4 - Update the Config.rb file

Use the following instructions to update config.rb file -

1.    Find config.rb file on the following path in your installed Magento 1.9:

magento1.9\skin\frontend\rwd\default\scss

2.    Cut (ctrl+x) config.rb file located at the following path

magento1.9\skin\frontend\rwd\default\scss

and paste (ctrl+v) it at the following path

magento1.9\skin\frontend\rwd\default

Now, you need to make changes in the config.rb file using following instructions-

1. Open config.rb file in any text editor.

2. Under "# file paths" section, let the "http_path = "/" section remain same (since it means the path where you kept config.rp is root for compass) and change following paths as suggested below -:

css_dir = "css"

sass_dir = "scss"

images_dir = "images"

javascripts_dir = "js"

fonts_dir = "fonts"

Don't forget to save the file once you're done with all the changes.

New Call-to-action

Step 5 - Run compass

Use the following instructions to run compass-

1. Open your Terminal or Command Prompt. On Mac, the Terminal.app file comes installed by default and is located in your "Utilities" folder. On Windows, run 'cmd'.

2. Type the path where your config.rb file is kept

E.g. - cd magento1.9\skin\frontend\rwd\default

3. Now run compass by typing the following command:

E.g. - compass watch

You'll see the following message on your screen-

">>> Compass is watching for changes. Press Ctrl-C to stop."

The above message means compass is watching your SASS changes and is compiling your CSS as per the changes incorporated by you.

Though SASS is extremely fun for designers and developers especially when used to simplify & automate the Magento front end development process, I'm sure the growing SASS toolkit will let you save considerable amount of time in future development if you continue developing a good collection of settings, mixins and placeholders.

Happy coding!!

Topics: Digital Commerce Open Source

Team Daffodil

Written by Team Daffodil

We equip smart companies with smarter solutions. Our all-round expertise in Web, Mobile and Cloud solutions has brought about a change in some of the top businesses, setting global milestones as we go.

[fa icon="facebook-square"] [fa icon="linkedin-square"] [fa icon="twitter-square"]

Previous Post

previous_post_featured_image

Google New No CAPTCHA reCAPTCHA API Swaps Fuzzy Text with a Simple Checkbox

Next Post

next_post_featured_image

Concrete5 Migration Problem: Blank Page When Moving From Windows to Linux

Stay Ahead of the Curve with Our Weekly Tech Insights

  • Recent
  • Popular
  • Categories

Lists by Topic

  • Software Development (174)
  • Artificial Intelligence (169)
  • Mobile App Development (166)
  • Healthcare (137)
  • DevOps (80)
  • Digital Commerce (60)
  • Web Development (57)
  • CloudOps (54)
  • Digital Transformation (37)
  • Fintech (36)
  • UI/UX (29)
  • On - Demand Apps (26)
  • Software Architecture (26)
  • Internet of Things (IoT) (25)
  • Open Source (25)
  • Outsourcing (24)
  • Blockchain (21)
  • Newsroom (21)
  • Salesforce (21)
  • Technology (18)
  • Software Testing (16)
  • StartUps (16)
  • Customer Experience (14)
  • Robotic Process Automation (13)
  • Voice User Interface (13)
  • Javascript (11)
  • OTT Apps (11)
  • Business Intelligence (10)
  • Data Enrichment (10)
  • Infographic (10)
  • Big Data (9)
  • Education (9)
  • Microsoft (6)
  • Real Estate (5)
  • Banking (4)
  • Game Development (4)
  • Enterprise Mobility (3)
  • Hospitality (3)
  • eLearning (2)
  • Public Sector (1)
see all

Posts by Topic

  • Software Development (174)
  • Artificial Intelligence (169)
  • Mobile App Development (166)
  • Healthcare (137)
  • DevOps (80)
  • Digital Commerce (60)
  • Web Development (57)
  • CloudOps (54)
  • Digital Transformation (37)
  • Fintech (36)
  • UI/UX (29)
  • On - Demand Apps (26)
  • Software Architecture (26)
  • Internet of Things (IoT) (25)
  • Open Source (25)
  • Outsourcing (24)
  • Blockchain (21)
  • Newsroom (21)
  • Salesforce (21)
  • Technology (18)
  • Software Testing (16)
  • StartUps (16)
  • Customer Experience (14)
  • Robotic Process Automation (13)
  • Voice User Interface (13)
  • Javascript (11)
  • OTT Apps (11)
  • Business Intelligence (10)
  • Data Enrichment (10)
  • Infographic (10)
  • Big Data (9)
  • Education (9)
  • Microsoft (6)
  • Real Estate (5)
  • Banking (4)
  • Game Development (4)
  • Enterprise Mobility (3)
  • Hospitality (3)
  • eLearning (2)
  • Public Sector (1)
see all topics

Elevate Your Software Project, Let's Talk Now

Awards & Accolades

dj
dj
dj
dj
dj
Aws-certification-logo
microsoft-partner-2-1
microsoft-partner
google-cloud-partne
e-UI-Path-Partner-logo
partner-salesforce-reg-consulting-partner-1-1
daffodil-logo
info@daffodilsw.com
  • Home
  • About Daffodil
  • Locations
  • Privacy Policy
  • Careers

© 2025 Daffodil Unthinkable Software Corp. All Rights Reserved.

[fa icon="chevron-up"]