-
Hello, I have imported g100 theme like this: and I want to override the $notification-background-error token, but there is no such token in g100. I am missing something? |
Beta Was this translation helpful? Give feedback.
Answered by
tw15egan
Apr 24, 2023
Replies: 2 comments
-
Notification tokens emit their own set of tokens, so you would need to do something like this: @use '@carbon/react/scss/themes';
@use '@carbon/react/scss/components/notification/tokens' with (
$notification-background-error: (
fallback: #3f51b5,
values: (
(theme: themes.$white, value: #3f51b5),
(theme: themes.$g10, value: #d55bff),
(theme: themes.$g90, value: #d0b2ff),
(theme: themes.$g100, value: #cfd2ff),
),
)
);
@use '@carbon/react/scss/reset';
@use '@carbon/react/scss/components/notification'; See more here under component tokens |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gcattan
-
Perfect, thank you very much! |
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
Notification tokens emit their own set of tokens, so you would need to do something like this:
See more here under component tokens