1.0.2 • Published 5 years ago

cbscroll-top v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

šŸŽ‰ Demo

šŸ“š Documentation

🌐 Description

šŸ“¦ Installation

// To install using npm
npm install sass-colors -S

// To install using yarn
yarn add sass-colors

ā–¶ļø Getting started

// If you use nodejs, reactjs, vuejs or angular
@import "node_modules/sass-colors/src/colors.scss";

// You can also download it directly and import the file colors.scss, as follows
@import "src/colors.scss";

// usage: color("name_of_color", "type_of_color")
// to avoid to repeating map-get($colors, ...)
@import "src/colors.scss";

body {
  // First parameter receives the name of the main color, and as a second parameter requires the name of the secondary color

  // usage: color("name_of_color", "type_of_color")
  // to avoid to repeating map-get($colors, ...)
  background: color("red", "base");
}
.button {
  background: color("blue", "accent-1");
  color: white;
  border: 1px solid color("blue", "darken-1");
}
// I will explain more clearly!
// First we import this color map for this example.

/**
| Main Color | Color value |
**/
$deep-red: (
  "base":       #e51c23,
  "lighten-5":  #fdeaeb,
  "lighten-4":  #f8c1c3,
  "lighten-3":  #f3989b,
  "lighten-2":  #ee6e73,
  "lighten-1":  #ea454b,
  "darken-1":   #d0181e,
  "darken-2":   #b9151b,
  "darken-3":   #a21318,
  "darken-4":   #8b1014,
);
// When you execute the function that requires two parameters
/**
color($primary-color, $secondary-color)
**/

šŸŽØ Colors

N°NameLightenDarkenAccent
1deep-redāœ”ļøāœ”ļøāŒ
2redāœ”ļøāœ”ļøāœ”ļø
3pinkāœ”ļøāœ”ļøāœ”ļø
4purpleāœ”ļøāœ”ļøāœ”ļø
5deep-purpleāœ”ļøāœ”ļøāœ”ļø
6indigoāœ”ļøāœ”ļøāœ”ļø
7blueāœ”ļøāœ”ļøāœ”ļø
8light-blueāœ”ļøāœ”ļøāœ”ļø
9cyanāœ”ļøāœ”ļøāœ”ļø
10tealāœ”ļøāœ”ļøāœ”ļø
11greenāœ”ļøāœ”ļøāœ”ļø
12light-greenāœ”ļøāœ”ļøāœ”ļø
13limeāœ”ļøāœ”ļøāœ”ļø
15yellowāœ”ļøāœ”ļøāœ”ļø
16amberāœ”ļøāœ”ļøāœ”ļø
17orangeāœ”ļøāœ”ļøāœ”ļø
18deep-orangeāœ”ļøāœ”ļøāœ”ļø
19brownāœ”ļøāœ”ļøāŒ
20blue-greyāœ”ļøāœ”ļøāŒ
21greyāœ”ļøāœ”ļøāŒ

šŸŽØ Shades

N°NameLigthenDarkenAccent
22blackāŒāŒāŒ
23whiteāŒāŒāŒ
24transparentāŒāŒāŒ

⭐ Support for

Sass-colors is an open source project licensed by MIT. You can grow thanks to the sponsors and the support of the amazing sponsors. If you want to join them, contact me here.

šŸŽ© Stay in touch

This project follows the all-contributors specification. Contributions of any kind welcome!

šŸ“œ License

Sass-colors is MIT licensed.