2015-03-05
SVGãã¤ã³ã©ã¤ã³ã§HTMLã«å«ããå ´åãSVGOãéããæ¹ãè¯ããHTMLãã¡ã¤ã«ã®ãµã¤ãºã¸ä¸ããå½±é¿ã大ããããã ããããããã©ã«ãã®è¨å®ã ã¨ãè²ã æ¶ãããæ¶ããªãã£ããããã®ã§ããããè¨å®ãå¿ è¦ã«ãªããç¹ã«imgè¦ç´ ã®altå±æ§ã«è¿ãtitleè¦ç´ ã®idå±æ§ã¨ãããåç §ããaria-labelledbyå±æ§ã¯æ®ããªããã°ãªããªãã SVGOã®è¨å®ã¯YAMLã§æ¸ããCLIã«--configãªãã·ã§ã³ã§ãã®ãã¡ã¤ã«åã渡ãã¦å®è¡ããã $ svgo --config=.svgo.yml -o - src/img/logo.svg YAMLã§ã®è¨å®ã¯ä»¥ä¸ã®ããã«ããã plugins: - cleanupIDs: false - removeUnknownsAndDefaults: unknownAttrs: false - removeXMLNS: true SVGã®è¦ç´ ããåç §ããã¦ã
There are many ways to use SVG icons in HTML and CSS, and I havenât tried them all. This is how we do it in our small front-end team at Kaliop. It works well for our needs, which include: Content and communication websites, often based on big CMSes, rather than full-JS web apps. Icons which are often simple, single-color icons (each potentially used in several different colors depending on context
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}