Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 530 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 530 Bytes

preset-svg

SVG icon for mapcss

Usage

import {
  type Config,
  generate,
} from "https://deno.land/x/mapcss@$VERSION/core/mod.ts";
import {
  iconifyJSON,
  presetSVG,
} from "https://deno.land/x/mapcss@$VERSION/preset_svg/mod.ts";
import carbon from "https://esm.sh/@iconify-json/carbon/icons.json" assert {
  type: "json",
};

const config: Config = {
  preset: [presetSVG({
    carbon: iconifyJSON(carbon),
    bitcoin: "<svg ...</svg>",
  })],
};
// generate("i-bitcoin i-carbon-logo-github", config).css;