Open abensur opened 11 months ago
Hi, thanks for this preset!
This daisy's toggle propertie
box-shadow: calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset, calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset, 0 0 0 2px var(--tglbg) inset
is being replaced with
box-shadow: calc(var(--handleoffset), 2) 0 0 2px var(--tglbg) inset, calc(var(--handleoffset), -2) 0 0 2px var(--tglbg) inset, 0 0 0 2px var(--tglbg) inset
I've tried changing your replaceSlash function and it worked:
// var(--foo) / 0.1 -> var(--foo) const replaceSlash = (css: string) => css.replace(/\) \/ /g, '), ')
into
// var(--foo) / 0.1 -> var(--foo), 0.1 // but not calc(var(--foo) / 0.1) const replaceSlash = (css: string) => css.replace(/(?<!calc\([^)]*)\) \/ (?![^(]*\))/g, '), ');
Hi, thanks for this preset!
This daisy's toggle propertie
is being replaced with
I've tried changing your replaceSlash function and it worked:
into