proper color fallbacks
This commit is contained in:
parent
eeb2dbcb60
commit
1ec1ba8d3e
4 changed files with 39 additions and 7 deletions
|
|
@ -62,7 +62,7 @@ const findShadow = (shadows, { dynamicVars, staticVars }) => {
|
|||
})
|
||||
}
|
||||
|
||||
const findColor = (color, { dynamicVars, staticVars }) => {
|
||||
export const findColor = (color, { dynamicVars, staticVars }) => {
|
||||
if (typeof color !== 'string' || (!color.startsWith('--') && !color.startsWith('$'))) return color
|
||||
let targetColor = null
|
||||
if (color.startsWith('--')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue