office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
59 lines • 2.12 kB
JavaScript
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function standardStyles(theme) {
return {
root: {
backgroundColor: theme.palette.neutralLighter,
color: theme.palette.neutralPrimary
},
rootHovered: {
backgroundColor: theme.palette.neutralLight,
color: theme.palette.black
},
rootPressed: {
backgroundColor: theme.palette.neutralTertiaryAlt,
color: theme.palette.neutralDark
},
rootExpanded: {
backgroundColor: theme.palette.neutralTertiaryAlt,
color: theme.palette.neutralDark
},
rootChecked: {
backgroundColor: theme.palette.neutralTertiaryAlt,
color: theme.palette.neutralDark
},
};
}
exports.standardStyles = standardStyles;
function primaryStyles(theme) {
return {
root: {
backgroundColor: theme.palette.themePrimary,
color: theme.palette.white
},
rootHovered: {
backgroundColor: theme.palette.themeDark,
color: theme.palette.white
},
rootPressed: {
backgroundColor: theme.palette.themePrimary,
color: theme.palette.white
},
rootExpanded: {
backgroundColor: theme.palette.themePrimary,
color: theme.palette.white
},
rootChecked: {
backgroundColor: theme.palette.themeDark,
color: theme.palette.white,
},
rootCheckedHovered: {
backgroundColor: theme.palette.neutralLight,
color: theme.palette.black
}
};
}
exports.primaryStyles = primaryStyles;
});
//# sourceMappingURL=ButtonThemes.js.map