@fluentui/theme
TypeScript icon, indicating that this package has built-in type declarations

2.6.47 • Public • Published

@fluentui/theme

Basic building blocks for Fluent UI React Themes

Define your own theme based on an existing theme:

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

export const MyTheme: Theme = createTheme({
  components: {
    Button: {
      variants: {
        fontWeight: FontWeights.semibold,
        paddingLeft: '24px',
        paddingRight: '24px',
      },
    },
  },
});

/@fluentui/theme/

    Package Sidebar

    Install

    npm i @fluentui/theme

    Weekly Downloads

    166,094

    Version

    2.6.47

    License

    MIT

    Unpacked Size

    774 kB

    Total Files

    308

    Last publish

    Collaborators

    • sopranopillow
    • microsoft1es
    • justslone
    • chrisdholt
    • miroslavstastny
    • levithomason
    • uifabricteam
    • uifrnbot
    • dzearing
    • layershifter
    • ling1726
    • travisspomer