@ddsys/material
Version:
<p> <a href="https://bhp-dev.gitlab.io/dds-digital-design-system/">Read the docs</a> · <a href="mailto:UserExperience@bhpbilliton.com">Request feature</a> </p>
26 lines (22 loc) • 630 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (theme) {
var colors = theme.colors,
variables = theme.variables;
var common = variables.common,
fonts = variables.fonts,
tooltip = variables.tooltip;
return {
style: {
maxWidth: tooltip.maxWidth + "px",
padding: common.spacing * 0.25 + "rem " + common.spacing * 0.5 + "rem",
color: colors.light,
textAlign: "center",
backgroundColor: colors.dark,
borderRadius: common.spacing * 0.25 + "rem",
fontSize: fonts.size.normal * 0.875 + "rem"
}
};
};