This PR resolves an issue where the PostCSS plugin @locomotivemtl/postcss-tailwind-shortcuts was using reserved SCSS expressions, leading to conflicts when creating shortcut functions. Specifically, the recent introduction of the color module in SASS resulted in the inability to define a color() shortcut, as it is now a reserved expression in SCSS.
Changes:
Updated SCSS compiler to use the modern API.
Updated the @locomotivemtl/postcss-tailwind-shortcuts package.
Add theme prefix to all shortcut fonctions (e.g., theme-color(dark) instead of color(dark))
This PR resolves an issue where the PostCSS plugin
@locomotivemtl/postcss-tailwind-shortcuts
was using reservedSCSS
expressions, leading to conflicts when creating shortcut functions. Specifically, the recent introduction of thecolor
module in SASS resulted in the inability to define acolor()
shortcut, as it is now a reserved expression in SCSS.Changes:
@locomotivemtl/postcss-tailwind-shortcuts
package.theme
prefix to all shortcut fonctions (e.g.,theme-color(dark)
instead ofcolor(dark)
)