UNPKG

@littlespoon/typography

Version:
36 lines 1.33 kB
"use strict"; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Bold = void 0; // primary and secondary share the same font-weight values var secondary_1 = require("@littlespoon/theme/lib/fonts/secondary"); var styled_components_1 = __importDefault(require("styled-components")); exports.Bold = styled_components_1.default.strong(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n" /** * Gets styles. */ ])), getCss); /** * Gets styles. */ function getCss(props) { var fontWeight = ''; if (props.black) { fontWeight = secondary_1.weight.black.toString(); } else if (props.extraBold) { fontWeight = secondary_1.weight.extraBold.toString(); } else if (props.bold) { fontWeight = secondary_1.weight.bold.toString(); } return "\n font-weight: ".concat(fontWeight, ";\n "); } var templateObject_1; //# sourceMappingURL=Bold.js.map