UNPKG

@braineet/ui

Version:

Braineet design system

73 lines (72 loc) 2.01 kB
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } import { fluid } from '../../utils'; /** * All variants Heading style */ export default (function (overrides, fonts) { return _extends({ xxl: { fontFamily: fonts.display, fontSize: fluid(40), fontWeight: 700, fontStyle: 'normal', fontStretch: 'normal', lineHeight: 'normal', letterSpacing: 'normal' }, xl: { fontFamily: fonts.display, fontSize: fluid(20), fontWeight: 600, fontStyle: 'normal', fontStretch: 'normal', lineHeight: fluid(28), letterSpacing: 'normal' }, lg: { fontFamily: fonts.display, fontSize: fluid(18), fontWeight: 600, fontStyle: 'normal', fontStretch: 'normal', lineHeight: fluid(26), letterSpacing: 'normal' }, md: { fontFamily: fonts.display, fontSize: fluid(16), fontWeight: 600, fontStyle: 'normal', fontStretch: 'normal', lineHeight: 'normal', letterSpacing: 'normal' }, sm: { fontFamily: fonts.display, fontSize: fluid(14), fontWeight: 600, fontStyle: 'normal', fontStretch: 'normal', lineHeight: fluid(20), letterSpacing: 'normal' }, xs: { fontFamily: fonts.display, fontSize: fluid(12), fontWeight: 600, fontStyle: 'normal', fontStretch: 'normal', lineHeight: fluid(16), letterSpacing: 'normal' }, xxs: { fontFamily: fonts.display, fontSize: fluid(10), fontWeight: 700, fontStyle: 'normal', fontStretch: 'normal', lineHeight: fluid(14), letterSpacing: 'normal' } }, overrides); });