Skip to content

Commit

Permalink
Fix mixed values with variables and numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderby committed May 7, 2024
1 parent d133122 commit 0b858e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inject/dynamic-theme/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ function isVarDependant(value: string) {
function isConstructedColorVar(value: string) {
return (
value.match(/^\s*(rgb|hsl)a?\(/) ||
value.match(/^var\([\-_A-Za-z0-9]+\),?\s*var\([\-_A-Za-z0-9]+\),?\s*var\([\-_A-Za-z0-9]+\)$/)
value.match(/^(\d{1,3}|(var\([\-_A-Za-z0-9]+\)),?\s*){3}$/)
);
}

Expand Down

0 comments on commit 0b858e6

Please sign in to comment.