Skip to content

How do you consume a library's CSS? #1018

Answered by agilgur5
stephencweiss asked this question in Q&A
Discussion options

You must be logged in to vote

So as I believe I've mentioned in some of those issues, this question is not TSDX-specific, particularly as TSDX is currently agnostic and has no opinion regarding your styling decisions -- by default, it does not even come with a CSS plugin for Rollup. So how you consume styles in a library is up to the library author.

Some people use styled-components, others inject a stylesheet, others require the consuming developer to import the CSS (or have a plain version with no styles), others let you pass props to style components or add your own styles. There are more methods too, some libraries let you pick themes or build your own theme and customize pieces of it. And there are many, many dif…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stephencweiss
Comment options

Answer selected by stephencweiss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants