]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
In customizer Gulp tasks, don't print a $foundation-palette override if no color...
authorGeoff Kimball <geoff@zurb.com>
Tue, 29 Mar 2016 16:32:54 +0000 (09:32 -0700)
committerGeoff Kimball <geoff@zurb.com>
Tue, 29 Mar 2016 16:32:54 +0000 (09:32 -0700)
customizer/complete.json
customizer/lib/sass.js

index 3ec9134cf54126d5d77bc5104d964805eaa2845d..9244c56190a67605d790bb0165c62e619bd1cc4a 100644 (file)
@@ -42,9 +42,5 @@
     "top_bar",
     "visibility",
     "float"
-  ],
-  "variables": {
-    "primary-color": "#2199e8",
-    "alert-color": "#ec5840"
-  }
+  ]
 }
index 74c09c4d85283399360bfcab1da24b25cd6ab57b..1df0a10712081258c28f5ea8d95e3cc21b61bd2d 100644 (file)
@@ -48,7 +48,9 @@ module.exports = function(config, modules, variables) {
     }
   }
 
-  variableList.push(createPaletteMap(colorList));
+  if (!empty(colorList)) {
+    variableList.push(createPaletteMap(colorList));
+  }
 
   // Create module exports with @include
   for (var i in modules) {