random-a11y-combo-tachyons

0.1.9 • Public • Published

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

Package Sidebar

Install

npm i random-a11y-combo-tachyons

Weekly Downloads

1

Version

0.1.9

License

MIT

Last publish

Collaborators

  • corderophilosophy