deno
deno copied to clipboard
fmt does not preserve CSS property casing
Input:
@plugin "daisyui/theme" {
name: "dark";
prefersDark: true;
}
Output:
@plugin "daisyui/theme" {
name: "dark";
prefersdark: true;
}
Expected output:
@plugin "daisyui/theme" {
name: "dark";
prefersDark: true;
}
Why?
The upcoming version of DaisyUI (v5) now involve writing configurations in the CSS file. Some property is in camelCase and the casing needs to be preserved, otherwise it wouldn't work.
cc @g-plane