dat-icons
SVG icons for dat project and related projects.
Usage
const svgSprite = require('dat-icons')
var el = svgSprite()
document.body.appendChild(el)
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-clipboarddaticon-create-new-datdaticon-deletedaticon-downloaddaticon-edit-datdaticon-filedaticon-folderdaticon-happy-datdaticon-hexagon-downdaticon-hexagon-outlinesdaticon-hexagon-pausedaticon-hexagon-resumedaticon-hexagon-updaticon-hexagon-xdaticon-import-datdaticon-linkdaticon-loadingdaticon-letterdaticon-lockdaticon-menudaticon-networkdaticon-open-in-desktopdaticon-open-in-finderdaticon-plusdaticon-questiondaticon-sad-datdaticon-star-datdaticon-editdaticon-infodaticon-geardaticon-search
Build
to build SVG sprite:
npm install
npm run build-icons