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