UNPKG

286 BJavaScriptView Raw
1const colorValues = require('./colorNames')
2
3let colorObject = {
4 "transparent": "transparent",
5 "current": "currentColor",
6}
7
8for (const [key, item] of Object.entries(colorValues)) {
9 colorObject[key] = `hsla(var(${item}) / var(--tw-bg-opacity, 1))`
10}
11
12module.exports = colorObject