refactor(themes): improve color patch resolver logic
skip assign opacity if equals 1
This commit is contained in:
parent
e141a62dd0
commit
c7e4495e05
1 changed files with 1 additions and 0 deletions
|
|
@ -54,6 +54,7 @@ export default function patchDefinitionAndResolver() {
|
|||
}
|
||||
|
||||
if (semanticDef?.value) {
|
||||
if (semanticDef.opacity === 1) return semanticDef.value;
|
||||
return chroma(semanticDef.value).alpha(semanticDef.opacity).hex();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue