fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Can Microsoft Fabric UI be used for non-Microsoft commercial products?

Open asif-kaleem opened this issue 9 years ago • 4 comments

I have been working with Fabric UI which is an open source toolkit. I am wondering if this can be used in a non-Microsoft commercial product?

asif-kaleem avatar Nov 06 '17 12:11 asif-kaleem

Hey @konsoltech, good question! Long story short: it depends.

Fabric's assets (fonts, icons, and product logos) are part of Microsoft's brand, and can only be used in apps & services--including commercial ones--that connect with Microsoft products. These include Add-ins for Office, web parts for SharePoint, and other extensions for Microsoft products. This applies to usage of the assets in application code itself as well as any designs produced by the toolkit.

However, all of Fabric's code (JS, CSS, etc.) is MIT-licensed and can be used in non-Microsoft commercial products. There's even first-class support for Selawik, an open source drop-in substitute for Segoe UI. There is not a substitute for the icon font today, however.

Hope this helps! I'll go ahead and close this for now, but please feel free to re-open the issue or reach out if you have more questions.

Jahnp avatar Nov 07 '17 18:11 Jahnp

Also--I should note that for the icons, in almost every component where Icons are used, you can pass in your own render method via onRenderIcon. What this means is that though the components come with Fabric's icons by default, you can override them with your own assets (e.g. from fontawesome), allowing you to use Fabric's code without using its assets.

Jahnp avatar Nov 07 '17 18:11 Jahnp

And some components are way too rigid in icon configs. Like DatePicker and ComboBoxes. I dont think DatePicker Icon and DatePicker callout Icons change would be easy

fidabhittani avatar Nov 10 '17 15:11 fidabhittani

@fidabhittani You can use registerIcons to override the default icons. I did not test it with your example, but I think this would also effect the icons used by DatePickers etc.

With FontAwesome it could look like this:

import { registerIcons } from '@uifabric/styling';
import Icon from '@fortawesome/react-fontawesome';

registerIcons({
    icons: {
        'Home': <Icon icon={['fal', 'home']} />,
        'HomeSolid': <Icon icon={['fas', 'home']} />,
        'FavoriteStar': <Icon icon={['fal', 'star']} />,
        'FavoriteStarFill': <Icon icon={['fas', 'star']} />,
    },
});

Fensterbank avatar Jun 18 '18 14:06 Fensterbank