Unable to make themes work #10801
Unanswered
EmanueleCiriachi
asked this question in
Help
Replies: 1 comment
-
Hey @EmanueleCiriachi, I think you'll need to use the sass entry point instead of the minified css: @import '@carbon/themes/scss/themes';
// Use the gray 100 theme
$carbon--theme: $carbon--theme--g100;
@include carbon--theme();
- @import 'carbon-components/css/carbon-components.min.css';
+ @import 'carbon-components/scss/globals/scss/styles.scss'; The React tutorial is a good reference for some things like this. Hope it helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can't understand what I'm doing wrong - I followed religiously everything that the documentation told me to do.
EDIT: this is a codesandbox:
https://codesandbox.io/s/carbon-charts-react-elkjs-diagram-forked-hqxtj0?file=/src/App.js
My
App.scss
is as follows:My
App.tsx
is as follows:And yet I don't see any difference - I tried with every one of the four themes.
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions