Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 646 Bytes

README.md

File metadata and controls

39 lines (32 loc) · 646 Bytes

PostCSS Carnival Build Status

PostCSS plugin Randomize all colors in your CSS.

.foo {
  color: red;
}
.bar {
  color: #FFFFFF;
}
.xyz {
  color: rgba(255, 255, 255, 0.5);
}
.foo {
  color: rgb(RANDOM, RANDOM, RANDOM);
}
.bar {
  color: rgb(RANDOM, RANDOM, RANDOM);
}
.xyz {
  color: rgb(RANDOM, RANDOM, RANDOM);
}

Usage

postcss([ require('postcss-carnival') ])

See PostCSS docs for examples for your environment.