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

It should be possible to import styles only by package name #79

Open
certainlyakey opened this issue Apr 19, 2023 · 0 comments · May be fixed by #80
Open

It should be possible to import styles only by package name #79

certainlyakey opened this issue Apr 19, 2023 · 0 comments · May be fixed by #80
Labels
enhancement New feature or request

Comments

@certainlyakey
Copy link
Contributor

Summary

At the moment cvi-styles package can only be imported using direct path to a specific Sass file inside it, for example, @use '@egov/cvi-styles/main'.

A consumer app though might not want to know the implementation details and file structure of the library. We should provide ability to import all the CVI styles using only the package name, namely '@egov/cvi-styles`.

What alternatives have you tried?

The only alternative is to employ@use '@egov/cvi-styles/main'.

Does this feature request involve any updates to the reference design?

No

Implementation details

Using main property of cvi-styles' package.json we can achieve this functionality.

@certainlyakey certainlyakey added the enhancement New feature or request label Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant