You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But we can't use it in SCSS files with the @apply rule. It works when you use it on a DOM element in Astro files. The workaround would be to import globally the custom @layer rules with the mixins within the astro.config.ts like we did for others declarations :
It seems like even if mixins and utils are imported in the main.scss files they are not interpreted in other SCSS files, unless you redeclare the import statements in the current file
The text was updated successfully, but these errors were encountered:
Bug can be reproduced on the branch bug/reproduce-tailwind-layer and executing the command npm run build. You might need to rm -rf dist/ if you built the project beforehand. The error should be :
[astro:build] The `u-text-body` class does not exist. If `u-text-body` is a custom class, make sure it is defined within a `@layer` directive.
file: /astro-boilerplate/src/components/Wysiwyg/Wysiwyg.astro:21:3
In
src/styles/utils/text.scss
we define a new custom class for.u-text-body
for example :But we can't use it in SCSS files with the
@apply
rule. It works when you use it on a DOM element in Astro files. The workaround would be to import globally the custom@layer
rules with the mixins within theastro.config.ts
like we did for others declarations :It seems like even if mixins and utils are imported in the
main.scss
files they are not interpreted in other SCSS files, unless you redeclare the import statements in the current fileThe text was updated successfully, but these errors were encountered: