File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -189,21 +189,9 @@ export function withAlpha(value: string, alpha: string): string {
189189 return value
190190 }
191191
192- // prefix the color-mix function with an internal /* tw:optimize */ comment so that
193- // only this will be optimized later
194192 return `color-mix(in oklab, ${ value } ${ alpha } , transparent)`
195193}
196194
197- export const optimizeCommentPattern = / ^ \s * \/ \* \s * t w : o p t i m i z e \s * \* \/ \s / ;
198-
199- export function containsOptimizeComment ( value : string ) : boolean {
200- return optimizeCommentPattern . test ( value ) ;
201- }
202-
203- export function removeOptimizeComment ( value : string ) : string {
204- return value . replace ( optimizeCommentPattern , '' ) ;
205- }
206-
207195/**
208196 * Apply opacity to a color using `color-mix`.
209197 */
You can’t perform that action at this time.
0 commit comments