Skip to content

Commit

Permalink
feat: add linear-gradient default percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed Apr 28, 2023
1 parent 7422d4d commit 8ecd11f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function bgGradientColorResolver() {
return {
'--un-gradient-from-position': '0%',
'--un-gradient-from': `${colorString} var(--un-gradient-from-position)`,
'--un-gradient-to-position': '100%',
'--un-gradient-to': `${bgGradientToValue(cssColor)} var(--un-gradient-to-position)`,
'--un-gradient-stops': 'var(--un-gradient-from), var(--un-gradient-to)',
}
Expand Down

0 comments on commit 8ecd11f

Please sign in to comment.