Answers for "how to import file in scss and use"

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

Code answers related to "how to import file in scss and use"

Browse Popular Code Answers by Language