UNPKG

@mapcss/preset-svg

Version:
18 lines (17 loc) 605 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.preset = void 0; const prose_js_1 = require("../preset_typography/identifier/prose.js"); const identifier_js_1 = require("./identifier.js"); function preset({ svgMap, declaration = {} }) { const identifier = (0, prose_js_1.recTransform)(svgMap, (svg) => (0, identifier_js_1.createCSSObject)(svg, { declaration })); const cssMap = { i: identifier }; const preset = { name: "mapcss/preset-icon", fn: () => ({ cssMap, }), }; return preset; } exports.preset = preset;