Skip to content

Commit c5b1488

Browse files
committed
docs: Update installation steps
Signed-off-by: Akshat Patel <[email protected]>
1 parent 2b0e699 commit c5b1488

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ Assuming we're starting with a new @angular/cli project:
2929
```shell
3030
$ npx @angular/cli new my-project --style=scss
3131
$ cd my-project
32-
$ npm i --save carbon-components-angular carbon-components
32+
$ npm i --save carbon-components-angular @carbon/styles
3333
```
3434

3535
Then we need to include carbon-components in `src/styles.scss`:
3636

3737
```scss
38-
@import "~carbon-components/scss/globals/scss/styles.scss";
38+
@use "@carbon/styles";
3939
```
4040

4141
> *Note:* For offline usage we'll need to set `$font-path: '~carbon-components/src/globals/fonts';` at the very top of our `src/styles.scss`. This will copy the fonts to our `dist` folder upon successful build. If you like the fonts to be a part of your `assets` folder and not pollute the `dist` folder then copy the fonts from `node_modules/carbon-components/src/globals/fonts` into our app's `src/assets/fonts` folder and add `$font-path: '/assets/fonts/';` at the very top of our `src/styles.scss`.

0 commit comments

Comments
 (0)