diff options
| author | 2017-10-26 13:27:23 +0200 | |
|---|---|---|
| committer | 2017-10-26 13:27:23 +0200 | |
| commit | 45a50ff2b102df140abc625c5a9fb9ce132b4bb9 (patch) | |
| tree | 31013061af4eac926a880b5a574e580a9d5dcacb /tools/_svgo.yml | |
| parent | 0b66a1e8d55f3b8a35872610c279a951b1a4dff2 (diff) | |
| download | flat-remix-45a50ff2b102df140abc625c5a9fb9ce132b4bb9.tar.gz flat-remix-45a50ff2b102df140abc625c5a9fb9ce132b4bb9.zip | |
added missing app icons from papirus icon theme (will be modified) new icons for places \
added svg optimization tools
Diffstat (limited to 'tools/_svgo.yml')
| -rw-r--r-- | tools/_svgo.yml | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/tools/_svgo.yml b/tools/_svgo.yml new file mode 100644 index 000000000..635dba262 --- /dev/null +++ b/tools/_svgo.yml @@ -0,0 +1,126 @@ +# Default config for SVGO +# +# Usage: +# +# for d in Papirus/16x16/* Papirus/22x22/* Papirus/24x24/* +# do +# svgo --config=_svgo.yml -f "$d" +# done +# +# or +# +# svgo --config=_svgo.yml -f Papirus/16x16/actions +# +# or +# +# svgo --config=_svgo.yml -i FILE + +full: true +multipass: true + +plugins: + + # removes doctype declaration + - removeDoctype + + # removes XML processing instructions + - removeXMLProcInst + + # removes comments + - removeComments + + # removes <metadata> + - removeMetadata + + # removes editors namespaces, elements and attributes + - removeEditorsNSData + + # cleanups attributes from newlines, trailing and repeating spaces + - cleanupAttrs + + # removes unused IDs + - cleanupIDs: + minify: false + preserve: [ 'current-color-scheme' ] + + # removes elements in <defs> without id + - removeUselessDefs + + # rounds numeric values to the fixed precision + # opacity="0.72000004" --> opactity=".72" + # removes default ‘px’ units + # y="749.936002px" --> y="749.936" + - cleanupNumericValues: + floatPrecision: 3 + leadingZero: true + defaultPx: true + convertToPx: false + + # rounds list of values to the fixed precision + # viewBox="0 0 16px 16px" --> viewBox="0 0 16 16" + - cleanupListOfValues: + floatPrecision: 2 + leadingZero: true + defaultPx: true + convertToPx: false + + # converts colors: rgb() to #rrggbb + - convertColors: + shorthex: false + shortname: false + + # removes unknown elements content and attributes + # don't touch attrs with default values + # - removeUnknownsAndDefaults: + # defaultAttrs: false + + # remove or cleanup enable-background attribute when possible + - cleanupEnableBackground + + # removes empty <text> elements + - removeEmptyText + + # removes empty attributes + - removeEmptyAttrs + + # removes empty container elements + - removeEmptyContainers + + # removes unused namespaces declaration + - removeUnusedNS + + # sorts element attributes (disabled by default) + - sortAttrs: + order: + - 'id' + - 'fill' + - 'stroke' + - 'opacity' + - 'style' + - 'class' + - 'width' + - 'height' + - 'x' + - 'x1' + - 'x2' + - 'y' + - 'y1' + - 'y2' + - 'cx' + - 'cy' + - 'r' + - 'd' + + # removes <title> (disabled by default) + - removeTitle: true + + # removes <desc> (only non-meaningful by default) + - removeDesc + +# configure the indent (default 4 spaces) used by `--pretty` here: +# +# @see https://github.com/svg/svgo/blob/master/lib/svgo/js2svg.js#L6 for more config options +# +js2svg: + pretty: true + indent: ' ' |
