【文件属性】:
文件名称:a11ycolor::rainbow:生成最近的可访问颜色
文件大小:58KB
文件格式:ZIP
更新时间:2021-02-03 19:00:34
javascript npm color accessibility a11y
:rainbow: A11yColor
生成最近的可访问颜色。
安装
$ npm install a11ycolor
用法
const a11yColor = require ( 'a11ycolor' ) ;
a11yColor ( red , blue ) ; // This returns #FFA3A3
参量
函数a11yColor函数采用三个参数:
a11yColor ( $toMakeA11y , $background , ( $ratioKey = 'small' ) ) ;
toMakeA11y在背景上可访问的颜色
background -用于对比的背景色
ratioKey -WCAG
【文件预览】:
a11ycolor-main
----index.js(3KB)
----test.js(2KB)
----package.json(1KB)
----readme.md(1KB)
----.github()
--------workflows()
----LICENSE(1KB)
----package-lock.json(203KB)
----.gitignore(23B)