@misterzik/colores
v1.2.0
Published
Color.es is a tiny SCSS library converted to CSS.
Downloads
3
Maintainers
Readme
Color.es
Colores also known as Color.es
Color.es is a tiny bit CSS library fueled with SCSS on the back.
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:
- Include the
css
files located in thedist
folder on your root folder. - Include this new files on your
index.html
.
<link rel="stylesheet" href="color.es.min.css">
- 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 Name | Color Name | Extra Option | | ------------|:-------------:| -----------------:| | colores | yellow | light,dark,darker | | colores | blue | light,dark,darker | | colores | red | light,dark,darker | | colores | pink | light,dark,darker | | colores | orange | light,dark,darker | | colores | mz-orange | light,dark,darker | | colores | purple | light,dark,darker | | colores | cyan | light,dark,darker | | colores | grey | light,dark,darker | | colores | brown | light,dark,darker | | colores | green | light,dark,darker |