-
Notifications
You must be signed in to change notification settings - Fork 5
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
Using index stylesheets in scss with the new @use and @forward rules is broken #703
Comments
You sure you meant to have three "o"'s in the word "cooler"? CodeKit just runs Dart Sass. It does not change the way Dart Sass resolves imported files. If you run Dart Sass yourself from the command line, you should get the same result. |
So with vite I'm able to do this: @use 'settings' as *;
body {
color: $coooler;
@include calm-voice;
} but with codekit I need to do this @use 'settings/' as *;
body {
color: $coooler;
@include calm-voice;
} (notice the slash at the end of settings/) Everything i've seen with sass modules, and the @use and @forward rule shows that you don't need to do anything with the filepath other than just stating the folder name, no extra slashes or anything. It works that way in Vite... but not codekit? Could it be codekits dependency tree doing anything? |
I'm not familiar with Vite. But again: CodeKit just invokes Dart Sass. It has nothing to do with resolving The explanations I can think of off the top of my head include:
Again: the thing that is throwing that error is NOT CodeKit. CodeKit is just telling you what Dart Sass spat out. |
I am using dart-sass, and i'm on version 3.21 Build 34472. @use and @forward are not working with mixins and variables.
This is my folder structure:
I have my color variables in
_colors.scss
, like$coooler: #ffffff
.in typography I have mixins like:
then in
_index.scss
I haveFrom my understanding, this is the correct way to setup index files in sass.
Then I try and use this mixin and variable in
site.scss
like so:Codekit throws out this error, which makes no sense because the variable is defined -
Has anyone gotten the @use and @forward rules to work in codekit with index scss files?
The text was updated successfully, but these errors were encountered: