1.0.6 • Published 10 months ago

@mrcaktuz/sass-boilerplate v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Sass Boilerplate

This is a boilerplate for you sass project. It contains basics mixins, variables and normalization to enable you to start from a strong and healthy base. The goal is to help you start and not holding you back, please make it your own and customize it as much as you want.

How to use

From the folder you want to add you SASS project run this command to create the boilerplate files.

npx @mrcaktuz/sass-boilerplate

Once done, I strongly recommend you to change things around and make it you own.

What's in this boilerplate

First the normalize from Normalize.css v8.0.1

Then some more custom resets in the global.scss file.

The rest are some basics variables & mixins useful to start a project. You will be able to use all of them in your project by simply importing the variables.scss file into any SASS file you need to use these variables.

Base font size

The base font size is gracefully reset to 10px for an easier use or rem but keep the accessibility for users that changed their browser preferences.

It's then set to 1.6rem on the body to have a default font size of 16px as usual.

Color theme setup

Colors variables and mixin are setup to enable the use of dark and light theme with the use of the attribute data-theme on your <html> tag or the user prefers-color-scheme from the browser. In case you don't want this feature feel free to set a value directly in the $color-themes list instead of a map like so :

$color-themes: (
  'white': $c-white,
  'dark': $c-black,
)

What else ?

Dig around, explore and edit everything this is your own now.

Links

1.0.6

10 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago