npm.io
0.1.9 • Published 9 years ago

random-a11y-combo-tachyons

Licence
MIT
Version
0.1.9
Deps
1
Vulns
0
Weekly
0

random-a11y-combo-tachyons

Why?

I had a list of nav items that I wanted to randomly generate colors for and I was using Tachyons in the project. So...

// import (or whatever) `randTach` from 'random-a11y-combo-tachyons'

const randTach = require('random-a11y-combo-tachyons');

// provide a color code:
// NB: color code provided MUST be in `./src/colors.js`

randTach('#111');
// returns: ['near-black', 'washed-blue']

randTach('#111');
// returns: ['near-black', 'washed-green']

randTach('#111');
// returns: ['near-black', 'light-yellow']

Super duper WIP. Assistance appreciated.

This project is inspired by random-a11y

Keywords