Skip to content

This e-commerce landing page primarily focuses on demonstrating the implementation of Sass to streamline CSS development.

Notifications You must be signed in to change notification settings

pernillasterner/boilerplate-sass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sass Boilerplate

📖 About the Boilerplate

My goal with this boilerplate is to have everything ready to go when starting a new project, with a structure that is easy to use and enhance.

I've included mixins to handle breakpoints, variables for colors, and functions for media queries to simplify the process of creating responsive and easy-to-maintain styles.

🗂 File Structure

I've organized the files into three categories: globals, layout, and util.

project-root/
│
├── app/
│   ├── js/
│   └── scss/
│       ├── globals/
│       │   ├── _boilerplate.scss
│       │   ├── _typography.scss
│       │   ├── _colors.scss
│       │   ├── _index.scss
|       ├── layout/
│       │   ├── _grid.scss
│       │   ├── _index.scss
|       ├── util/
|       |   ├── _breakpoints.scss
│       │   ├── _fonts.scss
|       |   ├── _functions.scss
│       │   ├── _index.scss
│       └── style.scss
│
├── dist/
│   └── css/
│       ├── style.css
│       └── style.map
│
└── index.html

🚀 Getting Started

📋 Prerequisites

Make sure you have the following installed:

📦 Installation

  1. Clone the repository:

    git clone https://github.com/pernillasterner/boilerplate-sass
    cd boilerplate-sass
    
  2. Install Sass

    npm install -g sass
    
  3. Run Sass

    sass --watch app/scss/style.scss dist/css/style.css
    

🌐 Usage

After setting up the project, you can start editing the Sass files under the app/scss/ directory. The changes will be automatically compiled into the dist/css/style.css file.