Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Importing sass from external files #105

Open
tmyers101 opened this issue Nov 20, 2021 · 2 comments
Open

Importing sass from external files #105

tmyers101 opened this issue Nov 20, 2021 · 2 comments
Labels
question Further information is requested

Comments

@tmyers101
Copy link

tmyers101 commented Nov 20, 2021

Does this package include support for importing sass from external files and inputting it into style jsx tags, similar to https://github.com/vercel/styled-jsx#styles-outside-of-components?

@tmyers101 tmyers101 added the question Further information is requested label Nov 20, 2021
@theoludwig
Copy link
Member

Hey! 👋 @tmyers101

Yes, it should work.
It could be great if you can confirm that it actually works. 😄

@tmyers101
Copy link
Author

tmyers101 commented Nov 21, 2021

I just tried it and sadly can't get it to work. I am using a template literal in an external file and writing SCSS (see attached [code). I am importing it into a NextJS component and using this syntax: <style jsx>{styles}</style> in the jsx. The main issue I can see is that the jsx classes that are being added to the elements are 'jsx-undefined', which is affecting the nesting (see other attached).

Screen Shot 2021-11-21 at 1 10 25 PM

Screen Shot 2021-11-21 at 1 24 31 PM (2)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants