forked from BelaPlatform/bela_sample
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
365 lines (288 loc) · 14.9 KB
/
index.html
File metadata and controls
365 lines (288 loc) · 14.9 KB
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
<html>
<head>
<title>Design patterns for Inter/sections</title>
<link rel="stylesheet" type="text/css" href="styles/patternStyle.css" />
<link rel="stylesheet" type="text/css" href="styles/font-awesome.min.css" />
</head>
<body>
<div id="hero">
<img src="images/logo-header.svg">
<h1>A pattern library for <a href="http://intersections.io">Inter/sections</a></h1>
</div>
<div id="main">
<div class="sidebar">
<a href="#intro" class="no-plus">Intro</a>
<a href="#name-language" class="no-plus">Name and language</a>
<a href="#logo">Logo</a>
<span class="sublinks logo_section">
<a href="#logo-howto">How to use</a>
<a href="#logo-dont">How not to use</a>
</span>
<a href="#text">Text</a>
<span class="sublinks text_section">
<a href="#bodytext">Body Text</a>
<a href="#headings">Headings</a>
<a href="#anchor-tags">Anchor Tags</a>
</span>
<a href="#colour">Colour</a>
<span class="sublinks colour_section">
<a href="#using-colour">Using colour</a>
<a href="#base-colours">Base colours</a>
<a href="#accent-colours">Accent colours</a>
<a href="#text-over-colour">A note on text over colour</a>
</span>
<a href="#data">Data</a>
<span class="sublinks data_section">
<a href="#tables">Tables</a>
<a href="#u-lists">Unordered lists</a>
<a href="#o-lists">Ordered lists</a>
</span>
</div>
<div class="content">
<section>
<h2>This is the Inter/sections design library.<span id="intro" class="positioner"></span></h2>
<p>Since 2016, Inter/sections has been a symposium organised by the PhD students in the <a href='http://mat.qmul.ac.uk'>Media and Arts Technology program at Queen Mary University of London</a>.</p>
<p>The purpose of this pattern library is to provide a cohesive description of the design elements (colours, font choices, appearance, etc.) for Inter/sections, so future students have a base from which to build the brand for further iterations of this symposium.</p>
<h3>Resources</h3>
<p>The most up-to-date versions of all assets and templates are <a href="https://github.com/mat-intersections/assets">located on GitHub</a>. If you're building something important, put it on this GitHub. If you're updating something, modify the relevant file on GitHub. Research versions and single-use assets should live in the Google Drive of the relevant edition, but any potentially re-usable component should be on the GitHub.</p>
<p>This document references the type of assets that exist on the GH repo (for example the logo, swatches, fonts) but you might find other things there.</p>
<h3>Credits</h3>
<p>Past Inter/sections design teams:</p>
<ul>
<li><strong>2017:</strong> Victor Loux, Daniel Gàbana, Soomi Park, Astrid Bin</li>
<li><strong>2016:</strong> Daniel Gàbana, Soomi Park, Astrid Bin</li>
</ul>
<p>For suggestions or to report problems, please open a <a href="https://github.com/mat-intersections/pattern-library/issues">GitHub issue</a>. Please update the above lists yearly so that those after you know who to contact if they have questions!</p>
<p>Last updated: June 2017, by <a href="http://github.com/disastrid">Astrid Bin</a> & <a href="http://github.com/victorloux">Victor Loux</a>.</p>
</section>
<hr />
<section>
<h2>Name and language<span id="name-language" class="positioner"></span></h2>
<h3>Title<span id="fonts" class="sub-positioner"></span></h3>
<p>The name of this event is Inter/sections. Please note that the name should be spelled: <strong>Inter/sections</strong>.</p>
<p>
<i class="fa fa-times-circle warning" aria-hidden="true"></i> Do not write it as Inte<strong>rs</strong>ections, Inte<strong>r/S</strong>ections, or INTER/SECTIONS (unless it is part of an all-caps sentence).
</p>
<p>Consistently using the slash in the text form is important: we had to adopt this to differentiate ourselves from different events also called Intersections which popped up after the first edition, so it's not (just!) there as a stylisation trick to remind of the logo.</p>
</section>
<hr />
<section>
<h2>Logo<span id="logo" class="positioner"></span></h2>
<h3>How to use<span id="logo-howto" class="sub-positioner"></span></h3>
<p>The correct versions of the logo are available <a href="https://github.com/mat-intersections/assets/tree/master/Logo">in the assets repository</a>. Note that the 2016 and the initial 2017 logos were differents (lighter) than the current versions; so if you find these versions, do not use them and pick the ones in the repo.</p>
<p>Most of the time, the horizontal (landscape) version should be used.</p>
<img class="full-width" src="images/logo-horizontal.png" alt="Intersections logo">
<p>Where the logo needs to be laid over a dark background, an on-dark version of the logo also exists, with the text being white and very small optical corrections on the text paths to ensure contrast.</p>
<img class="full-width" src="images/logo-horizontal-dark.png" alt="Intersections logo">
<p>Minimum spacing should be applied as per the proportions below. One unit/circle = height from the top of INTER to the bottom of SECTIONS, need to be kept empty above and below the wordmark, and on each side of the logo:</p>
<img class="full-width" src="images/logo-proportions.png" alt="Intersections logo">
<p>“Boy does this sound complex!” I know buddy, this is why the logos in the repository are cropped perfectly. Normally you should get a bounding box around the logo which corresponds to these proportions: do not put anything else within that bounding box.</p>
<h3>How not to use the logo<span id="logo-dont" class="sub-positioner"></span></h3>
<img class="full-width" src="images/logo-wrong-uses.png" alt="Description of wrong uses of the logo">
</section>
<hr />
<section>
<h2>Text<span id="text" class="positioner"></span></h2>
<h3>Body text<span id="bodytext" class="sub-positioner"></span></h3>
<p>Body text uses the font <a href="https://github.com/JulietaUla/Montserrat">Montserrat</a> by Julieta Ulanovsky.</p>
<p>We use three weights:</p>
<ul>
<li>Regular (this text)</li>
<li><span class="semibold">Semibold in rare occasions</span></li>
<li><strong>Bold to have emphasis.</strong></li>
</ul>
<h3>Headings<span id="headings" class="sub-positioner"></span></h3>
<p>Headings are set in <a href="https://github.com/nathco/Office-Code-Pro">Office Code Pro</a>, by Nathan Rutsky. Headings are <strong>always in full caps</strong>.</p>
<p>The weight depends on the absolute importance of the heading (<h2> to <h3> = Bold; lower = Medium; do not use other weights). Headings also generally have a lower tracking (letter-spacing) but there is no strict rule on this (as this will depend on the optical size of your header; judge by eye based on existing applications on print and web).</p>
<span class="heading-example">Example of a header</span><br>
<span class="small-heading-example">Example of a small header</span>
<p><i class="fa fa-info-circle warning" aria-hidden="true"></i> It's worth noting that the webfonts included in this pattern library and in the resources are an <strong>optimised subset</strong> of the normal font, they do not have the lowercase letters nor many special characters (to save on the filesize). If your titles ever look weird this might be why and you'll need to regenerate it on Fontsquirrel using Advanced options.</p>
<h3>Anchor tags<span id="anchor-tags" class="sub-positioner"></h3>
<p>Hyperlinks <a href="javascript:return false;">look like this one</a>: standard underline, and in teal. If the text is teal on white then links should be a light shade of teal.</p>
</section>
<hr />
<section>
<h2>Colour<span id="colour" class="positioner"></span></h2>
<h3>Using colours<span id="using-colour" class="sub-positioner"></span></h3>
<p>The colour scheme for Inter/sections was developed in 2016, and consists of two colour families: base colours, and accent colours. Base colours (from the logo) should ideally remain the same every year, whereas accent colours can vary between editions.</p>
<p>To use colours, refer to the tables below. On the web, always import <a href="https://github.com/mat-intersections/assets/tree/master/Swatches">the SCSS file that can be found in the assets repository</a>: variables are named with a prefix (row) to indicate hue, and the suffix (column) to indicate the saturation. For example to get a full teal (first cell) you would call <code>$teal-base</code>.</p>
<p>On print, import the ASE (Swatch Exchange) file that is <a href="https://github.com/mat-intersections/assets/tree/master/Swatches">also available in the repository</a>. InDesign, Illustrator and Photoshop support this: <a href="http://i.imgur.com/ZjhgR1p.jpg">click the little arrow in the Swatches palette, and choose Load Swatch</a>. This will avoid lengthy and error-prone copying and pasting: all the colours will be there!</p>
<p><i class="fa fa-times-circle warning" aria-hidden="true"></i> Do not apply a tint, or lowered opacity, on a full colour. Use the colour variations available in the swatches below instead.</p>
<h3>Base colours<span id="base-colours" class="sub-positioner"></span></h3>
<table class="color-table">
<tr>
<td></td>
<td><p>-base</p></td>
<td><p>-main</p></td>
<td><p>-01</p></td>
<td><p>-02</p></td>
<td><p>-03</p></td>
</tr>
<tr style="height: 100px;">
<td><p>$teal-</p></td>
<td class="color colour-teal-base"></td>
<td class="color colour-teal-main"></td>
<td class="color colour-teal-01"></td>
<td class="color colour-teal-02"></td>
<td class="color colour-teal-03"></td>
</tr>
<tr style="height: 100px;">
<td><p>$gold-</p></td>
<td class="color colour-gold-base"></td>
<td class="color colour-gold-main"></td>
<td class="color colour-gold-01"></td>
<td class="color colour-gold-02"></td>
<td class="color colour-gold-03"></td>
</tr>
<tr style="height: 100px;">
<td><p>$grey-</p></td>
<td class="color colour-grey-base"></td>
<td class="color colour-grey-main"></td>
<td class="color colour-grey-01"></td>
<td class="color colour-grey-02"></td>
<td class="color colour-grey-03"></td>
</tr>
</table>
<h3>Accent colours<span id="accent-colours" class="sub-positioner"></span></h3>
<table class="color-table">
<tr>
<td></td>
<td><p>-base</p></td>
<td><p>-main</p></td>
<td><p>-01</p></td>
<td><p>-02</p></td>
<td><p>-03</p></td>
</tr>
<tr style="height: 100px;">
<td><p>$blue-</p></td>
<td class="color colour-blue-base"></td>
<td class="color colour-blue-main"></td>
<td class="color colour-blue-01"></td>
<td class="color colour-blue-02"></td>
<td class="color colour-blue-03"></td>
</tr>
<tr style="height: 100px;">
<td><p>$ruby-</p></td>
<td class="color colour-ruby-base"></td>
<td class="color colour-ruby-main"></td>
<td class="color colour-ruby-01"></td>
<td class="color colour-ruby-02"></td>
<td class="color colour-ruby-03"></td>
</tr>
<tr style="height: 100px;">
<td><p>$coal-</p></td>
<td class="color colour-coal-base"></td>
<td class="color colour-coal-main"></td>
<td class="color colour-coal-01"></td>
<td class="color colour-coal-02"></td>
<td class="color colour-coal-03"></td>
</tr>
<tr>
<td><p>DIY</p></td>
<td class="diy-colour">
<p>
H: any<br>
S: 60-85<br>
L: 50-85
</p>
</td>
<td class="diy-colour">
<p>
H: any<br>
S: 60-90<br>
L: 63-95
</p>
</td>
<td class="diy-colour">
<p>
H: any<br>
S: 50-98<br>
L: 78-99
</p>
</td>
<td class="diy-colour">
<p>
H: any<br>
S: 11-18<br>
L: 92-97
</p>
</td>
<td class="diy-colour">
<p>
H: any<br>
S: 2-9<br>
L: 93-98
</p>
</td>
</tr>
</table>
<h3>A note on text over colours<span id="text-over-colour" class="sub-positioner"></span></h3>
<p>In general aim for the highest contrast possible: always use a full colour (<code>-base</code> or <code>-main</code> <strong>on top of</strong> white, or a <code>-02</code> or <code>-03</code> shade; or the inverse). When in doubt check if the <a href="https://www.w3.org/TR/WCAG20/#contrast-ratiodef">contrast ratio</a> is greater than <strong>4.5:1</strong>, or 3:1 for large headings.</p>
<p>When making text over a lighter colour, do not make the text grey - either use pure black or a full (-base) colour, and adjust the alpha value.</p>
<p style="display: inline">For example, the box on the left uses</p> <p class="console code" style="display: inline">colour: rgba(0,0,0,0.5)</p>, <p style="display: inline">while the one on the right uses the equivalent hex code for middle grey, </p> <p class="console code " style="display: inline">colour: #7d7d7d</p>. <p>There's definitely a difference in readability, particularly with higher resolution screens.</p>
<div class="readable"><p>Readable</p></div>
<div class="less-readable"><p>Less readable</div>
</section>
<hr />
<section>
<h2>Data<span id="data" class="positioner"></span></h2>
<h3>Tables<span id="tables" class="sub-positioner"></span></h3>
<p>Tables are used only to contain tabular data.</p>
<table>
<!-- The first row is the header row, and should be highlighted. -->
<tr>
<td>Name of data</td>
<td>Value 1</td>
<td>Value 2</td>
<td>Value 3</td>
<td>Value 4</td>
</tr>
<tr>
<td>Thing</td>
<td>5.67</td>
<td>6.98</td>
<td>4.25</td>
<td>2.64</td>
</tr>
<tr>
<td>Other thing</td>
<td>4.74</td>
<td>9.45</td>
<td>0.25</td>
<td>1.46</td>
</tr>
<tr>
<td>Another thing</td>
<td>5.46</td>
<td>1.75</td>
<td>1.68</td>
<td>4.26</td>
</tr>
<tr>
<td>Last thing</td>
<td>4.89</td>
<td>2.68</td>
<td>1.69</td>
<td>8.28</td>
</tr>
</table>
<h3>Unordered lists<span id="u-lists" class="sub-positioner"></span></h3>
<ul>
<li>Thing one<br />Things!</li>
<li>Thing two</li>
<li>Thing three</li>
</ul>
<h3>Ordered lists<span id="o-lists" class="sub-positioner"></span></h3>
<p>In order for ordered lists to be displayed correctly, the content inside the <span class="code">li</span> tag are wrapped in <span class="code">span</span> elements. You're right, it should be easier and fixed in CSS2, but here we are in CSS3, stylin the web like it's 1999.</p>
<ol>
<li><span>Thing one</span></li>
<li><span>Thing two</span></li>
<li><span>Thing three</span></li>
</ol>
</section>
</div><!-- end right div -->
</body>
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/header.js"></script>
<script src="js/global.js"></script>
</html>