After having the same issue, I got confused with all the answers here and the comments over the repository of sass in github.

I just want to point out that as December 2014, this issue has been resolved. It is now possible to import css files directly into your sass file. The following PR in github solves the issue.

The syntax is the same as now - @import "your/path/to/the/file", without an extension after the file name. This will import your file directly. If you append *.css at the end, it will translate into the css rule @import url(...).

In case you are using some of the "fancy" new module bundlers such as webpack, you will probably need to use use ~ in the beginning of the path. So, if you want to import the following path node_modules/bootstrap/src/core.scss you would write something like
@import "~bootstrap/src/core".

NOTE:
It appears this isn't working for everybody. If your interpreter is based on libsass it should be working fine (checkout this). I've tested using @import on node-sass and it's working fine. Unfortunately this works and doesn't work on some ruby instances.

Answer from tftd on Stack Overflow
Top answer
1 of 15
459

After having the same issue, I got confused with all the answers here and the comments over the repository of sass in github.

I just want to point out that as December 2014, this issue has been resolved. It is now possible to import css files directly into your sass file. The following PR in github solves the issue.

The syntax is the same as now - @import "your/path/to/the/file", without an extension after the file name. This will import your file directly. If you append *.css at the end, it will translate into the css rule @import url(...).

In case you are using some of the "fancy" new module bundlers such as webpack, you will probably need to use use ~ in the beginning of the path. So, if you want to import the following path node_modules/bootstrap/src/core.scss you would write something like
@import "~bootstrap/src/core".

NOTE:
It appears this isn't working for everybody. If your interpreter is based on libsass it should be working fine (checkout this). I've tested using @import on node-sass and it's working fine. Unfortunately this works and doesn't work on some ruby instances.

2 of 15
297

This was implemented and merged starting from version 3.2 (pull #754 merged on 2 Jan 2015 for libsass, issues originaly were defined here: sass#193 #556, libsass#318).

To cut the long story short, the syntax in next:

  1. to import (include) the raw CSS-file

    the syntax is **without `.css`** extension at the end (results in actual read of partial `s[ac]ss|css` and include of it inline to SCSS/SASS):

    @import "path/to/file";

  2. to import the CSS-file in a traditional way

    syntax goes in traditional way, **with `.css` extension** at the end (results to `@import url("path/to/file.css");` in your compiled CSS):

    @import "path/to/file.css";

And it is damn good: this syntax is elegant and laconic, plus backward compatible! It works excellently with libsass and node-sass.

__

To avoid further speculations in comments, writing this explicitly: Ruby based Sass still has this feature unimplemented after 7 years of discussions. By the time of writing this answer, it's promised that in 4.0 there will be a simple way to accomplish this, probably with the help of @use. It seems there will be an implementation very soon, the new "planned" "Proposal Accepted" tag was assigned for the issue #556 and the new @use feature.

UPD: on 26 October 2020 lib-sass was deprecated, therefore issue #556 was immediately closed.

__

answer might be updated, as soon as something changes.

🌐
Sass
sass-lang.com › documentation › at-rules › import
Sass: @import
It wouldn’t be any fun to write ... you don’t have to explicitly write out the extension of the file you want to import; @import "variables" will automatically load variables.scss, variables.sass, or variables.css....
Discussions

How do i import scss code into css file?
Ive been having issues trying to import scss into my css. Im using atom as my handler and ive tried downloading their plugins but they dont seem to work. ... More on forum.freecodecamp.org
🌐 forum.freecodecamp.org
0
0
September 15, 2018
Including css file from node_modules in scss
I tried to include a css from node modules into my sass file like: @import "node_modules/@tomtom-international/web-sdk-maps/dist/maps"; but it seems to skip it. I also tried adding the .css extension but without success; gohugo also gives no warning or error. More on discourse.gohugo.io
🌐 discourse.gohugo.io
6
0
May 26, 2020
How to use @use to import css from url
In SCSS how we can use @use to load external css from url? More on github.com
🌐 github.com
1
April 28, 2021
How to @import .css file as a .scss file in sass? - Stack Overflow
I am using gulp as a task runner which merge and minifying scss files for me. In this case if I try to import a regular CSS file, it will compile to a css import statement as below: /* style.sc... More on stackoverflow.com
🌐 stackoverflow.com
🌐
W3Schools
w3schools.com › sass › sass_import.asp
Sass @import and Partials
However, the Sass @import directive includes the file in the CSS; so no extra HTTP call is required at runtime! ... Tip: You do not need to specify a file extension, Sass automatically assumes that you mean a .sass or .scss file.
🌐
GeeksforGeeks
geeksforgeeks.org › css › how-to-import-regular-css-file-in-scss-file
How to import regular CSS file in SCSS file ? - GeeksforGeeks
September 26, 2024 - This is done by using the @import directive, enabling the CSS file to be included and compiled along with SCSS styles during preprocessing.
🌐
freeCodeCamp
forum.freecodecamp.org › html-css
How do i import scss code into css file? - HTML-CSS - The freeCodeCamp Forum
September 15, 2018 - Ive been having issues trying to import scss into my css. Im using atom as my handler and ive tried downloading their plugins but they dont seem to work. ...
🌐
Sass
sass-lang.com › documentation › at-rules › use
Sass: @use
Unlike some other languages, Sass doesn’t require that you use ./ for relative imports. Relative imports are always available. As a convention, Sass files that are only meant to be loaded as modules, not compiled on their own, begin with _ (as in _code.scss).
🌐
TutorialsTeacher
tutorialsteacher.com › sass › import-files-and-partials
Sass - Importing files and partials
For example, @import "colors" will include colors.scss or colors.sass in the CSS ouput, if exists in the current directory. Notice that this is slightly different from the CSS @import directive: The file is included in the CSS; no extra http call will be required at runtime.
Find elsewhere
🌐
Medium
medium.com › @philip.mutua › difference-between-use-and-import-in-scss-1cb6f501e649
Difference Between @use and @import in SCSS | by Philip Mutua | Medium
October 20, 2024 - Naming Collisions: Because everything is global, libraries must prefix variables, functions, and mixins to prevent conflicts with other imported files. Lack of Control: There’s no way to control the visibility of variables, mixins, or functions, which limits encapsulation and modularity. ... // _variables.scss $primary-color: #3498db; // styles.scss @import 'variables'; body { background-color: $primary-color; }
🌐
GitHub
github.com › sass › sass › issues › 3043
How to use @use to import css from url · Issue #3043 · sass/sass
April 28, 2021 - How to use @use to import css from url#3043 · Copy link · prad1386 · opened · on Apr 28, 2021 · Issue body actions · Hi, In SCSS how we can use @use to load external css from url? @use url("http://someurl.com.sample.css"); @use "http://someurl.com.sample.css"; Above statements doesn't work.
Author   prad1386
🌐
TutorialsPoint
tutorialspoint.com › sass › directives_import.htm
Sass - Import Directives
Import directives, imports the SASS or SCSS files. It directly takes the filename to import. All the files which are imported in SASS will get combined in a single CSS file. There are few things that are compiled to a CSS when we use @import rule −
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › @import
import - CSS - MDN Web Docs - Mozilla
The @import CSS at-rule is used to import style rules from other valid stylesheets. An @import rule must be defined at the top of the stylesheet, before any other at-rule (except @charset and @layer) and style declarations, or it will be ignored.
🌐
Liquid Light
liquidlight.co.uk › home
@use and @import rules in SCSS - Liquid Light
July 5, 2023 - The main differences is how they handle members. @import makes everything globally accessible in the target file. This enables an endless chain of imported files where it's difficult to trace where your variables and mixins are coming from. It also allows for overlap and makes it difficult ...
🌐
Sass
sass-lang.com › blog › feature-watchcss-imports-and-css-compatibility
Sass: Feature Watch: CSS Imports and CSS Compatibility
August 13, 2018 - You can now import a CSS file, say styles.css, just by writing @import "styles". That file will be parsed as plain CSS, which means that any Sass features like variables or mixins or interpolation will be disallowed. The CSS it defines will become part of your stylesheet, and can be @extended ...
🌐
Multigenesys
multigenesys.com › home › frontend development › how to import a regular css file into an scss file
How to Import a Regular CSS File into an SCSS File
October 9, 2024 - Learn how to import regular CSS file into an SCSS file easily. Follow this step-by-step guide to integrate CSS into your SCSS workflow for streamlined styling
🌐
GitHub
github.com › sass › node-sass › issues › 2362
Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass. · Issue #2362 · sass/node-sass
May 3, 2018 - Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass. Use a custom importer to maintain this behaviour. Check your implementations documentation on how to create a custom importe...
Author   ghost
🌐
GeeksforGeeks
geeksforgeeks.org › css › sass-import
SASS | @import - GeeksforGeeks
July 12, 2025 - Using @import we can import SCSS or CSS files in our main file, So basically we can combine multiple files together.
🌐
CSS-Tricks
css-tricks.com › introducing-sass-modules
Introducing Sass Modules | CSS-Tricks
October 14, 2019 - Not only can imports and modules work together, but we can create “import-only” files to provide a better experience for legacy users still @importing our libraries. In most cases, this will be an alternative version of the main package file, and you’ll want them side-by-side: <name>.scss for module users, and <name>.import.scss for legacy users.
🌐
Team Treehouse
teamtreehouse.com › community › how-do-i-import-custom-css-file-into-mainscss-i-cant-get-it-to-work
How do I import custom css file into main.scss? I can't get it to work. (Example) | Treehouse Community
June 7, 2015 - I created a 'layout' folder under _sass, and made a new file called '_index'.scss. In the index file I change the background-color for body to black. Then in the main.scss I put @import "layout/index".