Skip to content

g100 does not contain $notification-background-error #13651

Answered by tw15egan
gcattan asked this question in Help
Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gcattan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants