activeguild / vite-plugin-sass-dts

This is a plugin that automatically creates a type file when using the CSS module type-safely.
MIT License
120 stars 18 forks source link

Generates class name for decimal numbers in @supports #102

Closed olivercoad closed 1 month ago

olivercoad commented 2 months ago

I found this issue when doing an @supports for oklch relative color syntax, but simplified it down to its simplest form:

@supports (--num: 1.5) {
  .myclass {
    display: block;
  }
}
declare const classNames: {
  readonly "5": "5";
  readonly myclass: "myclass";
};
export = classNames;
activeguild commented 1 month ago

Supported in the latest version.