deno icon indicating copy to clipboard operation
deno copied to clipboard

fmt does not preserve CSS property casing

Open lts20050703 opened this issue 1 year ago • 1 comments

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.

lts20050703 avatar Oct 19 '24 19:10 lts20050703

cc @g-plane

dsherret avatar Oct 21 '24 19:10 dsherret