Answers for "sass import"

CSS
1

import mixin from another file

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

sass import variable from another file

// When importing the master, you leave out the underscore, and it
// will look for a file with the underscore. This prevents the SCSS
// compiler from generating a CSS file from it.
@import "assets/master";

// Then do the rest of my CSS afterwards:
.text { color: $accent; }

// assets/_master.scss 
$accent: #6D87A7;           
$error: #811702;
Posted by: Guest on January-30-2021
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
0

Sass @import syntax

@import filename;
Posted by: Guest on July-25-2021
0

Sass @import example

@import "reset";

body {

   
  font-family: Helvetica, sans-serif;
 
  font-size: 18px;
  color: red;
}
Posted by: Guest on July-25-2021

Browse Popular Code Answers by Language