Detalhes do pacote

@fluentui/react-theme

microsoft793kMIT9.1.24

Fluent UI themes

readme (leia-me)

Fluent UI Web

Build Status GitHub contributors GitHub top language Twitter Follow

Fluent UI React is shipping its v9 final stable release. Visit the Fluent UI React v9 Release page on the wiki to learn more about the upcoming release schedule.

Fluent UI web represents a collection of utilities, React components, and Web Components for building web applications.

This repo is home to 3 separate projects today. Combining Fluent UI React v9 components with Fluent UI React v8 or v0 components is possible and allows gradual migration to Fluent UI v9.

The following table will help you navigate the 3 projects and understand their differences.

React Components (v9) React (v8) Web Components
Overview New, future-proof and forward looking Mature Web Component implementation of Fluent UI.
Used By Microsoft 365 Office Edge
Read Me README.md README.md README.md
Changelog CHANGELOG.md CHANGELOG.md CHANGELOG.md
Repo packages/react-components ./packages/react ./packages/web-components
Quick Start Quick Start Quick Start See README.md
Docs https://react.fluentui.dev/ aka.ms/fluentui-react aka.ms/fluentui-web-components
NPM @fluentui/react-components @fluentui/react @fluentui/web-components
Version npm version npm version npm version
Issues Fluent UI React Components GitHub Issues?label=issues&style=flat-square) Fluent UI React GitHub Issues?label=issues&style=flat-square)%22) Fluent UI Web Components GitHub Issues

Why are there two React versions? Fluent UI v8 is still widely used. We encourage you to migrate to Fluent UI v9. See the Migration overview.

FluentUI Insights

Fluent UI Insights is a series that describes the design and decisions behind the Fluent UI design system.

EP01: Positioning EP02: Styling EP03: Griffel
Watch EP01: Positioning Watch EP02: Styling Watch EP03: Griffel
EP04: Foundational APIs EP05: Theming EP06: Accessible by default
Watch EP04: Foundational APIs Watch EP05: Theming Watch EP06: Accessible by default

Licenses

All files on the Fluent UI React GitHub repository are subject to the MIT license. Please read the License file at the root of the project.

Usage of the fonts and icons referenced in Fluent UI React is subject to the terms of the assets license agreement.

Changelog

You can view the complete list of additions, fixes, and changes in the CHANGELOG.md file for each package.

Looking for Office UI Fabric React?

The Office UI Fabric React project has evolved to Fluent UI.

The office-ui-fabric-react repo is now this repo (fluentui in the Microsoft organization)! The name change should not disrupt any current Fabric usage, repo clones, pull requests, or issue reporting. Links should redirect to the new location. The library formerly known as office-ui-fabric-react is now available as @fluentui/react (see above table for more information).

We have a lot in store for Fluent UI - Read our announcement here.

Looking for Fluent UI React Northstar?

Fluent UI React Northstar has been superseded by Fluent UI React Components v9. For more details about Fluent UI React Northstar, see its README.md.


This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

changelog (log de mudanças)

Change Log - @fluentui/react-theme

This log was last generated on Mon, 16 Dec 2024 16:22:08 GMT and should not be manually modified.

9.1.24

Mon, 16 Dec 2024 16:22:08 GMT Compare changes

Patches

  • Bump @fluentui/tokens to v1.0.0-alpha.21 (PR #33468 by beachball)

9.1.23

Fri, 06 Dec 2024 12:53:46 GMT Compare changes

Patches

  • Bump @fluentui/tokens to v1.0.0-alpha.20 (PR #33372 by beachball)

9.1.22

Mon, 11 Nov 2024 10:01:01 GMT Compare changes

Patches

  • chore: replace npm-scripts and just-scrtips with nx inferred tasks (PR #33074 by martinhochel@microsoft.com)
  • Bump @fluentui/tokens to v1.0.0-alpha.19 (PR #33238 by beachball)

9.1.21

Tue, 15 Oct 2024 17:17:53 GMT Compare changes

Patches

  • Bump @fluentui/tokens to v1.0.0-alpha.18 (PR #32999 by beachball)

9.1.20

Mon, 23 Sep 2024 12:40:17 GMT Compare changes

Patches

  • Bump @fluentui/tokens to v1.0.0-alpha.17 (PR #32840 by beachball)

9.1.19

Mon, 18 Mar 2024 19:50:46 GMT Compare changes

Patches

  • Bump @fluentui/tokens to v1.0.0-alpha.16 (PR #30600 by beachball)

9.1.18

Fri, 15 Mar 2024 21:43:49 GMT Compare changes

Patches

  • Bump @fluentui/tokens to v1.0.0-alpha.15 (PR #30740 by beachball)

9.1.17

Thu, 07 Mar 2024 19:33:27 GMT Compare changes

Patches

  • Bump @fluentui/tokens to v1.0.0-alpha.14 (PR #30687 by beachball)

9.1.16

Thu, 09 Nov 2023 17:29:45 GMT Compare changes

Patches

  • chore: use package.json#files setup instead of npmignore for all v9 libraries (PR #29734 by martinhochel@microsoft.com)
  • Bump @fluentui/tokens to v1.0.0-alpha.13 (PR #29800 by beachball)

9.1.15

Wed, 01 Nov 2023 12:55:59 GMT Compare changes

Patches

  • Bump @fluentui/tokens to v1.0.0-alpha.12 (PR #29663 by beachball)

9.1.14

Tue, 26 Sep 2023 17:49:13 GMT Compare changes

Patches

  • chore: trigger manual version bump after broken release (PR #29303 by yuanboxue@microsoft.com)
  • Bump @fluentui/tokens to v1.0.0-alpha.11 (PR #29303 by beachball)

9.1.13

Tue, 26 Sep 2023 15:31:44 GMT Compare changes

Patches

  • fix: bump swc core to mitigate transpilation memory leaks (PR #29253 by martinhochel@microsoft.com)
  • Bump @fluentui/tokens to v1.0.0-alpha.10 (PR #29300 by beachball)

9.1.12

Tue, 05 Sep 2023 13:29:09 GMT Compare changes

Patches

  • bumps @swc/helpers version to 0.5.1 (PR #28989 by bernardo.sunderhus@gmail.com)
  • Bump @fluentui/tokens to v1.0.0-alpha.9 (PR #29056 by beachball)

9.1.11

Wed, 09 Aug 2023 13:17:11 GMT Compare changes

Patches

  • Bump @fluentui/tokens to v1.0.0-alpha.8 (PR #28775 by beachball)

9.1.10

Fri, 04 Aug 2023 08:52:58 GMT Compare changes

Patches

  • Bump @fluentui/tokens to v1.0.0-alpha.7 (commit by beachball)

9.1.9

Tue, 20 Jun 2023 12:39:07 GMT Compare changes

Patches

  • Bump @fluentui/tokens to v1.0.0-alpha.6 (PR #28229 by beachball)

9.1.8

Fri, 12 May 2023 20:27:56 GMT Compare changes

Patches

  • chore: exclude .swcrc from being published (PR #27740 by olfedias@microsoft.com)
  • Bump @fluentui/tokens to v1.0.0-alpha.5 (PR #27827 by beachball)

9.1.7

Tue, 21 Mar 2023 21:23:10 GMT Compare changes

Patches

  • fix: add node field to package.json exports map. (PR #27154 by tristan.watanabe@gmail.com)
  • chore: migrate to swc transpilation approach. (PR #27250 by tristan.watanabe@gmail.com)
  • Bump @fluentui/tokens to v1.0.0-alpha.4 (PR #27271 by beachball)

9.1.6

Wed, 15 Mar 2023 10:19:53 GMT Compare changes

Patches

  • Bump @fluentui/tokens to v1.0.0-alpha.3 (PR #27213 by beachball)

9.1.5

Wed, 21 Dec 2022 10:20:32 GMT Compare changes

Patches

  • chore: re-export theme from tokens package (PR #25966 by miroslav.stastny@microsoft.com)
  • Bump @fluentui/tokens to v1.0.0-alpha.2 (commit by beachball)

9.1.4

Tue, 20 Dec 2022 14:59:31 GMT Compare changes

Patches

  • fix: update theme tokens (PR #25903 by miroslav.stastny@microsoft.com)

9.1.3

Mon, 05 Dec 2022 18:29:36 GMT Compare changes

Patches

  • refactor: Use Object.assign to reduce loop runtime (PR #25433 by tigeroakes@microsoft.com)
  • chore: Migrate to new package structure. (PR #25812 by tristan.watanabe@gmail.com)

9.1.2

Fri, 11 Nov 2022 14:57:46 GMT Compare changes

Patches

  • Fixed incorrect typography style (PR #25577 by gcox@microsoft.com)
  • fix: create valid export maps (PR #25558 by martinhochel@microsoft.com)

9.1.1

Thu, 20 Oct 2022 08:39:54 GMT Compare changes

Patches

  • chore: Bump peer deps to support React 18 (PR #24972 by mgodbolt@microsoft.com)

9.1.0

Thu, 15 Sep 2022 09:49:36 GMT Compare changes

Minor changes

  • feat: Add fontWeightBold, add Body2, fix font weight for *Stronger typography (PR #24378 by miroslav.stastny@microsoft.com)

Patches

  • fix: update token values to fix failing color contrast (PR #24027 by seanmonahan@microsoft.com)
  • fix: update color neutral background inverted color in teams dark (PR #24494 by seanmonahan@microsoft.com)
  • fix: Update color tokens mapping (PR #24608 by miroslav.stastny@microsoft.com)
  • fix: Rename colorNeutralForegroundInvertedStatic token to colorNeutralForegroundStaticInverted (PR #24611 by miroslav.stastny@microsoft.com)
  • fix: Change colorBrandForeground2 mapping in teamsDark theme (PR #24579 by miroslav.stastny@microsoft.com)
  • fix: Swap Background1 and Foreground1 in HC color palette (PR #24498 by miroslav.stastny@microsoft.com)

9.0.0

Tue, 28 Jun 2022 15:13:21 GMT Compare changes

Patches

  • feat: Initial 9.0.0 release (PR #23733 by lingfangao@hotmail.com)

9.0.0-rc.10

Thu, 23 Jun 2022 14:25:31 GMT Compare changes

Changes

  • BREAKING: reduce shared colors (PR #23608 by miroslav.stastny@microsoft.com)

9.0.0-rc.9

Mon, 23 May 2022 18:56:50 GMT Compare changes

Changes

  • Remove webHighContrast theme (PR #23092 by miroslav.stastny@microsoft.com)

9.0.0-rc.8

Mon, 23 May 2022 12:13:56 GMT Compare changes

Changes

  • feat: ship rolluped only dts (PR #22828 by martinhochel@microsoft.com)

9.0.0-rc.7

Thu, 05 May 2022 18:26:27 GMT Compare changes

Changes

  • Export TypographyStyle type (PR #22832 by miroslav.stastny@microsoft.com)
  • Removing star exports. (PR #22810 by humberto_makoto@hotmail.com)
  • Added ms suffix to durations (PR #22831 by gcox@microsoft.com)

9.0.0-rc.6

Wed, 04 May 2022 13:26:33 GMT Compare changes

Changes

  • Add px suffix to spacings (PR #22722 by gcox@microsoft.com)
  • Fixed typo in typography (PR #22625 by gcox@microsoft.com)
  • Fixed line-height in title2 (PR #22716 by gcox@microsoft.com)
  • Added global theme types and tokens (PR #22607 by gcox@microsoft.com)
  • fix(react-theme): Update CompoundBrandBackground and BrandStroke1 (PR #22751 by miroslav.stastny@microsoft.com)
  • Add base font family per figma (PR #22627 by gcox@microsoft.com)
  • Added typeography styles (PR #22610 by gcox@microsoft.com)
  • feat(react-theme): Add colorNeutralForeground2Link color tokens (PR #22570 by miroslav.stastny@microsoft.com)

9.0.0-rc.5

Tue, 19 Apr 2022 19:17:02 GMT Compare changes

Changes

  • fix(react-theme): Update yellow shared color (PR #22450 by miroslav.stastny@microsoft.com)
  • feat(react-theme): update color tokens (PR #22238 by miroslav.stastny@microsoft.com)

9.0.0-rc.4

Fri, 04 Mar 2022 05:17:31 GMT Compare changes

Changes

  • Adding explicit export maps on all consumer packages for FUIR 8 and 9. (PR #21508 by dzearing@microsoft.com)

9.0.0-rc.3

Fri, 18 Feb 2022 13:35:36 GMT Compare changes

Changes

  • fix: Source maps contain original source code (PR #21690 by lingfangao@hotmail.com)

9.0.0-rc.1

Thu, 10 Feb 2022 08:51:02 GMT Compare changes

Changes

  • feat(react-theme): Add colorNeutralForeground1Static token (PR #21385 by miroslav.stastny@microsoft.com)
  • updating brand colors (PR #20140 by andmarti@microsoft.com)
  • feat: Export tokens as mapping to CSS variables (PR #21026 by Humberto.Morimoto@microsoft.com)
  • Extend brand ramp from 13 to 16 tokens (PR #20884 by miroslav.stastny@microsoft.com)
  • remove mergeThemes API (PR #21278 by martinhochel@microsoft.com)
  • Theme: Adding function to programmatically generate tokens object based on a theme. (PR #21548 by Humberto.Morimoto@microsoft.com)
  • Remove themeToCSSVariables function (PR #20828 by bsunderhus@microsoft.com)
  • feat(react-theme) Add border1 color token for shared colors (PR #20963 by miroslav.stastny@microsoft.com)
  • Bump Fluent UI packages to 9.0.0-rc (PR #21623 by lingfangao@hotmail.com)

9.0.0-beta.4

Thu, 25 Nov 2021 08:34:16 GMT Compare changes

Changes

  • feat(react-theme): update shadow design tokens (PR #20604 by miroslav.stastny@microsoft.com)

9.0.0-beta.3

Fri, 12 Nov 2021 13:25:09 GMT Compare changes

Changes

  • Updated beta and RC components to ES2019 (PR #20405 by gcox@microsoft.com)
  • feat(react-theme): add/update design tokens (PR #20569 by miroslav.stastny@microsoft.com)

9.0.0-beta.2

Wed, 27 Oct 2021 12:14:23 GMT Compare changes

Changes

  • fix(reat-theme): Remove template literal types for color palette (PR #20251 by lingfangao@hotmail.com)
  • added styling of documentation (PR #20193 by peter@draxler.ml)

9.0.0-beta.1

Wed, 06 Oct 2021 10:37:22 GMT Compare changes

Changes

  • Bump all v9 components to beta prerelease tag (PR #20106 by lingfangao@hotmail.com)

9.0.0-alpha.26

Fri, 01 Oct 2021 14:13:08 GMT Compare changes

Changes

  • Bump v9 prerelease versions to rerelease (PR #20069 by lingfangao@hotmail.com)

9.0.0-alpha.24

Wed, 29 Sep 2021 08:06:11 GMT Compare changes

Changes

  • Use direct values in alias tokens (PR #19660 by miroslav.stastny@microsoft.com)

9.0.0-alpha.23

Tue, 21 Sep 2021 07:42:34 GMT Compare changes

Changes

  • Theme: Updating value of borderRadius global token. (PR #19865 by Humberto.Morimoto@microsoft.com)

9.0.0-alpha.22

Tue, 24 Aug 2021 07:34:48 GMT Compare changes

Changes

  • Updating TypeScript type-only imports/exports to use import/export type syntax. (PR #19471 by dzearing@hotmail.com)

9.0.0-alpha.21

Fri, 20 Aug 2021 07:37:28 GMT Compare changes

Changes

  • Update .npmignore (PR #19441 by elcraig@microsoft.com)

9.0.0-alpha.20

Tue, 03 Aug 2021 07:39:30 GMT Compare changes

Patches

  • Bump @fluentui/eslint-plugin to v1.3.3 (PR #19169 by behowell@microsoft.com)
  • Bump @fluentui/scripts to v1.0.0 (PR #19169 by behowell@microsoft.com)

Changes

  • Enable exhaustive-deps rule for useIsomorphicLayoutEffect (PR #19169 by behowell@microsoft.com)

9.0.0-alpha.19

Mon, 26 Jul 2021 07:37:30 GMT Compare changes

Changes

  • Add global alpha tokens (PR #19060 by miroslav.stastny@microsoft.com)

9.0.0-alpha.18

Fri, 23 Jul 2021 07:38:19 GMT Compare changes

Changes

  • Update tokens (PR #19041 by miroslav.stastny@microsoft.com)

9.0.0-alpha.17

Fri, 09 Jul 2021 07:39:31 GMT Compare changes

Patches

  • Bump @fluentui/eslint-plugin to v1.3.2 (PR #18808 by martinhochel@microsoft.com)
  • Bump @fluentui/scripts to v1.0.0 (PR #18808 by martinhochel@microsoft.com)

9.0.0-alpha.16

Fri, 02 Jul 2021 07:37:06 GMT Compare changes

Changes

  • chore(react-theme): Migrate to new DX (PR #18655 by miroslav.stastny@microsoft.com)

9.0.0-alpha.15

Mon, 07 Jun 2021 07:38:15 GMT Compare changes

Patches

  • Bump @fluentui/eslint-plugin to v1.3.1 (PR #18437 by martinhochel@microsoft.com)
  • Bump @fluentui/scripts to v1.0.0 (PR #18437 by martinhochel@microsoft.com)

9.0.0-alpha.14

Thu, 03 Jun 2021 07:36:03 GMT Compare changes

Changes

  • Update theme tokens (PR #18321 by miroslav.stastny@microsoft.com)

9.0.0-alpha.13

Thu, 20 May 2021 07:41:54 GMT Compare changes

Patches

  • Bump @fluentui/eslint-plugin to v1.3.0 (PR #18024 by elcraig@microsoft.com)
  • Bump @fluentui/scripts to v1.0.0 (PR #18024 by elcraig@microsoft.com)

9.0.0-alpha.12

Wed, 19 May 2021 07:34:20 GMT Compare changes

Changes

  • chore: add more Babel plugins (PR #18037 by olfedias@microsoft.com)

9.0.0-alpha.11

Thu, 13 May 2021 07:36:55 GMT Compare changes

Changes

  • perf: avoid deep merge in mergeThemes() if possible (PR #18156 by olfedias@microsoft.com)

9.0.0-alpha.10

Fri, 30 Apr 2021 07:42:23 GMT Compare changes

Patches

  • Bump @fluentui/eslint-plugin to v1.2.0 (PR #17932 by joschect@microsoft.com)
  • Bump @fluentui/scripts to v1.0.0 (PR #17932 by joschect@microsoft.com)

Changes

  • Upgrade to ts 4.0 (PR #17932 by joschect@microsoft.com)

9.0.0-alpha.9

Fri, 23 Apr 2021 07:37:10 GMT Compare changes

Patches

  • Bump @fluentui/eslint-plugin to v1.1.1 (PR #17894 by olfedias@microsoft.com)
  • Bump @fluentui/scripts to v1.0.0 (PR #17894 by olfedias@microsoft.com)

9.0.0-alpha.8

Thu, 08 Apr 2021 07:33:06 GMT Compare changes

Changes

  • Renaming all instances of ghost to subtle per the latest design guidelines. (PR #17676 by Humberto.Morimoto@microsoft.com)

9.0.0-alpha.7

Wed, 31 Mar 2021 00:53:43 GMT Compare changes

Patches

  • Bump @fluentui/eslint-plugin to v1.1.0 (PR #17568 by elcraig@microsoft.com)
  • Bump @fluentui/scripts to v1.0.0 (PR #17568 by elcraig@microsoft.com)

9.0.0-alpha.6

Mon, 15 Mar 2021 07:36:20 GMT Compare changes

Changes

  • Remove set-version references (PR #17381 by elcraig@microsoft.com)

9.0.0-alpha.5

Wed, 03 Mar 2021 00:10:09 GMT Compare changes

Changes

  • Remove set-version dependency from converged components (PR #17211 by miroslav.stastny@microsoft.com)

9.0.0-alpha.4

Tue, 02 Mar 2021 07:24:27 GMT Compare changes

Changes

  • Fix cranberry color alias (PR #17131 by behowell@microsoft.com)
  • remove dependency on @fluentui/utilities (PR #17197 by olfedias@microsoft.com)

9.0.0-alpha.3

Fri, 26 Feb 2021 01:16:27 GMT Compare changes

Patches

  • Bump @fluentui/eslint-plugin to v1.0.1 (PR #17169 by elcraig@microsoft.com)
  • Bump @fluentui/scripts to v1.0.0 (PR #17169 by elcraig@microsoft.com)
  • Bump @fluentui/set-version to v8.0.1 (PR #17169 by elcraig@microsoft.com)
  • Bump @fluentui/utilities to v8.0.1 (PR #17169 by elcraig@microsoft.com)

Changes

  • Update references to major-bumped packages (PR #17169 by elcraig@microsoft.com)

9.0.0-alpha.2

Thu, 25 Feb 2021 20:16:39 GMT Compare changes

Changes

  • Changing incorrect value for brandForegroundPressed token from brand.shade30 to brand.shade40. (PR #17085 by humbertomakotomorimoto@gmail.com)

9.0.0-alpha.1

Wed, 24 Feb 2021 00:05:29 GMT Compare changes

Changes

  • bump version to v9 (PR #17093 by olfedias@microsoft.com)

0.3.3

Mon, 22 Feb 2021 12:26:22 GMT Compare changes

Patches

  • Add SizeValues type (PR #16868 by junioassuncaocharles@gmail.com)

Changes

  • Bump @fluentui/utilities to v8.0.0-beta.15 (PR #17061 by elcraig@microsoft.com)

0.3.2

Thu, 18 Feb 2021 19:38:50 GMT Compare changes

Patches

  • Allow React 17 in peerDependencies. The library has not yet been fully validated with React 17, so please report any issues you find. (PR #17048 by elcraig@microsoft.com)

Changes

  • Bump @fluentui/utilities to v8.0.0-beta.14 (PR #17048 by elcraig@microsoft.com)

0.3.1

Thu, 18 Feb 2021 12:27:34 GMT Compare changes

Changes

  • Bump @fluentui/eslint-plugin to v1.0.0-beta.2 (PR #16975 by elcraig@microsoft.com)
  • Bump @fluentui/utilities to v8.0.0-beta.13 (PR #16975 by elcraig@microsoft.com)
  • Bump @fluentui/set-version to v8.0.0-beta.2 (PR #16975 by elcraig@microsoft.com)
  • Bump @fluentui/scripts to v1.0.0 (PR #16975 by elcraig@microsoft.com)

0.3.1

Mon, 15 Feb 2021 12:22:00 GMT Compare changes

Changes

  • Bump @fluentui/utilities to v8.0.0-beta.12 (PR #16880 by xgao@microsoft.com)

0.3.1

Thu, 11 Feb 2021 00:58:10 GMT Compare changes

Changes

  • Bump @fluentui/utilities to v8.0.0-beta.11 (PR #16911 by xgao@microsoft.com)

0.3.1

Tue, 09 Feb 2021 00:56:52 GMT Compare changes

Patches

  • fix mergeThemes() to avoid object's mutation (PR #16869 by olfedias@microsoft.com)

0.3.0

Mon, 08 Feb 2021 12:23:08 GMT Compare changes

Minor changes

  • Update converged theme shape (PR #16844 by miroslav.stastny@microsoft.com)

0.2.0

Tue, 02 Feb 2021 12:21:54 GMT

Minor changes

  • feat: add basic theme utils (PR #16762 by olfedias@microsoft.com)