Skip to content

v1.6.7 - #163

Merged
tbela99 merged 13 commits into
masterfrom
v.next
Oct 12, 2026
Merged

v1.6.7#163
tbela99 merged 13 commits into
masterfrom
v.next

Conversation

@tbela99

@tbela99 tbela99 commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

v1.6.7

  • limit the amount of memory used when parsing large files
  • use node flags as bitmasks
  • fix powerless and missing components handling with color-mix(). missing and powerless colors are now carried forwarded
const css = `

    button {
    
color: color-mix(in hsl, hwb(none none none), hsl(11 33 44));
color: color-mix(in hsl, lch(none none 180), hsl(11 33 44));
color: color-mix(in srgb, white, black);
color: color-mix(in oklch, oklch(0.783 0.108 326.5 / 0.5), oklch(0.392 0.4 0 / none));

    color: color-mix(in srgb, color(display-p3 none none none), color(srgb 0.11 0.33 0.44));
color: color-mix(in oklch, oklch(78.3% 0.108 326.5), oklch(39.2% 0.4 none)) ;

}
`;

const result =  transformSync({input: css, 
  beautify: true, 
  inlineCssVariables: true,
  removeDuplicateDeclarations: false,
  convertColor: ColorType.SRGB
});
// console.debug(result);
console.debug(result.code);

should produce

button {
 color: color(srgb .78255 .272052 .15745);
 color: color(srgb .5852 .32384 .2948);
 color: color(srgb .5 .5 .5);
 color: color(srgb .843871 -.026576 .636173/50%);
 color: color(srgb .11 .33 .44);
 color: color(srgb .764947 .131643 .788822)
}

@tbela99 tbela99 added this to the v1.6.7 milestone Oct 12, 2026
@tbela99 tbela99 linked an issue Oct 12, 2026 that may be closed by this pull request
5 tasks done
@tbela99
tbela99 merged commit 2680245 into master Oct 12, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v1.6.7

1 participant