Skip to content
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.

Commit

Permalink
Add @syntax-background-color guard
Browse files Browse the repository at this point in the history
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
  • Loading branch information
simurai committed Apr 6, 2015
1 parent 0eb26fe commit 61cbf92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions styles/ui-variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -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 -----------------
Expand Down

0 comments on commit 61cbf92

Please sign in to comment.