npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

rad-colorizer

v0.0.1

Published

rad-colorizer is a Reveal.js RadReveal add-on that adds foreground and background colors to your slides.

Downloads

11

Readme

#rad-colorizer Build Status rad-colorizer is a Reveal.js RadReveal add-on for automatically adding background and foreground colors to your slides.

Check out the demo slideshow to see what rad-colorizer can do.

Check out RadReveal to understand how these add-ons work.

##What does rad-colorizer do?

rad-colorizer can add varying background and foreground colors to your slides.
Colors make your slide show more fun and visually interesting. You can choose which colors to use or you can have them automatically selected randomly.

##How do you use it?

First you'll need to add RadReveal to your slideshow.

Then you will need to intall the rad-colorizer script:

cd <the root of your slideshow directory>
npm install rad-colorizer

Then you will need to load the rad-colorizer script as a Reveal.js dependency:

Reveal.initialize({
  ...normal Reveal configuration goes here
  dependencies: [
    { src: 'node_modules/rad-colorizer/build/colorizer.js', radName: 'colorizer' }
    ...other dependencies go here
  ]
});

var RadReveal = require('rad-reveal');
RadReveal.initialize();

Finally, add a data-rad-colorizer attribute to any slide.
Those slides will have a randomly selected background and foreground color assigned.
The colors will change every time you reload the slideshow.

##What if you don't want colors changing every reload?

You can add the rad-randomizer add-on to your slideshow and use that to get random seeming color combinations for each slide. But this randomizer can be seeded using the slide contents, so the color selection won't change from reload to reload.
Just add the data-rad-randomizer attribute to each slide and set it according to the way you want the randomizer to be seeded; the colors will then be chosen using that seed every reload.

##What if you want to use a specific background or foreground?

Just add an attribute data-rad-colorizer-background and/or data-rad-colorizer-foreground and set it to the name of the color you want.

##What if you want to use a different color palette?

rad-colorizer ships with several built-in palettes. Add the data-rad-colorizer-pallete attribute to a slide and set it to one of the available palettes. That palette will continue to be used for slides that follow.

You can also specify that all slides use a particular palette from the start of the slideshow by setting radConfig.palette to the name of the palette you want when you load the script as a dependency:

{ src: 'node_modules/rad-colorizer/build/colorizer.js', radName: 'colorizer', 
  radConfig: {
    palette: 'crayons'
  } 
}

Or, you can define your own palette to use by setting radConfig.palette to a palette object:

...
{ src: 'node_modules/rad-colorizer/build/colorizer.js', radName: 'colorizer', 
  radConfig: {
    palette: { 
      name: 'dim',
      colors: { red: '#b00', blue: '#00b', green: '#0b0', cyan: '#088' },
      dontPair: { green: { cyan: 1 }, blue: { cyan: 1 }, cyan: { green: 1, blue: 1 } }
    }
  } 
}
...

Palette objects have these properties:

name: string, optional property, the name of the palette. If left out, defaults to "custom".

colors: object, required property, a map of color names to hex values or to an allowed CSS color keyword.

dontPair: object, optional property, a map with color names as keys, and values being maps of color names set to truthy values. This is used to specify combinations of colors that should not be put together.

Finally, you can provide multiple palettes by setting radConfig.palettes. This property should be set to a map of palette names to palette objects. For example:

  ...
  { src: 'node_modules/rad-colorizer/build/colorizer.js', radName: 'colorizer', 
    radConfig: {
      palettes: {
        dim: { 
          colors: { red: '#b00', blue: '#00b', green: '#0b0', cyan: '#088' },
          dontPair: { green: { cyan: 1 }, blue: { cyan: 1 }, cyan: { green: 1, blue: 1 } }
        },
        light: { 
          colors: { red: '#f66', blue: '#66f', green: '#6f6', cyan: '#6bb' },
          dontPair: { green: { cyan: 1 }, blue: { cyan: 1 }, cyan: { green: 1, blue: 1 } }
        }
      }
    } 
  }
  ...

Note that the palette name will be set to the name of the key that was used for it in radConfig.palettes.