1
0
mirror of https://github.com/konpa/devicon.git synced 2025-09-02 10:54:51 +02:00

Optimized SVG using SVGO (#597)

* Added script to optimize svgs

* Updated the svgs using svgo

* Made the optimize svg script into a workflow

* Added npm install step

* Change the env variable bug

* Clean up and updated check svg

* Change label name
This commit is contained in:
Thomas Bui
2021-05-15 12:14:13 -07:00
committed by GitHub
parent 2c6a21d9f4
commit d98a72cb9a
534 changed files with 1432 additions and 10831 deletions

View File

@@ -1,44 +1 @@
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 128 128">
<g>
<path fill="#f58220" d="M11.4,115.62H8.25V91.22h14.25v3.01H11.4v8.02h10.04v2.93H11.42v10.44H11.4z"/>
<path fill="#f58220" d="M27.92,94.74c-0.43,0.43-0.96,0.64-1.57,0.64c-0.61,0-1.15-0.21-1.57-0.64c-0.43-0.43-0.64-0.96-0.64-1.57
s0.21-1.15,0.64-1.57c0.43-0.43,0.96-0.64,1.57-0.64c0.61,0,1.15,0.21,1.57,0.64s0.64,0.96,0.64,1.57S28.34,94.28,27.92,94.74z
M27.92,115.62h-3.14V98.92h3.14V115.62z"/>
<path fill="#f58220" d="M34.47,115.62h-3.14V98.92h3.01v2.72h0.13c0.32-0.91,0.96-1.65,1.97-2.24c0.99-0.59,1.95-0.88,2.88-0.88
s1.71,0.13,2.34,0.4l-1.2,2.93c-0.4-0.16-0.96-0.24-1.68-0.24c-1.15,0-2.13,0.45-3.01,1.36c-0.88,0.91-1.31,2.08-1.31,3.52
V115.62z"/>
<path fill="#f58220" d="M49.23,116.18c-2.53,0-4.58-0.85-6.15-2.53s-2.37-3.81-2.37-6.37c0-2.42,0.77-4.53,2.29-6.29
c1.55-1.76,3.49-2.64,5.89-2.64c2.48,0,4.45,0.8,5.94,2.42c1.49,1.63,2.24,3.78,2.24,6.47l-0.03,0.59H43.85
c0.08,1.68,0.67,3.01,1.68,4c1.04,0.99,2.24,1.47,3.62,1.47c2.24,0,3.78-0.96,4.58-2.88l2.8,1.17c-0.53,1.31-1.44,2.37-2.69,3.25
C52.59,115.73,51.04,116.18,49.23,116.18z M53.74,105.26c-0.08-0.96-0.51-1.87-1.31-2.72c-0.8-0.85-2-1.31-3.6-1.31
c-1.17,0-2.16,0.37-3.01,1.09c-0.85,0.72-1.44,1.71-1.76,2.93L53.74,105.26L53.74,105.26z"/>
<path fill="#f58220" d="M68.1,116.18c-1.28,0-2.42-0.27-3.44-0.83c-1.01-0.53-1.76-1.23-2.26-2.05h-0.13v2.32h-3.01V91.22h3.14v7.7
l-0.13,2.32h0.13c0.51-0.83,1.25-1.49,2.26-2.05c1.01-0.53,2.16-0.83,3.44-0.83c2.16,0,4.02,0.85,5.6,2.56
c1.57,1.71,2.34,3.81,2.34,6.34s-0.77,4.64-2.34,6.34C72.12,115.33,70.26,116.18,68.1,116.18z M67.56,113.31
c1.47,0,2.72-0.56,3.76-1.65c1.04-1.09,1.57-2.56,1.57-4.37s-0.53-3.28-1.57-4.37c-1.04-1.09-2.29-1.65-3.76-1.65
s-2.74,0.53-3.76,1.63c-1.01,1.09-1.55,2.56-1.55,4.4c0,1.84,0.51,3.3,1.55,4.4C64.85,112.77,66.1,113.31,67.56,113.31z"/>
<path fill="#f58220" d="M83.84,116.18c-1.79,0-3.25-0.51-4.45-1.55c-1.2-1.01-1.79-2.37-1.79-4.05c0-1.81,0.69-3.25,2.1-4.29
c1.41-1.04,3.14-1.55,5.22-1.55c1.84,0,3.36,0.35,4.53,1.01v-0.48c0-1.23-0.43-2.21-1.25-2.96c-0.85-0.75-1.87-1.12-3.09-1.12
c-0.91,0-1.73,0.21-2.48,0.64c-0.75,0.43-1.25,1.01-1.52,1.79l-2.88-1.23c0.4-1.01,1.15-1.92,2.29-2.77
c1.15-0.85,2.64-1.28,4.5-1.28c2.13,0,3.92,0.61,5.33,1.87c1.41,1.25,2.1,3.01,2.1,5.28v10.12h-3.01v-2.32h-0.13
C88.08,115.22,86.24,116.18,83.84,116.18z M84.35,113.31c1.31,0,2.48-0.48,3.52-1.44c1.07-0.96,1.6-2.1,1.6-3.44
c-0.88-0.72-2.21-1.09-4-1.09c-1.52,0-2.66,0.32-3.44,0.99c-0.77,0.67-1.17,1.44-1.17,2.32c0,0.83,0.35,1.47,1.07,1.95
C82.64,113.07,83.44,113.31,84.35,113.31z"/>
<path fill="#f58220" d="M101.19,116.18c-1.87,0-3.41-0.45-4.61-1.36c-1.23-0.91-2.1-2.05-2.66-3.41l2.8-1.17
c0.88,2.1,2.4,3.14,4.53,3.14c0.99,0,1.79-0.21,2.4-0.64c0.61-0.43,0.93-1.01,0.93-1.71c0-1.09-0.77-1.84-2.29-2.21L98.9,108
c-1.07-0.27-2.08-0.8-3.04-1.55c-0.96-0.77-1.44-1.79-1.44-3.09c0-1.47,0.67-2.66,1.97-3.6c1.31-0.93,2.85-1.39,4.66-1.39
c1.47,0,2.8,0.35,3.94,1.01c1.17,0.67,2,1.63,2.48,2.88l-2.72,1.12c-0.61-1.47-1.89-2.21-3.81-2.21c-0.93,0-1.71,0.19-2.34,0.59
c-0.64,0.4-0.96,0.91-0.96,1.57c0,0.96,0.75,1.6,2.21,1.95l3.3,0.77c1.57,0.37,2.72,0.99,3.49,1.87
c0.75,0.88,1.12,1.89,1.12,3.01c0,1.49-0.61,2.74-1.84,3.76C104.71,115.7,103.13,116.18,101.19,116.18z"/>
<path fill="#f58220" d="M117.58,116.18c-2.53,0-4.58-0.85-6.15-2.53c-1.57-1.68-2.37-3.81-2.37-6.37c0-2.42,0.77-4.53,2.29-6.29
c1.55-1.76,3.49-2.64,5.89-2.64c2.48,0,4.45,0.8,5.94,2.42c1.49,1.63,2.24,3.78,2.24,6.47l-0.03,0.59h-13.19
c0.08,1.68,0.67,3.01,1.68,4c1.04,0.99,2.24,1.47,3.62,1.47c2.24,0,3.78-0.96,4.58-2.88l2.8,1.17c-0.53,1.31-1.44,2.37-2.69,3.25
C120.93,115.73,119.39,116.18,117.58,116.18z M122.08,105.26c-0.08-0.96-0.51-1.87-1.31-2.72c-0.8-0.85-2-1.31-3.6-1.31
c-1.17,0-2.16,0.37-3.01,1.09c-0.85,0.72-1.44,1.71-1.76,2.93L122.08,105.26L122.08,105.26z"/>
<path fill="#f58220" d="M39.25,59.42l7.69-49.28c0.27-1.68,2.52-2.08,3.31-0.57l8.26,15.47L39.25,59.42z M93.92,71.39
l-7.34-45.39c-0.22-1.41-1.99-1.99-3.01-0.97L37.35,71.39l25.59,14.36c1.59,0.88,3.58,0.88,5.17,0L93.92,71.39z M73.14,31.8
l-5.92-11.27c-0.66-1.28-2.47-1.28-3.14,0l-26.03,46.4L73.14,31.8z"/>
</g>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><g fill="#f58220"><path d="M11.4 115.62H8.25v-24.4H22.5v3.01H11.4v8.02h10.04v2.93H11.42v10.44h-.02zM27.92 94.74c-.43.43-.96.64-1.57.64-.61 0-1.15-.21-1.57-.64-.43-.43-.64-.96-.64-1.57s.21-1.15.64-1.57c.43-.43.96-.64 1.57-.64.61 0 1.15.21 1.57.64s.64.96.64 1.57-.22 1.11-.64 1.57zm0 20.88h-3.14v-16.7h3.14v16.7zM34.47 115.62h-3.14v-16.7h3.01v2.72h.13c.32-.91.96-1.65 1.97-2.24.99-.59 1.95-.88 2.88-.88s1.71.13 2.34.4l-1.2 2.93c-.4-.16-.96-.24-1.68-.24-1.15 0-2.13.45-3.01 1.36-.88.91-1.31 2.08-1.31 3.52v9.13zM49.23 116.18c-2.53 0-4.58-.85-6.15-2.53s-2.37-3.81-2.37-6.37c0-2.42.77-4.53 2.29-6.29 1.55-1.76 3.49-2.64 5.89-2.64 2.48 0 4.45.8 5.94 2.42 1.49 1.63 2.24 3.78 2.24 6.47l-.03.59H43.85c.08 1.68.67 3.01 1.68 4 1.04.99 2.24 1.47 3.62 1.47 2.24 0 3.78-.96 4.58-2.88l2.8 1.17c-.53 1.31-1.44 2.37-2.69 3.25-1.25.89-2.8 1.34-4.61 1.34zm4.51-10.92c-.08-.96-.51-1.87-1.31-2.72-.8-.85-2-1.31-3.6-1.31-1.17 0-2.16.37-3.01 1.09-.85.72-1.44 1.71-1.76 2.93l9.68.01zM68.1 116.18c-1.28 0-2.42-.27-3.44-.83-1.01-.53-1.76-1.23-2.26-2.05h-.13v2.32h-3.01v-24.4h3.14v7.7l-.13 2.32h.13c.51-.83 1.25-1.49 2.26-2.05 1.01-.53 2.16-.83 3.44-.83 2.16 0 4.02.85 5.6 2.56 1.57 1.71 2.34 3.81 2.34 6.34s-.77 4.64-2.34 6.34c-1.58 1.73-3.44 2.58-5.6 2.58zm-.54-2.87c1.47 0 2.72-.56 3.76-1.65 1.04-1.09 1.57-2.56 1.57-4.37s-.53-3.28-1.57-4.37c-1.04-1.09-2.29-1.65-3.76-1.65s-2.74.53-3.76 1.63c-1.01 1.09-1.55 2.56-1.55 4.4 0 1.84.51 3.3 1.55 4.4 1.05 1.07 2.3 1.61 3.76 1.61zM83.84 116.18c-1.79 0-3.25-.51-4.45-1.55-1.2-1.01-1.79-2.37-1.79-4.05 0-1.81.69-3.25 2.1-4.29 1.41-1.04 3.14-1.55 5.22-1.55 1.84 0 3.36.35 4.53 1.01v-.48c0-1.23-.43-2.21-1.25-2.96-.85-.75-1.87-1.12-3.09-1.12-.91 0-1.73.21-2.48.64-.75.43-1.25 1.01-1.52 1.79l-2.88-1.23c.4-1.01 1.15-1.92 2.29-2.77 1.15-.85 2.64-1.28 4.5-1.28 2.13 0 3.92.61 5.33 1.87 1.41 1.25 2.1 3.01 2.1 5.28v10.12h-3.01v-2.32h-.13c-1.23 1.93-3.07 2.89-5.47 2.89zm.51-2.87c1.31 0 2.48-.48 3.52-1.44 1.07-.96 1.6-2.1 1.6-3.44-.88-.72-2.21-1.09-4-1.09-1.52 0-2.66.32-3.44.99-.77.67-1.17 1.44-1.17 2.32 0 .83.35 1.47 1.07 1.95.71.47 1.51.71 2.42.71zM101.19 116.18c-1.87 0-3.41-.45-4.61-1.36a7.894 7.894 0 01-2.66-3.41l2.8-1.17c.88 2.1 2.4 3.14 4.53 3.14.99 0 1.79-.21 2.4-.64.61-.43.93-1.01.93-1.71 0-1.09-.77-1.84-2.29-2.21L98.9 108c-1.07-.27-2.08-.8-3.04-1.55-.96-.77-1.44-1.79-1.44-3.09 0-1.47.67-2.66 1.97-3.6 1.31-.93 2.85-1.39 4.66-1.39 1.47 0 2.8.35 3.94 1.01 1.17.67 2 1.63 2.48 2.88l-2.72 1.12c-.61-1.47-1.89-2.21-3.81-2.21-.93 0-1.71.19-2.34.59-.64.4-.96.91-.96 1.57 0 .96.75 1.6 2.21 1.95l3.3.77c1.57.37 2.72.99 3.49 1.87.75.88 1.12 1.89 1.12 3.01 0 1.49-.61 2.74-1.84 3.76-1.21 1.01-2.79 1.49-4.73 1.49zM117.58 116.18c-2.53 0-4.58-.85-6.15-2.53-1.57-1.68-2.37-3.81-2.37-6.37 0-2.42.77-4.53 2.29-6.29 1.55-1.76 3.49-2.64 5.89-2.64 2.48 0 4.45.8 5.94 2.42 1.49 1.63 2.24 3.78 2.24 6.47l-.03.59H112.2c.08 1.68.67 3.01 1.68 4 1.04.99 2.24 1.47 3.62 1.47 2.24 0 3.78-.96 4.58-2.88l2.8 1.17c-.53 1.31-1.44 2.37-2.69 3.25-1.26.89-2.8 1.34-4.61 1.34zm4.5-10.92c-.08-.96-.51-1.87-1.31-2.72-.8-.85-2-1.31-3.6-1.31-1.17 0-2.16.37-3.01 1.09-.85.72-1.44 1.71-1.76 2.93l9.68.01zM39.25 59.42l7.69-49.28c.27-1.68 2.52-2.08 3.31-.57l8.26 15.47-19.26 34.38zm54.67 11.97L86.58 26c-.22-1.41-1.99-1.99-3.01-.97L37.35 71.39l25.59 14.36c1.59.88 3.58.88 5.17 0l25.81-14.36zM73.14 31.8l-5.92-11.27c-.66-1.28-2.47-1.28-3.14 0l-26.03 46.4L73.14 31.8z"/></g></svg>

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -1,7 +1 @@
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 128 128">
<path fill="#f58220" d="M27.35,80.52l10.68-68.44c0.37-2.33,3.5-2.89,4.6-0.8l11.48,21.48L27.35,80.52z M103.29,97.15
L93.1,34.11c-0.31-1.96-2.76-2.76-4.17-1.35L24.71,97.15l35.54,19.95c2.21,1.23,4.97,1.23,7.18,0L103.29,97.15z M74.44,42.15
L66.21,26.5c-0.92-1.78-3.44-1.78-4.36,0L25.7,90.95L74.44,42.15z"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill="#f58220" d="M27.35 80.52l10.68-68.44c.37-2.33 3.5-2.89 4.6-.8l11.48 21.48-26.76 47.76zm75.94 16.63L93.1 34.11c-.31-1.96-2.76-2.76-4.17-1.35L24.71 97.15l35.54 19.95a7.447 7.447 0 007.18 0l35.86-19.95zm-28.85-55L66.21 26.5c-.92-1.78-3.44-1.78-4.36 0L25.7 90.95l48.74-48.8z"/></svg>

Before

Width:  |  Height:  |  Size: 473 B

After

Width:  |  Height:  |  Size: 353 B