robence / sass-demo

Presentation showing benefits of SCSS over CSS by example

Home Page:https://robence.github.io/sass-demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project's aim is to give an insight into styling web-applictions more comfortably and with ease.

Recommended Steps

Download repository

git clone git@github.com:robence/sass-demo.git

Enter directory and run these commands in your terminal

npm install

Installs dependencies

npm start

Runs the app in the development mode.

Branches

There are multiple branches on this project.

the following roadmap is a key not only to understand what SCSS does, but also to catch the point why it is helpful.

The strategy for a better comprehension is to view each branch and compare it with the previous one to see what changes have been made.

styled-via-css

This is the starting point. Application layout and style is implemented here via CSS.

#1-variables

Scss variables were added to reduce code duplication and help maintanence of existing code.

#2-nesting

Nested css selectors provide a better understanding of layout structure without having to view html code. Also reduces long selector tags without changing their meaning.

#3-mixins

Mixins are identified as functions, with them code reusability is a piece of cake!

#4-inheritance

Extending pre-defined style rules allows to describe the ui before writing any html. Buttons, fonts, colors and spacing common across components don't have to be duplicated any more.

#5-extras

Scss helps us finding better shades and colors via darken() and lighten() functions. Now you won't have to spend time browsing and looking for similar colors you have but with minor difference.

styled-via-css - previous updates were merged onto this branch and master too.
master - deployed version

About

Presentation showing benefits of SCSS over CSS by example

https://robence.github.io/sass-demo/


Languages

Language:JavaScript 60.6%Language:CSS 22.4%Language:HTML 17.0%