Replies: 1 comment 6 replies
-
@DenisCor Are you bringing in the second file via If you're importing the second file via javascript, sass will be executed against the files individually and they will not share an execution context. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/carbon-design-system/carbon/blob/main/examples/custom-theme/src/index.scss followed this example to the teeth plus few others and nothing seem to work.
say I want to use these tokens in other scss files, I add
@use '@carbon/react/scss/theme';
to the topExample:
BUT if I want to use my custom-token I get an error
Example:
Module build failed (from ./node_modules.. etc etc)
SassError: "unable to find token: custom-token in current $theme.
Beta Was this translation helpful? Give feedback.
All reactions