From b25a67dc0f3bdd1251b1a02197c519fb35052346 Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Tue, 23 May 2017 13:59:21 -0700 Subject: [PATCH] Add svgo --- package.json | 3 ++- style.css | 6 +++++- svgo-config.yml | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 svgo-config.yml diff --git a/package.json b/package.json index b69bc60..21f5033 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "license": "MIT", "devDependencies": { "onchange": "^3.2.1", - "parallelshell": "^2.0.0" + "parallelshell": "^2.0.0", + "svgo": "^0.7.2" } } diff --git a/style.css b/style.css index bcf9b5c..23c7002 100644 --- a/style.css +++ b/style.css @@ -40,10 +40,14 @@ box-sizing: content-box; } -.icon svg { +.icon [stroke] { stroke: currentColor; } +.icon [fill]:not([fill=none]) { + fill: currentColor; +} + .tooltip { position: absolute; top: calc(100% + 1rem); diff --git a/svgo-config.yml b/svgo-config.yml new file mode 100644 index 0000000..38a34f3 --- /dev/null +++ b/svgo-config.yml @@ -0,0 +1,3 @@ +plugins: + - removeTitle: true + - convertShapeToPath: false