postcss-inline-svg PostCSSplugin to reference an SVG file and control its attributes with CSS syntax. @svg-loadnav url(img/nav.svg) {fill:#cfc;path:nth-child(2){fill:#ff0; } }.nav{background:svg-inline(nav); }.up{background:svg-load('img/arrow-up.svg', fill=#000, stroke=#fff...
PostCSS plugin to reference an SVG file and control its attributes with CSS syntax.@svg-load nav url(img/nav.svg) { fill: #cfc; path:nth-child(2) { fill: #ff0; } } .nav { background: svg-inline(nav); } .up { background: svg-load('img/arrow-up.svg', fill=#000, stroke=...
TrySound/postcss-inline-svgPublic NotificationsYou must be signed in to change notification settings Fork38 Star481 Code Issues13 Pull requests4 Actions Projects Wiki Security Insights Additional navigation options Files master .github .husky lib ...
PostCSS SVGlets you inline SVGs in CSS. .icon--square{content: url("shared-sprites#square"param(--color blue)); }/* becomes */.icon--square{content: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect style='fill:blue' width='100%25' he...