Since I needed to dive a little more into CSS to build the new version of my website, I now want to see how CSS frameworks are built and try to build one myself.
I now finished the video tutorial and will adapt and expand the framework just to test things.
I'll build this CSS Framework by following yet another tutorial from TheNetNinja that you can find here (video tutorial) and here (github repo).
Since web browsers don't understand SCSS
directly as they do with CSS
, we have to compile our SCSS
to CSS
.
To do that, in my and the tutorial case, we use the task runner gulp
.
- You have to have
node
installed on your computer. - Go in the project folder and run
npm install
- To run the
gulp
command you have to globally installgulp-cli
, so run the following commandnpm i -g gulp-cli
- Run
gulp
and you should see something like the following image in your terminal.
Now, everytime you'll change something in the index.scss
file, gulp
will compile it to css
so that you can directly check the result in your browser.