Skip to content

Glon8/SCSS-Lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCSS-lib

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.

Customization

To modify values such as measurements, colors, fonts, breakpoints etc:

  1. Open:
    scss-lib/core/_variables.scss
  2. Edit the lists according to your needs.

Note: Changing values in these lists will affect the entire library.

Colors Guide

  1. Find css color.
  2. Open scss-lib/core/_variables.scss.
  3. Add color as described below to colors list.

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.

Example:

name: color,

Fonts Guide

Custom Font

Note: This section is intended for adding local fonts / custom fonts.

  1. Download custom font.
  2. Add font files to your project.
  3. Open scss-lib/core/_variables.scss.
  4. Add custom font as described below to fonts-custom list.

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.

Example

(name: 'name', dest: 'path/to/font-file', format: 'file-format'),

Built-in Font

Note: This section is intended for adding built-in font.

  1. Find css font.
  2. Open scss-lib/core/_variables.scss.
  3. Add font as described below to fonts list.

Each font entry requires the following fields:

  • name – The font name used to reference it in the library.
  • font - Existing font in css.

Example

(name: font),

Images Guide

Note: This section is intended for adding local images.

  1. Download custom image.
  2. Add image file to your project.
  3. Open scss-lib/core/_variables.scss.
  4. Add image as described below to images list.

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)

Example

name: url('path/to/image'),

Installation:

  1. Install SASS in to your project.
  2. Download folder scss-lib.
  3. Link scss-lib.scss file in your project.

or instead of downloading lib manually, use next phrase in terminal:

npm install git+https://github.com/Glon8/SCSS-Lib.git

DONE!

About

SCSS-lib is a modular SASS library rebuilt and organized from my previous styling code to improve structure and maintainability. It is designed to be flexible and easy to modify, allowing developers to adapt variables, utilities, and styles to their own projects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages