Answers for "how to import sass file in another sass file"

CSS
1

scss import another file

// foundation/_code.scss
code {
  padding: .25em;
}

// foundation/_lists.scss
ul {
  text-align: left;
}

// style.scss
@use 'foundation/code';
@use 'foundation/lists';

// output styles.css
code {
  padding: .25em;
}

ul {
  text-align: left;
}
Posted by: Guest on April-11-2022

Browse Popular Code Answers by Language