SlideShare a Scribd company logo
Introducing
Sass, Grunt, Node modules
Priyanka Sethi
Sass is Syntactically Awesome
Stylesheet.
Sass is an extension of CSS that adds
power and elegance to the basic
language. - CSS WITH SUPERPOWERS
It allows you to use variables, nested
rules, mixins, inline imports and more,
all with fully CSS-compatible syntax.
Sass helps keep large style sheets well-
organized.
Features
Fully css-compatible.
Language extensions such as
variables, nesting and
mixins.
Well formatted, customizable
output.
Many useful functions for
manipulating colors and
other values.
Advanced features like control
directives for libraries.
Syntax- There are two syntaxes, we will be
focussing on SCSS,
Sassy CSS - It is an extension of the syntax of CSS,
which means every valid CSS stylesheet is a valid SCSS
file with the same meaning.
http://sass-lang.com/guide
CSS Extensions
Variables
$font-stack: Helvetica,
sans-serif;
$primary-color: #333;
body {
font: 100% $font-stack;
color: $primary-color;
}
Import
@import 'reset';
body {
font: 100% Helvetica, sans-
serif;
background-color: #efefef;
}
Mixins
@mixin border-radius($radius) {
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;
border-radius: $radius;
}
.box { @include border-radius(10px); }
Extend/Inheritence
.message {
border: 1px solid #ccc;
padding: 10px;
color: #333;
}
.success {
@extend .message;
border-color: green;
}
.error {
@extend .message;
border-color: red;
}
Nesting
ul {
margin: 0;
padding: 0;
list-style: none;
li {
display: inline-block;
a {
display: block;
padding: 6px 12px;
text-decoration: none;
}
}
}
Ruby- Ruby uses Gems to manage its
various packages of code like Sass.
Sass is Ruby gem.
gem install sass
This will install Sass and dependencies.
Grunt - The JavaScript Task Runner.
Which basically means automation,
the less work you have to do when
performing repetitive tasks like
minification, compilation, unit
testing, linting etc.
After you’ve configured it through a
Gruntfile, a task runner can do most
of that mundane work with zero
effort.
Sample Gruntfile.js
http://gruntjs.com/sample-gruntfile
Plugins
http://gruntjs.com/plugins
grunt-contrib-uglify
Minify javascript files with UglifyJS
Run this task with the grunt uglify command.
https://www.npmjs.com/package/grunt-contrib-uglify
grunt-contrib-sass
Compile Sass to CSS
Run this task with the grunt sass command
https://www.npmjs.com/package/grunt-contrib-sass
grunt-contrib-cssmin
Minify CSS
Run this task with the grunt cssmin command.
https://www.npmjs.com/package/grunt-contrib-cssmin
grunt-contrib-watch
Run predefined tasks whenever watched file patterns are
added, changed or deleted.
Run this task with the grunt watch command.
https://www.npmjs.com/package/grunt-contrib-watch
Node.js - npm
npm is Node Package Manager.
Npm provides command line utility
to install Node.js packages, do
version management and
dependency management of Node.js
packages.
Installing modules using npm
npm install npm -g
Node comes with npm installed, but npm gets updated more frequently then
Node. So just to make sure, you have latest version.
npm install -g grunt-cli
The grunt command line interface. -g is for globally, we will have access to the
grunt command anywhere on your system.
Goals for next
presentation
1. How to implement all these in a project.
2. Explaining grunt, npm and sass with live example.
3. Code structure for english and arabic, how to make
things more dynamic.

More Related Content

PPTX
Sass is dead
Eli McMakin
 
PDF
Postcss brewbox slides
Michele Mazzucco
 
PDF
PostCSS - process CSS in a modular way.
Andreas Sahle
 
PPTX
Post css - Getting start with PostCSS
Neha Sharma
 
PDF
Introduction of webpack 4
Vijay Shukla
 
PPTX
Syntactically Awesome Stylesheet - A workshop by Citytech Software
Ritwik Das
 
PDF
Modernizing Your WordPress Workflow with Grunt & Bower
Alan Crissey
 
PPTX
WordPress + NGINX Best Practices with EasyEngine
NGINX, Inc.
 
Sass is dead
Eli McMakin
 
Postcss brewbox slides
Michele Mazzucco
 
PostCSS - process CSS in a modular way.
Andreas Sahle
 
Post css - Getting start with PostCSS
Neha Sharma
 
Introduction of webpack 4
Vijay Shukla
 
Syntactically Awesome Stylesheet - A workshop by Citytech Software
Ritwik Das
 
Modernizing Your WordPress Workflow with Grunt & Bower
Alan Crissey
 
WordPress + NGINX Best Practices with EasyEngine
NGINX, Inc.
 

What's hot (20)

PDF
The Advantages of Using SASS and Gulp
Andrew Stitt, MBA
 
PDF
Compass VS Less
Sarah Hick
 
PPTX
Introduction to using Grunt & Bower with WordPress theme development
James Bundey
 
KEY
WordPress Bootcamp Quiz
Metronet
 
PDF
Next.js in production by Jasdeep Lalli
React London 2017
 
PDF
Universal React apps in Next.js
🐕 Łukasz Ostrowski
 
PPTX
An Overview on Nuxt.js
Squash Apps Pvt Ltd
 
PDF
Postgres Open
Ines Sombra
 
PDF
WordPress and The Command Line
Kelly Dwan
 
PPT
How to Contribute Code to MySQL?
Thava Alagu
 
PPTX
DotNet MVC and webpack + Babel + react
Chen-Tien Tsai
 
PDF
Adobe Source 2016 - Styleguides and AEM
Michael Leroy
 
PPTX
An Introduction to hapi.js
Dave Stevens
 
PDF
MySQL for Beginners - part 1
Ivan Zoratti
 
PDF
Nuxt로 사내서비스 구현하면서 얻은 경험 공유
민환 조
 
PPTX
Sass installation
Vinita Swamy
 
PDF
Webpack & React Performance in 16+ Steps
Grgur Grisogono
 
PPTX
Building an API in Node with HapiJS
Loc Nguyen
 
PDF
Getting Started With Grunt for WordPress Development
David Bisset
 
PDF
ReactJS Workflows
Cem Arguvanlı
 
The Advantages of Using SASS and Gulp
Andrew Stitt, MBA
 
Compass VS Less
Sarah Hick
 
Introduction to using Grunt & Bower with WordPress theme development
James Bundey
 
WordPress Bootcamp Quiz
Metronet
 
Next.js in production by Jasdeep Lalli
React London 2017
 
Universal React apps in Next.js
🐕 Łukasz Ostrowski
 
An Overview on Nuxt.js
Squash Apps Pvt Ltd
 
Postgres Open
Ines Sombra
 
WordPress and The Command Line
Kelly Dwan
 
How to Contribute Code to MySQL?
Thava Alagu
 
DotNet MVC and webpack + Babel + react
Chen-Tien Tsai
 
Adobe Source 2016 - Styleguides and AEM
Michael Leroy
 
An Introduction to hapi.js
Dave Stevens
 
MySQL for Beginners - part 1
Ivan Zoratti
 
Nuxt로 사내서비스 구현하면서 얻은 경험 공유
민환 조
 
Sass installation
Vinita Swamy
 
Webpack & React Performance in 16+ Steps
Grgur Grisogono
 
Building an API in Node with HapiJS
Loc Nguyen
 
Getting Started With Grunt for WordPress Development
David Bisset
 
ReactJS Workflows
Cem Arguvanlı
 
Ad

Viewers also liked (20)

PDF
Designing for experiences in education barcamp
Jasmeet Sethi
 
PDF
State of the Sass - The Mixin (November 2016)
Kaelig Deloumeau-Prigent
 
PDF
Introduction to node.js, npm and grunt
Jaecheol Lee
 
PDF
Compass, Sass, and the Enlightened CSS Developer
Wynn Netherland
 
PDF
Front-end development automation with Grunt
benko
 
PDF
Getting Started with Sass & Compass
Rob Davarnia
 
PDF
Intro to Sass for WordPress Developers
Suzette Franck
 
PDF
Preprocessor presentation
Mario Noble
 
PDF
Improve PowerShell reporting using SharePoint lists for results
Frank Daske
 
PDF
Sassy! Stylesheets with SCSS by Kathryn Rotondo
Codemotion
 
PDF
Task Automatisierung mit Grunt.js
3rfan
 
PDF
Bootstrap Workout 2015
Rob Davarnia
 
PPTX
SASS - CSS with Superpower
Kanchha kaji Prajapati
 
PPTX
Improving Workflows With Grunt.js - Big D Design 2014 - Dallas Texas
Preston McCauley
 
PPTX
Introduction to SASS
Jon Dean
 
PPTX
Grunt - The JavaScript Task Runner
Mohammed Arif
 
PDF
Sass - Getting Started with Sass!
Eric Sembrat
 
PDF
Professional Front End Development
nelsonmenezes
 
PDF
Sassy Stylesheets with SCSS
Kathryn Rotondo
 
PPTX
Front-end development introduction (HTML, CSS). Part 1
Oleksii Prohonnyi
 
Designing for experiences in education barcamp
Jasmeet Sethi
 
State of the Sass - The Mixin (November 2016)
Kaelig Deloumeau-Prigent
 
Introduction to node.js, npm and grunt
Jaecheol Lee
 
Compass, Sass, and the Enlightened CSS Developer
Wynn Netherland
 
Front-end development automation with Grunt
benko
 
Getting Started with Sass & Compass
Rob Davarnia
 
Intro to Sass for WordPress Developers
Suzette Franck
 
Preprocessor presentation
Mario Noble
 
Improve PowerShell reporting using SharePoint lists for results
Frank Daske
 
Sassy! Stylesheets with SCSS by Kathryn Rotondo
Codemotion
 
Task Automatisierung mit Grunt.js
3rfan
 
Bootstrap Workout 2015
Rob Davarnia
 
SASS - CSS with Superpower
Kanchha kaji Prajapati
 
Improving Workflows With Grunt.js - Big D Design 2014 - Dallas Texas
Preston McCauley
 
Introduction to SASS
Jon Dean
 
Grunt - The JavaScript Task Runner
Mohammed Arif
 
Sass - Getting Started with Sass!
Eric Sembrat
 
Professional Front End Development
nelsonmenezes
 
Sassy Stylesheets with SCSS
Kathryn Rotondo
 
Front-end development introduction (HTML, CSS). Part 1
Oleksii Prohonnyi
 
Ad

Similar to Introducing grunt, npm and sass (20)

PPTX
Bliblidotcom - SASS Introduction
Irfan Maulana
 
PPT
UNIT 3.ppt
kavi806657
 
PPTX
Syntactically awesome stylesheets (Sass)
Tahmina Khatoon
 
PDF
Less(CSS Pre Processor) Introduction
rushi7567
 
PDF
LESS(CSS Pre Processor) introduction
rushi7567
 
PDF
SASS, Compass, Gulp, Greensock
Marco Pinheiro
 
PPTX
Sass: Introduction
BalaKrishna Kolliboina
 
PPTX
Sass:-Syntactically Awesome Stylesheet by Shafeeq
DignitasDigital1
 
PDF
Create SASSy web parts in SPFx
Stefan Bauer
 
PDF
[Bauer] SASSy web parts with SPFX
European Collaboration Summit
 
PDF
Dallas Drupal Days 2012 - Introduction to less sass-compass
c l
 
PPTX
Sass_Cubet seminar
Cubet Techno Labs
 
PDF
Create SASSY Web Parts - SPSMilan
Stefan Bauer
 
PDF
Fasten RWD Development with Sass
Sven Wolfermann
 
PPTX
SCSS Implementation
Amey Parab
 
DOCX
css-tools
Desarae Veit
 
PPT
An Introduction to CSS Preprocessors (SASS & LESS)
Folio3 Software
 
KEY
Authoring Stylesheets with Compass & Sass
chriseppstein
 
PPTX
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
Stefan Bauer
 
Bliblidotcom - SASS Introduction
Irfan Maulana
 
UNIT 3.ppt
kavi806657
 
Syntactically awesome stylesheets (Sass)
Tahmina Khatoon
 
Less(CSS Pre Processor) Introduction
rushi7567
 
LESS(CSS Pre Processor) introduction
rushi7567
 
SASS, Compass, Gulp, Greensock
Marco Pinheiro
 
Sass: Introduction
BalaKrishna Kolliboina
 
Sass:-Syntactically Awesome Stylesheet by Shafeeq
DignitasDigital1
 
Create SASSy web parts in SPFx
Stefan Bauer
 
[Bauer] SASSy web parts with SPFX
European Collaboration Summit
 
Dallas Drupal Days 2012 - Introduction to less sass-compass
c l
 
Sass_Cubet seminar
Cubet Techno Labs
 
Create SASSY Web Parts - SPSMilan
Stefan Bauer
 
Fasten RWD Development with Sass
Sven Wolfermann
 
SCSS Implementation
Amey Parab
 
css-tools
Desarae Veit
 
An Introduction to CSS Preprocessors (SASS & LESS)
Folio3 Software
 
Authoring Stylesheets with Compass & Sass
chriseppstein
 
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
Stefan Bauer
 

Recently uploaded (20)

PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
Doc9.....................................
SofiaCollazos
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
The Future of Artificial Intelligence (AI)
Mukul
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Doc9.....................................
SofiaCollazos
 

Introducing grunt, npm and sass