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

Theme support #167

Closed
NickStarlight opened this issue Apr 15, 2020 · 3 comments
Closed

Theme support #167

NickStarlight opened this issue Apr 15, 2020 · 3 comments

Comments

@NickStarlight
Copy link

NickStarlight commented Apr 15, 2020

How do we apply themes as described here?

Using:

<style type="text/sass" global>
@import "node_modules/carbon-components/scss/globals/scss/vendor/@carbon/themes/scss/themes";

$carbon--theme: $carbon--theme--g100;
@include carbon--theme();

@import 'node_modules/carbon-components/scss/globals/scss/styles';
</style>

Seems to have no effect at all.

@NickStarlight
Copy link
Author

Nevermind, this DOES work, it was a problem on how i was handling my rollup.
The snippet bellow works like charm if you wan't use the Gray-100 theme:

@import "carbon-components/scss/globals/scss/vendor/@carbon/themes/scss/themes";

$carbon--theme: $carbon--theme--g100;
@include carbon--theme();

@import 'carbon-components/scss/globals/scss/styles';

@arcfide
Copy link

arcfide commented May 9, 2020

@NickStarlight I'm having this same issue, but it's not clear what I need to do in my rollup to fix this. Do you have any information on how to do this?

@arcfide
Copy link

arcfide commented May 10, 2020

Aha! I see that the path you used is different than the path recommended on the main documentation. Adjusting the path fixes things.

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

2 participants