JSPM

  • Created
  • Published
  • Downloads 126220
  • Score
    100M100P100Q161972F
  • License MIT

Basic building blocks for Fluent UI React Component themes

Package Exports

  • @fluentui/theme
  • @fluentui/theme/lib-commonjs/constants/DefaultEffects
  • @fluentui/theme/lib-commonjs/constants/DefaultPalette
  • @fluentui/theme/lib-commonjs/constants/DefaultSpacing
  • @fluentui/theme/lib-commonjs/constants/FluentColors
  • @fluentui/theme/lib-commonjs/constants/FluentDepths
  • @fluentui/theme/lib-commonjs/constants/FluentFonts
  • @fluentui/theme/lib-commonjs/constants/FluentMotions
  • @fluentui/theme/lib/constants/DefaultEffects
  • @fluentui/theme/lib/constants/DefaultPalette
  • @fluentui/theme/lib/constants/DefaultSpacing
  • @fluentui/theme/lib/constants/FluentColors
  • @fluentui/theme/lib/constants/FluentDepths
  • @fluentui/theme/lib/constants/FluentFonts
  • @fluentui/theme/lib/constants/FluentMotions

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fluentui/theme) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@fluentui/theme

Basic building blocks for Fluent UI React Themes

Define your own theme based on an existing theme:

import { createTheme } from '@uifabric/styling';
import { Theme, mergeThemes, FontWeights } from '@fluentui/theme';

export const MyTheme: Theme = mergeThemes(createTheme(), {
  tokens: {
    button: {
      fontWeight: FontWeights.semibold,
      padding: '0 24px',
    },
  },
});