For Angular 6 check the Official documentation

Note: For @angular/cli versions older than 6.0.0-beta.6 use ng set in place of ng config.

For existing projects

In an existing angular-cli project that was set up with the default css styles you will need to do a few things:

  1. Change the default style extension to scss

Manually change in .angular-cli.json (Angular 5.x and older) or angular.json (Angular 6+) or run:

ng config defaults.styleExt=scss

if you get an error: Value cannot be found. use the command:

ng config schematics.@schematics/angular:component.styleext scss

(*source: Angular CLI SASS options)

  1. Rename your existing .css files to .scss (i.e. styles.css and app/app.component.css)

  2. Point the CLI to find styles.scss

Manually change the file extensions in apps[0].styles in angular.json

  1. Point the components to find your new style files

Change the styleUrls in your components to match your new file names

For future projects

As @Serginho mentioned you can set the style extension when running the ng new command

ng new your-project-name --style=scss

If you want to set the default for all projects you create in the future run the following command:

ng config --global defaults.styleExt=scss
Answer from Chic on Stack Overflow
🌐
Angular.love
angular.love › migrate-from-css-to-scss-stylesheets-for-an-existing-angular-project
Migrate from CSS to SCSS in existing Angular project
Now that we have achieved that, ... for any file with the .component.css reference using the shortcut Ctrl + Shift + f and replace all with Ctrl + Shift + h....
Discussions

sass - Converting all css files to scss in angular 2 - Stack Overflow
I have worked on angular 2 project and used angular-cli. I would like to replace all the css files with scss. what would be the easiest way to do it? Or is there a command line that can handle it w... More on stackoverflow.com
🌐 stackoverflow.com
May 31, 2018
How to add scss in an existing angular project - Stack Overflow
I use angular13.0.4 ,I want to update the css file to Scss . I tried different way but not get any success using that tricks , How to change css to scss in existing angular project. More on stackoverflow.com
🌐 stackoverflow.com
Angular-cli from scss to css - Stack Overflow
Mistakenly I have generated my angular project to scss style but I wanna use css style So there is any way how we can convert scss style to css from Angular-cli ? More on stackoverflow.com
🌐 stackoverflow.com
Is SCSS still beneficial with the latest Angular Material and modern CSS features?
There are still some features that SCSS is supporting and CSS not eg. mixing or functions. But if you don’t need such things it is easy to migrate to CSS. I was really surprised how easy it can be. I’ve did such migration for a middle size project by just changing file extensions. And there was no problems at all. So just give it a try! More on reddit.com
🌐 r/Angular2
24
26
April 5, 2025
People also ask

How do I use a CSS to SCSS converter?
You can upload a CSS file or paste your CSS code into most converters. After processing the code, the converter produces equivalent SCSS code that can be copied and used in your project.
🌐
testmu.ai
testmu.ai › home › free tools › css to scss converter online
CSS to SCSS Online Converter | TestMu AI
Why would I want to use a CSS to SCSS converter?
A CSS to SCSS converter can help you organize and maintain your code more effectively, saving time and effort. The sophisticated features of SCSS can also lessen repetition and increase code reuse and modularity.
🌐
testmu.ai
testmu.ai › home › free tools › css to scss converter online
CSS to SCSS Online Converter | TestMu AI
What is a CSS to SCSS converter, and how does it work?
A CSS to SCSS converter is a tool that automates the process of transforming CSS code into SCSS format. The converter reads the CSS code and translates it into the equivalent SCSS syntax, taking into account any variables, mixins, or other SCSS-specific features.
🌐
testmu.ai
testmu.ai › home › free tools › css to scss converter online
CSS to SCSS Online Converter | TestMu AI
🌐
Plain English
plainenglish.io › blog › step-by-step-guide-to-upgrade-your-angular-app-from-css-to-scss
Step by Step Guide to Upgrade Angular App From CSS to SCSS
In this post, we will guide you through upgrading your Angular app from the default CSS styling format to SCSS in a step-by-step manner.
🌐
npm
npmjs.com › package › schematics-scss-migrate
schematics-scss-migrate - npm
March 25, 2023 - In your Angular CLI project, run ng g schematics-scss-migrate:scss-migrate. This will do the following in the consuming project: Rename all the stylesheets in the src folder recursively · Alter the styleUrls in respective component classes ...
      » npm install schematics-scss-migrate
    
Published   Mar 25, 2023
Version   2.3.17
Author   Thabo Ambrose
🌐
Testmu
testmu.ai › home › free tools › css to scss converter online
CSS to SCSS Online Converter | TestMu AI
In your terminal, type "sass input.scss output.css". ... In Angular, you may convert CSS to SCSS by renaming your CSS files with the.scss extension and modifying the style URLs of your components to point to the new SCSS files.
Find elsewhere
🌐
Medium
medium.com › motf-creations › migrate-from-css-to-scss-stylesheets-for-existing-angular-application-d61f8061f5b7
Migrate from CSS to SCSS stylesheets for an existing Angular application | by Thabo | Motf Creations | Medium
October 8, 2021 - Now that we have achieved that, ... for any file with the .component.css reference using the shortcut Ctrl + Shift + f and replace all with Ctrl + Shift + h....
🌐
Rabingaire
rabingaire.com.np › css-to-scss-on-existing-angular-project
CSS to SCSS on existing angular 6 project | Rabin’s Quill
August 29, 2018 - Other than that if you already had the .css file you could manually convert .css to .scss and point to a right file at component.ts by editing styleUrls key at @Component Decorator and also angular has global style file inside src folder as styles.css don’t forget to convert that into styles.scss ...
Top answer
1 of 3
18

I just had to do this to an existing project and pieced together a bunch of information from various places, mostly from this similar stackoverflow question. Here's a set of command line actions (that worked for me on Mac OSX)

# rename all your current files
find . -name "*.css" -exec bash -c 'mv "{1%.css}".scss' - '{}' \;

# change angular cli config file to include styles.scss instead of styles.css
sed -i -e 's/styles.css/styles.scss/g' .angular-cli.json

# now we need to go thru and fix up all the places where ts files refer to .css files
# there’s probably a better way (and will only work if you don’t have multiple css files in a component)
# this is what I did
find ./src -name "*.ts" -exec sed -i -e 's/\(.*styleUrls.*\)\.css\(.*\)/\1\.scss\2/g' {} +
rm -r *.ts-e

# fix for future generates styles
ng set defaults.styleExt scss

# Add node-sass npm module

npm install node-sass --save-dev

# or if you are using yarn, like me:

yarn add node-sass --dev
2 of 3
4

Step1 :- Rename all css file from css (style.css) to scss (style.scss)

Step2 :- If you are using old version (till 4) than please check .angular-cli.json file and replace css to scss in below code "defaults": { "styleExt": "scss", "component": {} }

      if you are using latest version (6) than please check angular.json 
      file and replace css to scss
      "schematics": {
       "@schematics/angular:component": {
        "styleext": "scss"
      }
      },

And restart the project

Note :- For angular (till 4) basicall we used sass-loader to convert scss to css

but for latest version (6) we used node-sass to convert scss to css so if you are getting error like (Module build failed: Error: sass-loader requires node-sass >=4. Please install a compatible version) than please use below command

npm rebuild node-sass

🌐
YouTube
youtube.com › watch
How To Use Both CSS And SCSS In Angular? - Next LVL Programming - YouTube
How To Use Both CSS And SCSS In Angular? Are you looking to enhance your Angular project with advanced styling techniques? In this video, we’ll guide you thr...
Published   March 17, 2025
🌐
Medium
paperinflames.medium.com › css-to-scss-migration-in-an-existing-project-98a8ad5c273a
CSS to SCSS migration in 1 min for existing project - PaperInFlames - Medium
August 26, 2025 - I will help you migrate an existing complex/simple project’s stylesheets from CSS to SCSS with minimal manual effort. ... Open Command Prompt in your project location(the folder where you’ve package.json file). Run the below command. ... That’s it! All the below things will be handled automatically. Addition of SCSS styles schematics to Angular.json file
🌐
JavaScript in Plain English
javascript.plainenglish.io › migrate-an-angular-app-from-css-to-scss-71200d615c95
Migrate an Existing Angular Application from CSS to SCSS | by Gourav Kajal | JavaScript in Plain English
March 17, 2021 - Migrate an Existing Angular Application from CSS to SCSS A quick guide to using SCSS in an Angular application that was scaffolded to use the default stylesheet format While creating a new Angular …
🌐
Cookbook
tangoslee.github.io › cookbook › 2018 › 09 › 30 › change-default-style-from-css-to-scss-in-angular
Change Default Style From CSS to SCSS in Angular | Cookbook
September 30, 2018 - New project1ng new project --style=scss Existing project1ng config schematics.@schematics/angular:component.styleext scss Edit .css to .scss in angular.json 12"styles": [ "src/styles.scss", Referen
🌐
Medium
frontendinterviewquestions.medium.com › how-to-change-css-to-scss-in-angular-ea9e51e58aa8
How to change CSS to SCSS in Angular ? | by Pravin M | Medium
October 13, 2024 - The --style=scss flag configures the project to use SCSS instead of the default CSS. If you already have an existing Angular project using CSS, you can still convert it to SCSS by following the subsequent steps.
🌐
Medium
zrolson.medium.com › migrate-from-css-to-scss-6882998cd3f0
Migrate from CSS to SCSS. AngularJS to Angular and more … my… | by Zach Olson | Medium
February 9, 2022 - Sass helps keep large stylesheets well-organized and makes it easy to share design within and across projects. The easiest way to migrate our project is to use a package called schematics-scss-migrate
🌐
DEV Community
dev.to › stefaniefluin › how-to-structure-scss-in-an-angular-app-3376
How to Structure SCSS in an Angular App - DEV Community
April 14, 2023 - Update your angular.json file to point to the new location of your styles.scss file. Now, it's time to build out our folder scaffold. I like to follow something similar to the 7-1 Pattern but modify some of the names. Below is an example of how I lay out the style folders: My base folder contains global styles which has some general layout items, a few general default overrides (think normalize.css-type styles), and my base font size so I can use rems consistently.