SCSS-lib is my custom SASS library, originally created for personal use but freely available for anyone to use.
It was rebuilt and organized from my previous code to be modular, flexible, and easy to modify.
In the future, I plan to build my own UI components based on this library.
To modify values such as measurements, colors, fonts, breakpoints etc:
- Open:
scss-lib/core/_variables.scss - Edit the lists according to your needs.
Note: Changing values in these lists will affect the entire library.
- Find css color.
- Open
scss-lib/core/_variables.scss. - Add color as described below to
colorslist.
Each font entry requires the following fields:
- name – The font name used to reference it in the library.
- color – Color you choosed (hex, rgb, etc).
Note: Good site for colors
https://colorpalettes.net.
name: color,Note: This section is intended for adding local fonts / custom fonts.
- Download custom font.
- Add font files to your project.
- Open
scss-lib/core/_variables.scss. - Add custom font as described below to
fonts-customlist.
Each font entry requires the following fields:
- name – The font name used to reference it in the library.
- dest – Path to the font file (including the file extension)
- format – Font format (
truetype,opentype, etc.)
Note: Good site for fonts
https://www.1001fonts.com.
(name: 'name', dest: 'path/to/font-file', format: 'file-format'),Note: This section is intended for adding built-in font.
- Find css font.
- Open
scss-lib/core/_variables.scss. - Add font as described below to
fontslist.
Each font entry requires the following fields:
- name – The font name used to reference it in the library.
- font - Existing font in css.
(name: font),Note: This section is intended for adding local images.
- Download custom image.
- Add image file to your project.
- Open
scss-lib/core/_variables.scss. - Add image as described below to
imageslist.
Each image entry requires the following fields:
- name – The font name used to reference it in the library.
- path – Path to the font file (including the file extension)
name: url('path/to/image'),- Install SASS in to your project.
- Download folder
scss-lib. - Link
scss-lib.scssfile in your project.
or instead of downloading lib manually, use next phrase in terminal:
npm install git+https://github.com/Glon8/SCSS-Lib.gitDONE!