Skip to content

Instantly share code, notes, and snippets.

@ishiduca
Created July 19, 2020 00:42
Show Gist options
  • Save ishiduca/e357275730b61bd64a423a0c2b788ba3 to your computer and use it in GitHub Desktop.
Save ishiduca/e357275730b61bd64a423a0c2b788ba3 to your computer and use it in GitHub Desktop.
tabler-icons
var yo = require('yo-yo')
var x = yo`<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-square-x" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z"/>
<rect x="4" y="4" width="16" height="16" rx="2" />
<path d="M10 10l4 4m0 -4l-4 4" />
</svg>`
if (process.brwoser) {
document = require('global/document')
document.body.appendChild(x)
} else {
console.log(String(x))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment