@uifabric/experiments
Version:
Experimental React components for building experiences for Office 365.
32 lines • 2.32 kB
JavaScript
import * as tslib_1 from "tslib";
import * as React from 'react';
import { ComponentPage, ExampleCard } from '@uifabric/example-app-base';
import { FluentThemeBasicExample } from './examples/FluentTheme.Basic.Example';
var FluentThemeBasicExampleCode = require('!raw-loader!./examples/FluentTheme.Basic.Example.tsx');
var FluentThemePage = /** @class */ (function (_super) {
tslib_1.__extends(FluentThemePage, _super);
function FluentThemePage() {
return _super !== null && _super.apply(this, arguments) || this;
}
FluentThemePage.prototype.render = function () {
return (React.createElement(ComponentPage, { title: "Fluent Color Theme", componentName: "FluentTheme", overview: React.createElement("div", null,
React.createElement("p", null,
"We're updating Fabric to use new colors from the ",
React.createElement("a", { href: "https://fluent.microsoft.com/" }, "Fluent Design System"),
". Before these colors become the defaults, this theme is provided as a way to preview how the color changes will affect your app."),
React.createElement("p", null,
"For components that have been converted to",
' ',
React.createElement("a", { href: "https://github.com/OfficeDev/office-ui-fabric-react/wiki/mergeStyles" }, "mergeStyles"),
", the Customizer component can be used to apply the theme. See the examples below. For all other components (including your app's custom components), use the",
' ',
React.createElement("a", { href: "https://github.com/OfficeDev/office-ui-fabric-react/blob/master/packages/styling/src/styles/theme.ts#L80" }, "loadTheme()"),
' ',
"function.")), isHeaderVisible: this.props.isHeaderVisible, exampleCards: React.createElement("div", null,
React.createElement(ExampleCard, { title: "Using Customizer to theme components", code: FluentThemeBasicExampleCode },
React.createElement(FluentThemeBasicExample, null))) }));
};
return FluentThemePage;
}(React.Component));
export { FluentThemePage };
//# sourceMappingURL=FluentThemePage.js.map