Skip to content

Simple LESS mixin for creating CSS color and background-color classes.

License

Notifications You must be signed in to change notification settings

CuddleBunny/less-color-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

less-color-helper

Simple LESS mixin for creating CSS color and background-color classes.

Usage:

.color-helper(white, white);

.color-helper(black, #000);

@myColor: #123456;
.color-helper(my-color, @myColor);

CSS Output:

.white-color {
  color: #fff !important
}

.white-background {
  background-color: #fff !important
}

.black-color {
  color: #000 !important
}

.black-background {
  background-color: #000 !important
}

.my-color-color {
  color: #123456 !important
}

.my-color-background {
  background-color: #123456 !important
}

About

Simple LESS mixin for creating CSS color and background-color classes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages