Skip to content

Commit

Permalink
feat(styles): added ability to import styles only by package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Beliaev committed Apr 19, 2023
1 parent 6c65c39 commit 846c1b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ The library styles are built using Sass (namely [Dart Sass](https://sass-lang.co
```
npm i --save @egov/cvi-styles
```
2. Include styles to a Sass file in the project:
2. Import CVI styles to a Sass file in your project:
```
@use '@egov/cvi-styles/main';
@use '@egov/cvi-styles';
```

You can also `@use` or `@import` a specific Sass module from the library, eg. `@use '@egov/cvi-styles/settings/variables/typography';`.
1 change: 1 addition & 0 deletions libs/styles/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@egov/cvi-styles",
"version": "1.6.0",
"main": "main.scss",
"dependencies": {
"tslib": "^2.3.0",
"@fontsource/roboto": "^4.5.8"
Expand Down

0 comments on commit 846c1b7

Please sign in to comment.