@braineet/ui
Version:
Braineet design system
136 lines (135 loc) • 4.04 kB
JavaScript
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _utils = require("../../utils");
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
var fontFamilies = {
display: "\"Montserrat\", sans-serif",
text: "\"Lato\", sans-serif"
};
var _default = exports.default = function _default(overrides) {
return _extends({
heading: {
xxl: {
fontFamily: fontFamilies.display,
fontSize: (0, _utils.fluid)(40),
fontWeight: 700,
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: 'normal',
letterSpacing: 'normal'
},
xl: {
fontFamily: fontFamilies.display,
fontSize: (0, _utils.fluid)(20),
fontWeight: 600,
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: (0, _utils.fluid)(28),
letterSpacing: 'normal'
},
lg: {
fontFamily: fontFamilies.display,
fontSize: (0, _utils.fluid)(18),
fontWeight: 600,
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: (0, _utils.fluid)(26),
letterSpacing: 'normal'
},
md: {
fontFamily: fontFamilies.display,
fontSize: (0, _utils.fluid)(16),
fontWeight: 600,
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: 'normal',
letterSpacing: 'normal'
},
sm: {
fontFamily: fontFamilies.display,
fontSize: (0, _utils.fluid)(14),
fontWeight: 600,
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: (0, _utils.fluid)(20),
letterSpacing: 'normal'
},
xs: {
fontFamily: fontFamilies.display,
fontSize: (0, _utils.fluid)(12),
fontWeight: 600,
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: (0, _utils.fluid)(16),
letterSpacing: 'normal'
},
xxs: {
fontFamily: fontFamilies.display,
fontSize: (0, _utils.fluid)(10),
fontWeight: 700,
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: (0, _utils.fluid)(14),
letterSpacing: 'normal'
}
},
text: {
xl: {
fontFamily: fontFamilies.text,
fontSize: (0, _utils.fluid)(20),
fontWeight: 400,
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: (0, _utils.fluid)(30),
letterSpacing: 'normal'
},
lg: {
fontFamily: fontFamilies.text,
fontSize: (0, _utils.fluid)(18),
fontWeight: 400,
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: (0, _utils.fluid)(28),
letterSpacing: 'normal'
},
md: {
fontFamily: fontFamilies.text,
fontSize: (0, _utils.fluid)(16),
fontWeight: 400,
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: (0, _utils.fluid)(26),
letterSpacing: 'normal'
},
sm: {
fontFamily: fontFamilies.text,
fontSize: (0, _utils.fluid)(14),
fontWeight: 400,
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: (0, _utils.fluid)(20),
letterSpacing: 'normal'
},
xs: {
fontFamily: fontFamilies.text,
fontSize: (0, _utils.fluid)(12),
fontWeight: 400,
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: (0, _utils.fluid)(16),
letterSpacing: 'normal'
},
xxs: {
fontFamily: fontFamilies.text,
fontSize: (0, _utils.fluid)(10),
fontWeight: 400,
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: (0, _utils.fluid)(12),
letterSpacing: 'normal'
}
},
fontFamilies: fontFamilies
}, overrides);
};