Skip to content
Discussion options

You must be logged in to vote

Components are styled with CSS tokens so that you don't need to override specific selectors and styles.

The 3 colors used in the Checkbox are colorCompoundBrandBackground, colorCompoundBrandBackgroundHover and colorCompoundBrandBackgroundPressed.

Tokens can be applied via FluentTheme provider, or as a 1 off with a style tag

<Checkbox
    style={{
      "--colorCompoundBrandBackground": "red",
      "--colorCompoundBrandBackgroundHover": "darkred",
      "--colorCompoundBrandBackgroundPressed": "maroon"
    }}
    {...props}
  />

Replies: 1 comment

Comment options

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