Piotr Sikora - Logo - Automatyzacja procesów | AI | JavaScript | Front End | Team Leader
  • Home
  • Services
    • Process Automation
    • AI for Lawyers
  • Blog
  • Quotes
  • Contact
PL/EN

Master SASS Installation with This Quick Guide

  • Home
  • Blog
  • Master SASS Installation with This Quick Guide
Master SASS Installation with This Quick Guide

By Piotr Sikora

  • css

  • 3 April 2014

  • 2 min read

Table of Contents

  • Front End Developer Arsenal: Master SASS Installation with This Quick Guide
  • Ruby
  • SASS installation
  • SASS short introduction
  • Usage

Front End Developer Arsenal: Master SASS Installation with This Quick Guide

Have you ever been dreaming about variables in CSS code? Or maybe other functionalities like functions? The simplest way to have a variables in CSS is to work with preprocessor like SASS.

Ruby 

Firstly you need to know if you have Rudy on your machine.  Type in your terminal:

ruby -v

If execution of this comman something simillar to :

ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]

you can go to next step and start sass installation process. If not you have to install ruby interpreter. On Mac OSX its installed as default. On Windows you can use this link https://www.rubyinstaller.org/

SASS installation

If you have Ruby interpreter you can start SASS installation. Write it in your terminal:

sudo gem install sass

SASS short introduction

Compilation

Compilation of file is pretty simple.

sass filename.sass:filename.css

This option will create for you filename.css CSS file from filename.sass SASS file.

If you dont want to repeat this option and need to add watcher just write:

sass --watch filename.sass:filename.css

When SASS file will be changed CSS file will be auto generated.

Compilation options

For better debugging I recommend to use browser DevTools with source maps. Note: FireSass/Firebug are deprecated. Modern browsers have built-in support for SASS source maps. Using source maps is available when you will compile file with this command:

sass --watch filename.sass:filename.css --debug-info

For production files I recommend to use compilation with minification mode.

sass filename.sass:filename.css --style compressed

Usage

Variables

Using variables is useful when you need to parametrise some elements. For example colours.

$c_bg_gray: #252525 //bg color
$c_contact_blue: #00d8ff //font color

.nav a
 color: $c_bg_gray
 background: $c_contact_blue

.footer a
 color: $c_bg_gray
 background: $c_contact_blue

When you use a variables you dont have to search the code for colour. You just need to change value of variable and go ahead.

Mixins

Sometimes you need to repeat some code with like function in programming language you can use mixin:

=borderRadius($time)
  -webkit-border-radius: $time
  -moz-border-radius: $time
  border-radius: $time

.roundBox
  +borderRadius($radius)

Share this article

TwitterLinkedInFacebook

Tags:

  • #css

  • #front-end

  • #front-end-developer

  • #sass

Categories

after-hours(1)AI(7)ai-en(1)angular(4)automatic-tests(1)Automation(2)cryptography(1)css(8)CyberSecurity(2)Development(6)DevOps(1)events(3)javascript(11)n8n(10)ollama(1)security(2)seo(1)

Recent Posts

Testing Kimi Code: First Impressions from Web and CLI

Development

Testing Kimi Code: First Impressions from Web and CLI

Why You Shouldn't Cram Multiple Webhooks Into One n8n Workflow

Automation

Why You Shouldn't Cram Multiple Webhooks Into One n8n Workflow

DRY, WET, AHA: Finding the Right Balance in Code Reuse

Development

DRY, WET, AHA: Finding the Right Balance in Code Reuse

API vs Webhook: Understanding the Difference

Development

API vs Webhook: Understanding the Difference

RTCROS Framework: Structure Your Prompts for Better AI Results

AI

RTCROS Framework: Structure Your Prompts for Better AI Results

About Me

Piotr Sikora - Process Automation | AI | n8n | Python | JavaScript

Piotr Sikora

Process Automation Specialist

I implement automation that saves time and money, streamlines operations, and increases the predictability of results. Specializing in process automation, AI implementation, and workflow optimization using n8n, Python, and JavaScript.

n8n Workflows

n8n workflow automation templates

Explore my workflow templates on n8n. Ready-to-use automations for blog management, data collection, and AI-powered content processing.

3Workflow Templates
View Templates

• Auto-Categorize Blog Posts with AI

• Collect LinkedIn Profiles

• Export WordPress Posts for SEO

Tags

activepiecesafter-hoursahrefsaiAI cost reductionai-agentsai-automationangularantigravityapiAqua Securityarcade-gamesarchitectureautomationbackendbest-practicescadillacs-and-dinosaurschatbotchatgptCI/CD
“When someone forces you to do something for your own good – run away as fast as you can”
Milton Friedman
View more quotes

Similar Articles

Discover more related content

Front-End Developer Interview Questions Part 1

Front-End Developer Interview Questions Part 1

Essential CSS and HTML interview questions for front-end developers. Quick skill assessment guide for headhunters and candidates.

Test Your Mastery: Challenge Your Knowledge of CSS Selectors

Test Your Mastery: Challenge Your Knowledge of CSS Selectors

Do you want to check your fundamental knowledge of FEDev? Check it out! Run it and test your knowledge about selectors.

Professional CSS by Piotr Sikora

Professional CSS by Piotr Sikora

It's been a long time... I should tell about this book.

Piotr Sikora | ai | n8n | javascript | python

Let's get to know each other!

Get in touch with me
Piotr Sikora | Process Automation  | AI Implementation 🤖 | Technology Consulting
Quick links
  • Home
  • Blog
  • Contact
Contact
  • piotr.sikora.ck@gmail.com
  • +48 505 684 661

© Piotr Sikora 2026 | All Rights Reserved