Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 2.91 KB

README.md

File metadata and controls

57 lines (42 loc) · 2.91 KB

dat-icons

NPM version

SVG icons for dat project and related projects.

Usage

const svgSprite = require('dat-icons')
document.body.innerHTML += svgSprite()

Make sure to include this sprite in your page as the first element after the <body> opening tag.

Icons can later be referenced like so:

<svg><use xlink:href="#daticon-happy-dat"></use></svg>

If this looks unfamiliar, read more about an SVG workflow using SVG sprites and <use> here.

Icon Names

  • daticon-clipboard
  • daticon-create-new-dat
  • daticon-delete
  • daticon-download
  • daticon-edit-dat
  • daticon-file
  • daticon-folder
  • daticon-happy-dat
  • daticon-hexagon-outlines
  • daticon-import-dat
  • daticon-link
  • daticon-loading
  • daticon-lock
  • daticon-menu
  • daticon-open-in-desktop
  • daticon-open-in-finder
  • daticon-question
  • daticon-sad-dat
  • daticon-star-dat

Build

to build SVG sprite:

npm install
npm run build-icons