@braineet/ui
Version:
Braineet design system
58 lines (57 loc) • 1.61 kB
JavaScript
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 Text style
*/
export default (function (overrides) {
return _extends({
xl: {
fontSize: fluid(20),
fontWeight: 'normal',
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: fluid(30),
letterSpacing: 'normal'
},
lg: {
fontSize: fluid(18),
fontWeight: 'normal',
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: fluid(28),
letterSpacing: 'normal'
},
md: {
fontSize: fluid(16),
fontWeight: 'normal',
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: fluid(26),
letterSpacing: 'normal'
},
sm: {
fontSize: fluid(14),
fontWeight: 'normal',
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: fluid(20),
letterSpacing: 'normal'
},
xs: {
fontSize: fluid(12),
fontWeight: 'normal',
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: fluid(16),
letterSpacing: 'normal'
},
xxs: {
fontSize: fluid(10),
fontWeight: 'normal',
fontStyle: 'normal',
fontStretch: 'normal',
lineHeight: fluid(12),
letterSpacing: 'normal'
}
}, overrides);
});