How to import specific styles package into component? #1694
-
It's not clear enough to do
seems I was on wrong way |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Which CSS are you trying to leverage here? As outlined here: #1552 we do offer a number of helper sheets that can be imported into a component for use in delivering text content. Those sheets can be imported as follows:
While, as the above issue outlines, we've definitely got some documenting to do to fully support users in leveraging this offering, you can currently access the following files in this way:
Other files in this package are not meant to be consumed at the component level due to the interactions of CSS Custom Property based design token in the CSS cascade and are structured for us directly in a link tag (requires tooling that resoles node module specifiers):
Or in SASS/PostCSS (note the use of the
These token can also be provided via the
|
Beta Was this translation helpful? Give feedback.
Which CSS are you trying to leverage here?
As outlined here: #1552 we do offer a number of helper sheets that can be imported into a component for use in delivering text content. Those sheets can be imported as follows:
While, as the above issue outline…