Skip to content

juytter/commoncolors.css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Commoncolors.css

A simple, lightweight CSS color palette at your fingertips. https://juytter.github.io/commoncolors.css

  • Lightweight. Limited to 10 'common' colors * 3 shades.
  • Intuitive. Easily memorable.
  • At your fingertips. Ready-to-use css variables and class helpers.

Usage

Color names

10 colors compose the color scheme : red orange yellow green cyan blue violet magenta pink gray , plus, black & white and 4 Shades of lightness adding a suffix from 1 to 4 (the lightest to darkest) to a color name, where a suffix -3 is equal to the color name (without suffix).

 red or red-3, red-1, red-2, red-4, ...

Vars

import commoncolors--vars.css.

@import 'commoncolors--vars.css';
.warning {
  color : var(--red);
  background-color:  var(--red-p);
}

Libs

commoncolors-lib.css (minified) is a library of class helpers to color texts, backgrounds and borders. Use .colorname class for texts, .bg-colorname for backgrounds, .bd-colorname for borders.

Example

<div class="red bd-red bg-red-2">warning</div>

Individuals files

gray.css, red.css, yellow.css, orange.css, green.css, cyan.css, blue.css, violet.css, magenta.css, pink.css.

Build / hack

About 'common' colors


MIT (c) 2019 juytter. License

About

🌈 A lightweight CSS color palette at your fingertips

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published