Answers for "scss import"

CSS
1

import mixin from another file

@import "../../../theme/main.scss"
Posted by: Guest on July-20-2020
9

sass mixin

@mixin transform($property) {
  -webkit-transform: $property;
  -ms-transform: $property;
  transform: $property;
}
.box { @include transform(rotate(30deg)); }
Posted by: Guest on May-29-2020
3

sass import

@import 'path/to/file', 'other/file';
Posted by: Guest on March-02-2021
1

sass @use not working

As of 8/2020 @use is only compatible with Dart Sass. 
Check compatibility with documentation.
https://sass-lang.com/documentation/at-rules/use
Posted by: Guest on August-20-2020
-1

scss npm import

npm uninstall node-sass
npm install [email protected]
Posted by: Guest on April-25-2020
0

Sass @import and Partials

@import "variables";
@import "colors";
@import "reset";

reset.scss

@import "reset";

body {
  font-family: Helvetica, sans-serif;
  font-size: 18px;
  color: red;
}
Posted by: Guest on December-06-2020

Browse Popular Code Answers by Language