包详细信息

random-a11y-combo-tachyons

WIP: give a tachyons color, get a random, tachyons, accessible contrast color in return

tachyons, a11y, random color

自述文件

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