FUNT Add Sass vars for color customization
authorHumberto Alfonso Díaz <humberto.alfonso@asvito.es>
Thu, 20 Jun 2019 07:05:25 +0000 (09:05 +0200)
committerLorenzo Tilve <ltilve@igalia.com>
Tue, 4 Feb 2020 08:42:15 +0000 (09:42 +0100)
src/styles/app.scss
src/styles/main.scss
src/styles/svg.scss

index f986a37..f08ff56 100644 (file)
@@ -1,3 +1,8 @@
+$colors: (
+  primary:          #00ADDC,
+  font:             #999999
+);
+
 @import "main.scss";
 @import "svg.scss";
 @import "portrait.scss";
index 226509e..5aca22b 100644 (file)
@@ -6,7 +6,7 @@ html {
 body {
     font-size: 1.2rem;
     font-family: Arial;
-    color: #999999;
+    color: map-get($colors, font);
     margin: 5%;
 
     .parent {
index eddbbe5..2aa0441 100644 (file)
@@ -4,7 +4,7 @@ body {
         polygon,
         linearGradient,
         rect {
-            fill: #00ADDC !important;
+            fill: map-get($colors, primary) !important;
         }
 
         circle {