How to use the @fluentui/react.mergeThemes function in @fluentui/react

To help you get started, we’ve selected a few @fluentui/react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / fluent-ui-react / packages / react-base-theme / src / ReactBaseTheme.tsx View on Github external
},
    },
    // Just a showcase of how we can further customize the styles for the buttons...
    // This should only indicate which variables are missing in the Teams theme, like (primaryBorderWidth)
    componentStyles: {
      Button: {
        root: ({ props: p }: { props: ButtonProps }) => ({
          ...(p.primary && {
            border: 0,
          }),
        }),
      },
    },
  }

  return mergeThemes(baseTheme, buttonOverrides)
}
github microsoft / fluent-ui-react / docs / src / examples / components / Provider / Performance / ProviderMergeThemes.perf.tsx View on Github external
  const merged = mergeThemes(..._.times(100, n => themes.teams))
  const resolvedStyles = _.mapValues(merged.componentStyles, (componentStyle, componentName) => {