Skip to content

Commit

Permalink
fix(theme): support 0 opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard committed Dec 7, 2023
1 parent 780ee0b commit ce9929e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/theme/_internal/build/helpers.ts
Expand Up @@ -44,7 +44,7 @@ export function multiply(bg: string, fg: string): string {
const s = parseColor(fg)
const hex = rgbToHex(_multiply(b, s))

if (s.a) {
if (s.a !== undefined) {
return rgba(hex, s.a)
}

Expand All @@ -56,7 +56,7 @@ export function screen(bg: string, fg: string): string {
const s = parseColor(fg)
const hex = rgbToHex(_screen(b, s))

if (s.a) {
if (s.a !== undefined) {
return rgba(hex, s.a)
}

Expand Down

0 comments on commit ce9929e

Please sign in to comment.