UNPKG

@mapcss/preset-svg

Version:
28 lines (23 loc) 486 B
# preset-svg > SVG icon for mapcss ## Usage ```ts import { type Config, generate, iconifyJSON, presetSvg, } from "https://deno.land/x/mapcss@$VERSION/mod.ts"; import carbon from "https://esm.sh/@iconify-json/carbon/icons.json" assert { type: "json", }; const config: Partial<Config> = { preset: [presetSvg({ svgMap: { carbon: iconifyJSON(carbon), bitcoin: "<svg ...</svg>", }, })], }; // generate(config, "i-bitcoin i-carbon-logo-github").css; ```