Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sass/SCSS Integration #27

Open
dndrsn opened this issue Oct 25, 2024 · 1 comment
Open

Sass/SCSS Integration #27

dndrsn opened this issue Oct 25, 2024 · 1 comment

Comments

@dndrsn
Copy link

dndrsn commented Oct 25, 2024

Is it possible to get SCSS pre-processing to work with Linaria within Next? It seems like it could work but I couldn't get it to work. Should it? It seems like it could given the right Webpack configuration.

Somewhat related, but completely different, I also tried to use exported Sass variables in templates, but Linaria seems unhappy with that as well.

This expression cannot be used in the template, because it is a function parameter.

I'm guessing that is just a limitation with how WyW-in-JS works given the original source of the variables is SCSS.

@dlehmhus
Copy link
Owner

dlehmhus commented Nov 4, 2024

@dndrsn unfortunately I can't help you with that. I haven't had the use case for such a setup. But I think one major issue might be that linaria only creates css modules and nextjs expects scss modules?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants