-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcolors.html
238 lines (219 loc) · 7.9 KB
/
colors.html
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
---
layout: default
title: Colors
subnav:
- Brand
- UI
- Pop
- Gray
- Text
- Topics
---
<section id="brand-colors">
<h2 id="Brand" class="m-b-1-xs">Brand Colors</h2>
<p class="m-b-2-xs">Use the color class for any of these classes, just replace <code>[color]</code> with the name of the color you want. The last six colors are used exclusively for the Ubora brand.</p>
<table class="table-border-rows col-60-xl m-b-3-xs">
<thead>
<th>Class</th>
<th>Property</th>
</thead>
<tbody>
<tr>
<td><code>.brand-bg-[color]</code></td>
<td><code>background-color</code></td>
</tr>
<tr>
<td><code>.brand-color-[color]</code></td>
<td><code>color</code></td>
</tr>
<tr>
<td><code>.brand-border-[color]</code></td>
<td><code>border-color</code></td>
</tr>
<tr>
<td><code>.brand-fill-[color]</code></td>
<td><code>fill</code> <em class="text-6-xs">(Used for SVGs)</em></td>
</tr>
<tr>
<td><code>.brand-stroke-[color]</code></td>
<td><code>stroke</code> <em class="text-6-xs">(Used for SVGs)</em></td>
</tr>
</tbody>
</table>
<ul class="list-unstyled guide-color guide-colors-brand overflow-hidden-xs m-b-4-xs"></ul><!-- List items built by JS -->
</section>
<section id="ui-colors">
<h2 id="UI" class="m-b-1-xs">UI Colors</h2>
<p class="m-b-2-xs">Treehouse utilizes colors in various parts of our app UI. Most of our app is gray, so color is rather important. Each of the UI colors has utility classes you can use to apply the color to different parts of an element. Use the color class for any of these classes, just replace <code>[color]</code> with the name of the color you want.</p>
<table class="table-border-rows col-60-xl m-b-3-xs">
<thead>
<th>Class</th>
<th>Property</th>
</thead>
<tbody>
<tr>
<td><code>.bg-[color]</code></td>
<td><code>background-color</code></td>
</tr>
<tr>
<td><code>.color-[color]</code></td>
<td><code>color</code></td>
</tr>
<tr>
<td><code>.border-[color]</code></td>
<td><code>border-color</code></td>
</tr>
<tr>
<td><code>.fill-[color]</code></td>
<td><code>fill</code> <em class="text-6-xs">(Used for SVGs)</em></td>
</tr>
<tr>
<td><code>.stroke-[color]</code></td>
<td><code>stroke</code> <em class="text-6-xs">(Used for SVGs)</em></td>
</tr>
</tbody>
</table>
<ul class="list-unstyled guide-color guide-colors-ui overflow-hidden-xs m-b-4-xs"></ul><!-- List items built by JS -->
</section>
<section id="pop-colors">
<h2 id="Pop" class="m-b-1-xs">Pop Colors</h2>
<p class="m-b-2-xs">These accent colors are used in illustrations and throughout the UI. Each of the UI colors has utility classes you can use to apply the color to different parts of an element. Use the color class for any of these classes, just replace <code>[color]</code> with the name of the color you want.</p>
<table class="table-border-rows col-60-xl m-b-3-xs">
<thead>
<th>Class</th>
<th>Property</th>
</thead>
<tbody>
<tr>
<td><code>.pop-bg-[color]</code></td>
<td><code>background-color</code></td>
</tr>
<tr>
<td><code>.pop-color-[color]</code></td>
<td><code>color</code></td>
</tr>
<tr>
<td><code>.pop-border-[color]</code></td>
<td><code>border-color</code></td>
</tr>
<tr>
<td><code>.pop-fill-[color]</code></td>
<td><code>fill</code> <em class="text-6-xs">(Used for SVGs)</em></td>
</tr>
<tr>
<td><code>.pop-stroke-[color]</code></td>
<td><code>stroke</code> <em class="text-6-xs">(Used for SVGs)</em></td>
</tr>
</tbody>
</table>
<ul class="list-unstyled guide-color guide-colors-pop overflow-hidden-xs m-b-4-xs"></ul><!-- List items built by JS -->
</section>
<section id="gray-colors">
<h2 id="Gray" class="m-b-1-xs">Gray Colors</h2>
<p class="m-b-2-xs">Use the color class for any of these classes, just replace <code>[color]</code> with the name of the color you want.</p>
<table class="table-border-rows col-60-xl m-b-3-xs">
<thead>
<th>Class</th>
<th>Property</th>
</thead>
<tbody>
<tr>
<td><code>.bg-[color]</code></td>
<td><code>background-color</code></td>
</tr>
<tr>
<td><code>.color-[color]</code></td>
<td><code>color</code></td>
</tr>
<tr>
<td><code>.border-[color]</code></td>
<td><code>border-color</code></td>
</tr>
<tr>
<td><code>.fill-[color]</code></td>
<td><code>fill</code> <em class="text-6-xs">(Used for SVGs)</em></td>
</tr>
<tr>
<td><code>.stroke-[color]</code></td>
<td><code>stroke</code> <em class="text-6-xs">(Used for SVGs)</em></td>
</tr>
</tbody>
</table>
<ul class="list-unstyled guide-color guide-colors-gray overflow-hidden-xs m-b-4-xs"></ul><!-- List items built by JS -->
</section>
<section id="text-colors">
<h2 id="Text" class="m-b-1-xs">Text Colors</h2>
<p class="m-b-2-xs">Use the color class for any of these classes, just replace <code>[color]</code> with the name of the color you want.</p>
<table class="table-border-rows col-60-xl m-b-3-xs">
<thead>
<th>Class</th>
<th>Property</th>
</thead>
<tbody>
<tr>
<td><code>.text-bg-[color]</code></td>
<td><code>background-color</code></td>
</tr>
<tr>
<td><code>.text-color-[color]</code></td>
<td><code>color</code></td>
</tr>
<tr>
<td><code>.text-border-[color]</code></td>
<td><code>border-color</code></td>
</tr>
<tr>
<td><code>.text-fill-[color]</code></td>
<td><code>fill</code> <em class="text-6-xs">(Used for SVGs)</em></td>
</tr>
<tr>
<td><code>.text-stroke-[color]</code></td>
<td><code>stroke</code> <em class="text-6-xs">(Used for SVGs)</em></td>
</tr>
</tbody>
</table>
<ul class="list-unstyled guide-color guide-colors-text overflow-hidden-xs m-b-4-xs"></ul><!-- List items built by JS -->
</section>
<section id="category-colors">
<h2 id="Categories" class="m-b-1-xs">Category Colors</h2>
<p class="m-b-2-xs">Leap contains utility classes for all variations of topic colors within Treehouse. These colors are used to denote the topic of courses and for various UI associated with a course. Use the color class for any of these classes, just replace <code>[color]</code> with the name of the color you want.</p>
<table class="table-border-rows col-60-xl m-b-3-xs">
<thead>
<th>Class</th>
<th>Property</th>
</thead>
<tbody>
<tr>
<td><code>.category-bg-[color]-[value]</code></td>
<td><code>background-color</code></td>
</tr>
<tr>
<td><code>.category-color-[color]-[value]</code></td>
<td><code>color</code></td>
</tr>
<tr>
<td><code>.category-border-[color]-[value]</code></td>
<td><code>border-color</code></td>
</tr>
<tr>
<td><code>.category-fill-[color]-[value]</code></td>
<td><code>fill</code> <em class="text-6-xs">(Used for SVGs)</em></td>
</tr>
<tr>
<td><code>.category-stroke-[color]-[value]</code></td>
<td><code>stroke</code> <em class="text-6-xs">(Used for SVGs)</em></td>
</tr>
</tbody>
</table>
<ul class="list-unstyled guide-color guide-colors-category overflow-hidden-xs"></ul><!-- List items built by JS -->
</section>
<!-- Sass to JS goodness -->
<div id="brandColorData"></div>
<div id="uiColorData"></div>
<div id="popColorData"></div>
<div id="grayColorData"></div>
<div id="textColorData"></div>
<div id="categoryColorData"></div>
<script src="js/prism.js"></script>
<script src="js/sass-to-js.js"></script>
<script src="js/sass-to-js-custom-functions.js"></script>