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

Allow to import all Sass entities at once #86

Open
certainlyakey opened this issue Apr 19, 2023 · 0 comments
Open

Allow to import all Sass entities at once #86

certainlyakey opened this issue Apr 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@certainlyakey
Copy link
Contributor

Summary

Sometimes a consumer app might have a need to import all of the Sass variables and mixins available in the library at once, with no CSS build artifacts (such as classes or CSS variables) actually appearing.

This might be useful if you want to build a Veera-based component that the CVI library doesn't currently offer.

Having a single import for Sass entities will provide an easier upgrade path for consumer apps (internal paths of Sass files could be changed freely then).

What alternatives have you tried?

Right now it is impossible, you can only import both generated CSS and Sass artifacts mixed together or you can import Sass files one by one, which might be time-consuming and prone to breaking when upgrading a version of the library.

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

No

Implementation details

It should suffice to move imports for all Sass variables and mixins into one importable Sass file. We also would likely need to split files like colors.scss into a file with Sass data and another file dealing with the generation of CSS variables based on that data.

@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

No branches or pull requests

1 participant