2018-Ongoing
Goals
  • Make reusable SCSS components and mixins
  • Make a minimal starter framework that can apply to small and medium sized projects
  • Define linting, spacing, and variable name conventions for consistency

Project Overview

Basic SCSS starter is exactly what it sounds like, a basic way to get started with SCSS. Getting started from scratch is easy enough, but I found myself re-using similar folder structures and mixins over and over again. That’s where this project comes in. This starter aims to create a small framework, without being opinionated on styling. It’s really more of a variable, mixin, and folder structure I use to establish consistency across small to medium sized projects.

Process

The process for starting this was out of necessity. I found myself re-writing the same gulp file for compiling SCSS and auto-prefixing, so why not just create that same file and commit it to GitHub? Now all I had to do was git clone and I was all good.

From there, I also started adding in common variable elements, such as responsive breakpoints, spacing elements, and so on. I also found it helpful to create responsive spacer elements and flex-box classes. Since I reused the same framework across many projects, I started becoming familiar with the helper classes/structure. This allowed me to get up and running quickly for future projects.

Technologies Used

Gulp and compilation

Nowadays, the stacks I use already have their own build process, so I usually only need the SCSS folder. Though, if I ever need to run my own build, the gulp file allows for ES6/babel, file splitting, auto-prefixing, and a few more goodies. The libraries used for this can be found in the ‘gulpfile.js’ file on the repo.

Other than the gulpfile, this framework is as simple as possible, and utilizes typical SCSS functions such as mixins, extends, and variables.

Want to check out some code demos?

Check out code samples written in JavaScript, React, Node, and more

Demo 1
Defining Reusable Column Extends with SCSS

Quick Note: The atSmall type mixins are just basic media queries. Since these kinds of layouts are common, they also need to be overwritable if I want to change the spacing. Generally, the ‘default’ spacing is defined in the extend/mixins. Example Use Cases To get the layout working, you only need a container class and […]

Demo 2
Discord Bot: Reddit API Ask Feature

The Purpose Some Discord bots have a feature where you can “chat” with the bot(i.e: Cleverbot integrations). I decided to take a spin on this concept and utilize the Reddit API to answer common questions. A user from the server asks a question using the b!ask command, then the bot gives a random answer from […]

Demo 3
React.js Modal Using The Hooks API

Modals are a classic piece of application functionality, made even easier with libraries like React. You could go with a library, but you can often make your own with less than 100 lines of code. Using the hooks API, you don’t even need a class based approach. This example is going full functional! Defining The […]

Need something? Let's get in touch