Skip to content
This repository was archived by the owner on Sep 7, 2018. It is now read-only.

Commit a0ec94e

Browse files
committed
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. Issue atom/one-light-ui#16
1 parent 7bfd8f6 commit a0ec94e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

styles/ui-variables.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
** ---------------------------------------------- */
44

55
@import "syntax-variables";
6+
.ui-syntax-color() { @syntax-background-color: hsl(220,24%,20%); } .ui-syntax-color(); // fallback color
67
@ui-syntax-color: @syntax-background-color;
78

89
// Color guards -----------------

0 commit comments

Comments
 (0)