Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(styles): added ability to import styles only by package name #80

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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