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

Can you configure for a combination of CSS-in-JS and separately a global css file #429

Closed
mickeypuri opened this issue Sep 16, 2022 · 1 comment

Comments

@mickeypuri
Copy link

mickeypuri commented Sep 16, 2022

For most components in our component library we are going to go with CSS-in-JS and import into the component from .scss files for each component.
Unfortunately one component uses a 3rd party Carousel which provides its own .scss files. This won't work with injected css. So for this component we need to create a global css file from the .scss files that the 3rd party provides.

Reading the docs suggests that you can either do CSS-in-JS or else create a single external css file.

Is it possible to configure rollup-plugin-postcss to produce the CSS-in-JS and import them into our components, and separately prepare a global css file from a couple of .scss files?

What would this config look like?

@mickeypuri mickeypuri closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2022
@mickeypuri
Copy link
Author

I have found a way to do this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant