activeguild / vite-plugin-sass-dts

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

Generates class name for decimal numbers in @supports #102

Closed olivercoad closed 4 days ago

olivercoad commented 1 month 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 4 days ago

Supported in the latest version.