-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.less
167 lines (140 loc) · 3.26 KB
/
styles.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatical=
ly
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/
/*
* Examples
* (To see them, uncomment and save)
*/
@import "packages/atom-material-syntax/styles/colors";
@magenta: #f0f;
@yellow: #ff0;
@aqua: #0ff;
@lime-green: #32cd32;
@forest-green: #228B22;
@brown: #987;
// style the background color of the tree view
.tree-view {
// background-color: whitesmoke;
}
// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor {
// color: @strong-orange;
// color: white;
// background-color: hsl(180, 24%, 12%);
.syntax--js,
.syntax--ts,
.syntax--cs {
&.syntax--variable {
// const/let variables
&.syntax--other,
&.syntax--other.syntax--object {
color: @strong-orange;
}
//CONSTANTS
&.syntax--constant {
color: @teal;
font-style: italic;
}
}
// properties (declaration and usage)
&.syntax--unquoted,
&.syntax--variable.syntax--property {
color: @indigo;
}
// const/let/function keywords
&.syntax--keyword.syntax--control,
&.syntax--keyword.syntax--class,
&.syntax--keyword.syntax--using,
&.syntax--keyword.syntax--namespace,
&.syntax--storage.syntax--type,
&.syntax--storage {
font-weight: bold;
}
// functions
// &.syntax--function,
&.syntax--method-call .syntax--method {
color: @blue;
}
// numbers/logic
&.syntax--constant.syntax--numeric {
color: @magenta;
}
&.syntax--operator {
&.syntax--arithmetic,
&.syntax--comparison,
&.syntax--logical,
&.syntax--relational {
color: @yellow;
}
&.syntax--bitwise,
&.syntax--augmented {
color: @light-orange;
}
}
// classes
&.syntax--class.syntax--name {
color: @cyan;
}
// commas
&.syntax--comma {
color: @light-teal;
}
// strings
&.syntax--string {
&.syntax--quoted,
&.syntax--single,
&.syntax--double,
&.syntax--punctuation.syntax--end,
&.syntax--punctuation.syntax--begin {
color: @lime-green;
}
}
.syntax--constant.syntax--character.syntax--escape {
color: @forest-green;
}
// string interpolation
&.syntax--quasi.syntax--punctuation {
color: @pink;
}
// undefined
&.syntax--undefined {
color: @pink;
}
}
.syntax--jsx {
// tags/components
&.syntax--component,
&.syntax--entity.syntax--name.syntax--tag {
// color: @pink;
}
// tag/component attributes
&.syntax--entity.syntax--other.syntax--attribute-name {
color: @indigo;
}
.syntax--embedded {
&.syntax--punctuation.syntax--section {
color: @light-orange;
}
.syntax--source {
}
}
}
.vertical {
.multi-wrap-guide:nth-child(1) .multi-wrap-guide-line {
background-color: fadeout(white, 60%);
width: 1px;
}
.multi-wrap-guide:nth-child(2) .multi-wrap-guide-line {
background-color: fadeout(red, 60%);
width: 2px;
}
}
}