0.1.9 • Published 7 years ago
random-a11y-combo-tachyons v0.1.9
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