skovy / typed-scss-modules

🎁 Generate type definitions (.d.ts) for CSS Modules using SCSS
https://skovy.dev/generating-typescript-definitions-for-css-modules-using-sass/
MIT License
638 stars 67 forks source link

support modern rgb notation #199

Closed lucgagan closed 1 year ago

lucgagan commented 1 year ago

Your issue may already be reported! Please search on the issue tracker before creating one.

Expected Behavior

Support modern rgb notation:

background: rgb(5 5 5 / 90%);

Current Behavior

Function rgb is missing argument $green.
skovy commented 1 year ago

Without any investigation, this is likely due to node-sass/sass not handling this syntax. Do you have any additional configuration to handle this when building these styles?

skovy commented 1 year ago

No reproduction, and this seems like a general issue with SASS, nothing to do with this tool: https://twitter.com/eriksen_dk/status/1255442528779800576