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

npm install broken, as modules point direclty _varriables.scss instead of 'tachyons' name space. #38

Open
bnjmnrsh opened this issue Jun 18, 2024 · 0 comments

Comments

@bnjmnrsh
Copy link
Member

While testing this package out as an NPM install, one way to efficiently hoist the framework into a project was to hoist tachyons.scss out of node_modules and into the project itself. We could then adjust paths to modules to include the module name eg:

@use "tachyons-haru-sass/scss/modules/any-module"

The problem here is that it is not possible to change the variables, without messing with files inside the package.

  • A part of the solution is to @forward the variables in tachyons.scss (which we are already doing), but we also need to @use them from the tachyons namespace rather than pointing directly to the @use "/sass/variables .scss" as we currently do.

This should mean that we can then re-declare the variables file to one in a new location, and the project will render as long as the namespace matches.

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

1 participant