postcss-carnival

PostCSS plugin Randomize all colors in your CSS

Usage no npm install needed!

<script type="module">
  import postcssCarnival from 'https://cdn.skypack.dev/postcss-carnival';
</script>

README

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.