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

Export Scss variables to use in UI #248

Merged
merged 1 commit into from
Oct 10, 2021
Merged

Conversation

PhattOZ
Copy link
Contributor

@PhattOZ PhattOZ commented Oct 9, 2021

I've tried to modify webpack configuration in next.config.js according to the article in #247 and it gives me a warning.

If we add a custom css configuration, Next will disables the built-in CSS/SCSS support according to this article which is probably undesirable.

Turns out that Next seems to support exporting Sass variables in Sass module out of the box. Thanks to this issue and this PR

Thanks for this fun exploration!

@colbyfayock colbyfayock merged commit 1ee554f into colbyfayock:main Oct 10, 2021
@colbyfayock
Copy link
Owner

wow this whole time they supported that haha TIL!

nice find and thanks for putting this together

@all-contributors please add @PhattOZ for code

@allcontributors
Copy link
Contributor

@colbyfayock

I've put up a pull request to add @PhattOZ! 🎉

@colbyfayock
Copy link
Owner

hey @PhattOZ wanted to give you a quick shoutout. used this to create a new tutorial to show others how to do it!

https://spacejelly.dev/posts/how-to-export-sass-variables-to-javascript-with-next-js/
https://www.youtube.com/watch?v=r2YIfBvq11A

@PhattOZ
Copy link
Contributor Author

PhattOZ commented Oct 12, 2021

Hey, that’s great! If there’s any other interesting topic needed help especially Next.js related, please feel free to fill me in!
Thanks again and congrats on getting another sub 🎆 😆

@colbyfayock
Copy link
Owner

thanks @PhattOZ! i'm also open to any recommendations if you find something that could use some work, feel free to open an issue if thats the case 🙌

@colbyfayock
Copy link
Owner

@PhattOZ i forgot! DM me on twitter and ill send you a form for a free sticker pack in the spirit of hacktoberfest! https://twitter.com/colbyfayock

@PhattOZ
Copy link
Contributor Author

PhattOZ commented Oct 13, 2021

Thank you! However, I’m not on twitter sadly. Maybe ig or email?😅

@colbyfayock
Copy link
Owner

yup! [email protected]

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

Successfully merging this pull request may close these issues.

2 participants