1.2.0 • Published 4 years ago

@misterzik/colores v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

alt text

Color.es


Colores also known as Color.es

Color.es is a tiny bit CSS library fueled with SCSS on the back.

alt text

Installation

  • Download ZIP or Clone Project
  • Bower bower install colores

Usage

Color.es comes with a built-in demo, Please refer to folder /public. If you would like to skip the demo, all you have to do is:

  1. Include the css files located in the dist folder on your root folder.
  2. Include this new files on your index.html.
<link rel="stylesheet" href="color.es.min.css">
  1. Use the Class name colores to get the classes style properly place on your DOM, follow up with the color from the default palette.

Example ) For this example, I am going to use the color yellow in default/primary color.

colores yellow - This will change the color of the container or background.

How About RED?

Pretty Simple, same idea behind, start by specifying the class name colores follow by the color red

<div class="colores red"> IS MY BG RED? </div>

W00t! w00t!, Sweet, but how about if i want to change the text color,

It's okay, we got ya all cover, now since we only want the text color to change instead of the background color we are going to replace the class name colores for txt-cls follow by the color

txt-cls yellow

HTML:

<div class="colores yellow">
  This is a Yellow Box
</div>
<span class="txt-cls yellow">
  This is a Yellow Text
</span>
Put it together:
<div class="colores yellow">
  This is a Yellow Box
  This is a <span class="txt-cls yellow-dark">Dark Yellow</span> Text
</div>
Colores Variations:

Use the proper class to change the style desired txt-cls or colores yellow

Asides from that we have also included three tones asides from library primary tone in order to use it you just have to specify the tone, if left blank the tone will go instantly to primary, you have three options light, dark, and darker depending on the option you will get the right property, per example.

colores yellow = Default Tone
colores yellow-light = Lighter tone from Default 
colores yellow-dark = Dark tone from Default
colores yellow-darker =  Darker tone from Dark Tone

Default Color Palette

Class NameColor NameExtra Option
coloresyellowlight,dark,darker
coloresbluelight,dark,darker
coloresredlight,dark,darker
colorespinklight,dark,darker
coloresorangelight,dark,darker
coloresmz-orangelight,dark,darker
colorespurplelight,dark,darker
colorescyanlight,dark,darker
coloresgreylight,dark,darker
coloresbrownlight,dark,darker
coloresgreenlight,dark,darker