forked from hoodiehq/hoodie-css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolour-fonts.html
370 lines (333 loc) · 13.4 KB
/
colour-fonts.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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hoodie CSS Framework</title>
<link rel="stylesheet" href="./src/css/prod/hoodie.min.pref.css">
<script>
(function(){
function addFont() {
var style = document.createElement('style');
style.rel = 'stylesheet';
document.head.appendChild(style);
style.textContent = localStorage.firaSansWeb;
}
try {
if (localStorage.firaSansWeb) {
// The font is in localStorage, we can load it directly
addFont();
} else {
// We have to first load the font file asynchronously
var request = new XMLHttpRequest();
request.open('GET', './src/css/fonts.css', true);
request.onload = function() {
if (request.status >= 200 && request.status < 400) {
// We save the file in localStorage
localStorage.firaSansWeb = request.responseText;
// ... and load the font
addFont();
}
};
request.send();
}
} catch(ex) {
// maybe load the font synchronously for woff-capable browsers
// to avoid blinking on every request when localStorage is not available
}
}());
</script>
</head>
<body class="gray">
<header>
<section class="nav"></section>
</header>
<div class="content">
<div class="box">
<section class="cb teaser">
<aside>
<br />
<br />
<br />
<br />
<nav>
<a href="index.html">0. Intro & Contribute</a><br />
<a href="index.html">1. Preq & Setup / basic template</a><br />
<a href="index.html">1. Files, what & why?</a><br />
<a href="index.html">2. Customize your Website</a><br />
<a href="accessibility.html">3. Accessibility considerations</a><br />
<a href="colour-fonts.html">4. Colours and Fonts</a><br />
<a href="http://hood.ie/typographic-base.html" target="_blank">5. Typo & Icons</a><br />
<a href="images.html">6. Images</a><br />
<a href="index.html">7. Run Deployment, how to contribute and test all websites</a>
</nav>
</aside>
<article>
<h1>It's all your colour & typo here.</h1>
<p>
Here you'll find all the colours, you can use. Also how to apply the themes & can take a look at the fonts plus how to use them.
</p>
<ul>
<li><a href="#colours">Colours</a></li>
<li><a href="#themes">Themes</a></li>
<li><a href="#fonts">Fonts</a></li>
</ul>
</article>
</section>
<section class="cb">
<article id="colours">
<h2>Colours</h2>
<p>
The variables we are using across the FW including the HEX.
</p>
<p>
<div style="background-color: #e94e1b; height: 40px;"></div>
$orange: #e94e1b;
<small>
Primary Colour / Header / Footer / Links
</small>
</p>
<p>
<div style="background-color: #f9c4b3; height: 40px;"></div>
$orange-l: #f9c4b3;
<small>
Secondary Colour / SVG Logos
</small>
</p>
<p>
<div style="background-color: #312783; height: 40px;"></div>
$blue: #312783;
<small>
Primary Colour / Header / Footer / Links
</small>
</p>
<p>
<div style="background-color: #bfbcd8; height: 40px;"></div>
$blue-l: #bfbcd8;
<small>
Secondary Colour / SVG Logos
</small>
</p>
<p>
<div style="background-color: #0b8e36; height: 40px;"></div>
$green: #0b8e36;
<small>
Primary Colour / Header / Footer / Links
</small>
</p>
<p>
<div style="background-color: #a9d6b8; height: 40px;"></div>
$green-l: #a9d6b8;
<small>
Secondary Colour / SVG Logos
</small>
</p>
<p>
<div style="background-color: #f9b233; height: 40px;"></div>
$yellow: #f9b233;
<small>
Primary Colour / Header / Footer / Links
</small>
</p>
<p>
<div style="background-color: #fce3b6; height: 40px;"></div>
$yellow-l: #fce3b6;
<small>
Secondary Colour / SVG Logos
</small>
</p>
<p>
<div style="background-color: #520644; height: 40px;"></div>
$lilac: #520644;
<small>
Primary Colour / Header / Footer / Links
</small>
</p>
<p>
<div style="background-color: #c1a7bc; height: 40px;"></div>
$lilac-l: #c1a7bc;
<small>
Secondary Colour / SVG Logos
</small>
</p>
<p>
<div style="background-color: #282828; height: 40px;"></div>
$gray-1: #282828;
<small>
Primary Colour / Header / Footer / Links
</small>
</p>
<p>
<div style="background-color: #b3b3b3; height: 40px;"></div>
$gray-5: #b3b3b3;
<small>
Secondary Colour / SVG Logos
</small>
</p>
<p>
<div style="background-color: #404040; height: 40px;"></div>
$gray-2: #404040;
<small>
Font colour
</small>
</p>
<p>
<div style="background-color: #606060; height: 40px;"></div>
$gray-3: #606060;
<small>
Font colour
</small>
</p>
<p>
<div style="background-color: #999; height: 40px;"></div>
$gray-4: #999;
<small>
Font colour
</small>
</p>
<p>
<div style="background-color: #fdfdfd; height: 40px;"></div>
$gray-6: #fdfdfd;
<small>
Background
</small>
</p>
</article>
</section>
<section class="cb">
<article id="themes">
<h2>Themes</h2>
<p>
Using and changing the themes is pretty straight forward. Just add the right class to your <body> - tag.
<pre>
<code class="language-markup">
<body class="orange">
</code>
</pre>
<small>Landing pages and related to hoodie</small>
</p>
<p>
<pre>
<code class="language-markup">
<body class="blue">
</code>
</pre>
<small>Documentation + FAQ</small>
</p>
<p>
<pre>
<code class="language-markup">
<body class="green">
</code>
</pre>
<small>Blog + newsletter</small>
</p>
<p>
<pre>
<code class="language-markup">
<body class="lilac">
</code>
</pre>
<small>Community related + chat</small>
</p>
<p>
<pre>
<code class="language-markup">
<body class="gray">
</code>
</pre>
<small>Imprint + contact</small>
</p>
<p>
<pre>
<code class="language-markup">
<body class="yellow">
</code>
</pre>
<small>Not used anymore, because we've experienced issues with contrast for colour blind people.</small>
</p>
</article>
</section>
<section class="cb">
<article id="fonts">
<h2>Fonts</h2>
<p>
We are using:
<ul>
<li>Fira Sans - Light (300) <small>// not used right now</small></li>
<li>Fira Sans - Regular (500) <small>// text, navigation</small></li>
<li>Fira Sans - Medium (700) <small>// headlines</small></li>
<li>Fira Sans - Mono (500) <small>// code</small></li>
</p>
<h3>Please NOTE!</h3>
<p>
We’re using a font loading method which relies on the following script. It has to be included in the <head> file.
<pre>
<code class="language-javascript">
<script>
(function(){
function addFont() {
var style = document.createElement('style');
style.rel = 'stylesheet';
document.head.appendChild(style);
style.textContent = localStorage.firaSans;
}
try {
if (localStorage.firaSans) {
// The font is in localStorage, we can load it directly
addFont();
} else {
// We have to first load the font file asynchronously
var request = new XMLHttpRequest();
request.open('GET', '/dist/css/fonts.css', true);
request.onload = function() {
if (request.status >= 200 && request.status < 400) {
// We save the file in localStorage
localStorage.firaSans = request.responseText;
// ... and load the font
addFont();
}
};
request.send();
}
} catch(ex) {
// maybe load the font synchronously for woff-capable browsers
// to avoid blinking on every request when localStorage is not available
}
}());
</script>
</code>
</pre>
</p>
<!--
<hgroup>
<h1>H1</h1>
<h2>H2</h2>
<h3>H3</h3>
<h4>H4</h4>
<h5>H5</h5>
<h6>H6</h6>
</hgroup>
<p>
Lorem ipsum dolor sit amet, an qui utinam invidunt consulatu, oblique albucius <a href="#">id his, id discere</a> fierent dolores qui. Id vix elitr soluta consequuntur. Ex quod harum per. Cu dicat dolor intellegat eum.
</p>
<p>
Agam dicit legimus an vel. <strong>Assum eripuit accusamus has ad,</strong> mei omnes equidem legimus ex. <br /><br />
<em> Partiendo expetendis</em> interesset eum te, has id nullam principes concludaturque, choro malorum denique ne eum. <br />
<small>Eu postulant instructior est, solum mollis consequuntur ei pro. Inani viris nec ne.</small><br /><br />
-->
For more reference check
<a href="http://hood.ie/typographic-base.html" target="_blank">Typo & Icons</a>.
</p>
</article>
</section>
</div>
</div>
<footer>
<div class="footer">
<section class="cb footer-licensing">
<small>© 2012-2015 <a href="https://github.com/hoodiehq" target="_blank">the Hoodie Community</a> and other <a href="http://hood.ie/community#contributors">contributors</a>. Hoodie is licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank">Apache License 2.0</a>.<br />All pictures, photos and illustrations are owned by the Hoodie Open Source Project and licensed under <a href="http://creativecommons.org/licenses/by-nc-nd/4.0/deed.en" target="_blank">CC BY-NC-ND 4.0</a>.</small>
</section>
</div>
</footer>
</body>
</html>