mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Don't normalize color names on look up
This commit is contained in:
parent
000eefd609
commit
baeb02ebb7
@ -1,9 +1,5 @@
|
||||
const _ = require('lodash')
|
||||
|
||||
module.exports = function findColor(colors, color) {
|
||||
const colorsNormalized = _.mapKeys(colors, (value, key) => {
|
||||
return _.camelCase(key)
|
||||
})
|
||||
|
||||
return _.get(colorsNormalized, _.camelCase(color), color)
|
||||
return _.get(colors, color, color)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user