From 61cbf9259223bbf926fcbb2363b23c5e30cd9cfa Mon Sep 17 00:00:00 2001 From: simurai Date: Mon, 6 Apr 2015 11:06:42 +0900 Subject: [PATCH] Add @syntax-background-color guard In case the variable doesn't exist, it falls back to the core variable https://github.com/atom/atom/blob/master/static/variables/syntax-variables.less#L9 Note: The color in the guard actually doesn't matter. For some reason the one in atom/static is used. Fixes #16 --- styles/ui-variables.less | 1 + 1 file changed, 1 insertion(+) diff --git a/styles/ui-variables.less b/styles/ui-variables.less index 11e9c3a..87cae6a 100644 --- a/styles/ui-variables.less +++ b/styles/ui-variables.less @@ -3,6 +3,7 @@ ** ---------------------------------------------- */ @import "syntax-variables"; +.ui-syntax-color() { @syntax-background-color: hsl(220,1%,98%); } .ui-syntax-color(); // fallback color @ui-syntax-color: @syntax-background-color; // Color guards -----------------