typestyle-extensions
Version:
A useful collection of typestyle extensions and helper functions to make working with TypeStyle even more pleasant
22 lines • 641 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const typestyle_1 = require("typestyle");
let breakpoints = {
sm: 600,
md: 960,
lg: 1280,
xl: 1920,
};
function setBreakpointSizes(breakpointSizes) {
breakpoints = breakpointSizes;
}
exports.setBreakpointSizes = setBreakpointSizes;
function widthDown(size, styles) {
return typestyle_1.media({ maxWidth: breakpoints[size] }, styles);
}
exports.widthDown = widthDown;
function widthUp(size, styles) {
return typestyle_1.media({ minWidth: breakpoints[size] }, styles);
}
exports.widthUp = widthUp;
//# sourceMappingURL=mediaQueries.js.map