-
Notifications
You must be signed in to change notification settings - Fork 0
/
.branderrc.json
453 lines (453 loc) · 14.8 KB
/
.branderrc.json
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
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
{
"name": "NotNinja",
"title": "!ninja",
"email": "[email protected]",
"homepage": "https://not.ninja",
"tasks": [
{
"task": "clean",
"input": {
"files": [
"@(logo|tile)/**/*.ico",
"@(banner|copyright|logo|tile)/**/*.min.svg",
"@(banner|copyright|logo|social|tile)/**/*.png"
]
}
},
{
"task": "convert",
"input": {
"files": "banner/**/*.svg"
},
"output": {
"format": "png"
},
"options": {
"sizes": [
"354x100"
]
}
},
{
"task": "convert",
"input": {
"files": "copyright/**/*.svg"
},
"output": {
"format": "png"
},
"options": {
"sizes": [
"186x25",
"372x50",
"744x100"
]
}
},
{
"task": "convert",
"input": {
"files": "@(logo|tile)/**/!(*-mask).svg"
},
"output": {
"format": "png"
},
"options": {
"sizes": [
16,
32,
36,
48,
64,
70,
72,
76,
96,
120,
144,
150,
152,
167,
168,
180,
192,
250,
256,
300,
310,
512,
2800
]
}
},
{
"task": "convert",
"input": {
"files": "social/**/*.svg"
},
"output": {
"format": "png"
}
},
{
"task": "package",
"input": {
"files": "@(logo|tile)/**/*-256x256.png"
},
"output": {
"files": "<%= file.base(true).replace('-256x256', '') %>.ico"
},
"options": {
"groupBy": "<%= file.dir %>",
"sizes": [
16,
32,
48,
256
]
}
},
{
"task": "optimize",
"input": {
"files": "@(banner|copyright|logo|tile)/**/*.svg"
}
}
],
"docs": [
{
"doc": "README.md",
"dir": ".",
"sections": [
{
"type": "template",
"content": [
" 888 888b 888 888 888b 888 8888 8888b",
" 888 8888b 888 888 8888b 888 8888 88888b",
" 888 88888b 888 888 88888b 888 888 888Y88b",
" 888 888Y88b 888 888 888Y88b 888 888 888 Y88b",
" 888 888 Y88b888 888 888 Y88b888 888 888 Y88b",
" 888 Y88888 888 888 Y88888 888 888 888 Y88b",
" 8\"8 888 Y8888 888 888 Y8888 88888888888 888 Y88b",
" 888 888 Y888 888 888 Y888 88888888888 888 Y88b",
"",
"This repository contains branding assets and guidelines for [<%= config.title %>](<%= config.homepage %>)."
]
},
{
"type": "toc",
"docs": [
"guidelines.md",
"colors.md",
"assets.md"
],
"minDepth": 0,
"maxDepth": 1
},
{
"title": "Using Assets",
"type": "template",
"content": [
"All assets are owned by <%= config.title %> and intended for use by <%= config.title %>, however, we are an open organization so if you wish to use our assets, simply ask us for permission to do so, detailing who/what/when/where/why you intend to use them.",
"",
"The best way to get in touch with us is via [email](mailto:<%= config.email %>) or on [slack](https://slack.not.ninja)."
]
},
{
"title": "Generating Assets",
"type": "template",
"content": [
"The assets and documentation within this repository are generated using [Brander](https://github.com/NotNinja/brander) based on our `.branderrc.json` configuration file.",
"",
"To get started, first clone the repository:",
"",
"``` bash",
"$ git clone <%= config.repository.url %>",
"$ cd <%= config.repository.name %>",
"```",
"",
"Then install all of the necessary dependencies:",
"",
"``` bash",
"<%= config.repository.name %>$ npm install",
"```",
"",
"Now you can easily generate all assets and documentation after making whatever changes you want to the configuration file or asset sources:",
"",
"``` bash",
"<%= config.repository.name %>$ npm start",
"```",
"",
"If successful, it should end with \"Done!\"."
]
}
]
},
{
"doc": "assets.md",
"title": "Assets",
"sections": [
{
"type": "template",
"content": "This document contains references to all assets that are available to be used to represent the <%= config.title %> brand across all spaces."
},
{
"type": "toc",
"maxDepth": 1
},
{
"title": "Banners",
"type": "template",
"content": [
"The banner assets are the best way of getting our brand across. It contains the full organization name in our unique bespoke font as well as our recognizable ninja icon hidden away inside of it.",
"",
"These banners can be used everywhere, from website headers to letterheads to stickers and promotional material. Just ensure that you choose the version that shows best on the background of the target document."
]
},
{
"type": "asset-feature",
"dir": "banner/**/*/",
"preview": "!(*.min).svg",
"files": [
"*.png",
[ "!(*.min).svg", "*.min.svg" ]
],
"sortBy": [ "<%= files[0].file.type %>", "asc" ],
"titles": {
"not-ninja-banner.svg": "Base",
"not-ninja-banner-fill.svg": "Base, Fill",
"not-ninja-banner-invert.svg": "Base, Invert",
"not-ninja-banner-invert-fill.svg": "Base, Invert, Fill",
"not-ninja-banner-pride.svg": "Pride",
"not-ninja-banner-pride-fill.svg": "Pride, Fill"
}
},
{
"title": "Copyright",
"type": "template",
"content": [
"The copyright assets are very similar to the banner except that it also contains a copyright symbol and the current year, also in our unique bespoke font.",
"",
"These copyright notices are intended for use on project pages (e.g. GitHub). It is recommended that pure text copyright notices are used on all !ninja websites, web-based applications, and printed material instead."
]
},
{
"type": "asset-feature",
"dir": "copyright/**/*/",
"preview": "!(*.min).svg",
"files": [
"*.png",
[ "!(*.min).svg", "*.min.svg" ]
],
"sortBy": [ "<%= files[0].file.type %>", "asc" ],
"titles": {
"not-ninja-copyright.svg": "Base",
"not-ninja-copyright-fill.svg": "Base, Fill",
"not-ninja-copyright-invert.svg": "Base, Invert",
"not-ninja-copyright-invert-fill.svg": "Base, Invert, Fill"
}
},
{
"title": "Logos",
"type": "template",
"content": [
"The logo assets are a great way of getting our brand across. The base logo is usually preferred as it has an immediate impact since it consists entirely of our little ninja. Alternatively, since the text logo contains an (extremely) abbreviated name for our organization, \"!N\", in our unique bespoke font as well as our recognizable ninja icon hidden away inside of it, it is a great substitution for a full banner when space is tight as it's basically just the first 2 characters of our banner assets.",
"",
"These logos are ideal for many cases but should ideally only be used when the full organization name is included in at least one other location on the same document. We should not rely on brand recognition solely on our logos. That said; they can be used absolutely anywhere that the banner could be used. The base logo is especially suited for icons and stickers."
]
},
{
"type": "asset-feature",
"dir": "logo/**/*/",
"preview": "!(*.min).svg",
"files": [
"*.ico",
"*.png",
[ "!(*.min).svg", "*.min.svg" ]
],
"sortBy": [ "<%= files[0].file.type %>", "asc" ],
"titles": {
"not-ninja-logo.svg": "Base",
"not-ninja-logo-fill.svg": "Base, Fill",
"not-ninja-logo-invert.svg": "Base, Invert",
"not-ninja-logo-invert-fill.svg": "Base, Invert, Fill",
"not-ninja-logo-mask.svg": "Base, Mask",
"not-ninja-logo-pride.svg": "Pride",
"not-ninja-logo-pride-fill.svg": "Pride, Fill",
"not-ninja-logo-pride-invert.svg": "Pride, Invert",
"not-ninja-logo-pride-invert-fill.svg": "Pride, Invert, Fill",
"not-ninja-logo-text.svg": "Text",
"not-ninja-logo-text-fill.svg": "Text, Fill",
"not-ninja-logo-text-invert.svg": "Text, Invert",
"not-ninja-logo-text-invert-fill.svg": "Text, Invert, Fill",
"not-ninja-logo-text-mask.svg": "Text, Mask"
}
},
{
"title": "Tiles",
"type": "template",
"content": "The tile assets share an almost identical usage to the logo assets, with the main difference being that they all fill a square, fitting with the concept of a tile. They are ideal for situations where transparency is not supported or may cause problems or rounded corners simply don't suit the use case. Logos are always preferred but tiles offer a useful alternative."
},
{
"type": "asset-feature",
"dir": "tile/**/*/",
"preview": "!(*.min).svg",
"files": [
"*.ico",
"*.png",
[ "!(*.min).svg", "*.min.svg" ]
],
"sortBy": [ "<%= files[0].file.type %>", "asc" ],
"titles": {
"not-ninja-tile.svg": "Base",
"not-ninja-tile-invert.svg": "Base, Invert",
"not-ninja-tile-pride.svg": "Pride",
"not-ninja-tile-pride-invert.svg": "Pride, Invert",
"not-ninja-tile-text.svg": "Text",
"not-ninja-tile-text-invert.svg": "Text, Invert"
}
},
{
"title": "Social",
"type": "template",
"content": [
"The social assets are simply those used to decorate profile pages across various social media platforms. They are all variations of the same theme to provided consistency.",
"",
"These images are only intended to be used on their respective platforms.",
"",
"The [background image](https://www.pexels.com/photo/bamboo-plant-129916/) used in each of the social images was taken by Erol Ahmed and was sourced from [Pexels](https://www.pexels.com) and used under the Creative Commons Zero (CC0) license."
]
},
{
"type": "asset-feature",
"dir": "social/**/*/",
"preview": "*.png",
"files": "*.png",
"sortBy": [ "<%= files[0].file.type %>", "asc" ],
"titles": {
"not-ninja-facebook-cover.png": "Facebook Cover",
"not-ninja-google-plus-cover.png": "Google+ Cover",
"not-ninja-twitter-header.png": "Twitter Header"
}
}
]
},
{
"doc": "colors.md",
"title": "Colors",
"sections": [
{
"type": "template",
"content": "This document contains the colors that are to be used when representing the <%= config.title %> brand."
},
{ "type": "toc" },
{
"title": "Palette",
"type": "template",
"content": "The following colors are recommended to be used:"
},
{
"type": "color-table",
"colors": [
{
"name": "Black",
"format": "hex",
"value": "#000000"
},
{
"name": "White",
"format": "hex",
"value": "#FFFFFF"
},
{
"name": "Primary",
"format": "hex",
"value": "#4B0082"
},
{
"name": "Secondary",
"format": "hex",
"value": "#7700CF"
}
],
"columns": [
{
"header": "Color",
"content": "<%= color.name %>"
},
{
"header": "Hex",
"content": "`<%= color.hex %>`"
},
{
"header": "RGB",
"content": "<%= color.rgb.join(', ') %>"
},
{
"header": "CMYK",
"content": "<%= color.cmyk.join(', ') %>"
}
]
}
]
},
{
"doc": "guidelines.md",
"title": "Guidelines",
"sections": [
{
"type": "template",
"content": "This document contains guidelines to be followed when representing the <%= config.title %> brand."
},
{ "type": "toc" },
{
"type": "template",
"title": "Fonts",
"content": "The following fonts are recommended to be used when presenting text-based information, anywhere from websites to written letters:"
},
{
"type": "table",
"headers": [
"Type",
"Primary Font",
"Fallback Fonts"
],
"rows": [
[
"Heading",
"TODO",
"TODO"
],
[
"Body",
"TODO",
"TODO"
],
[
"Monospace",
"TODO",
"TODO"
]
]
},
{
"type": "template",
"content": "For all assets, our unique bespoke font should always be used. This does not exist as a standalone font (yet?) and, instead, SVG characters are currently simply being copied throughout the assets, as needed. We will attempt to improve this going forward to make it easier to reuse and widen its usage."
}
]
}
],
"options": {
"lineSeparator": "lf",
"docs": {
"footer": {
"type": "template",
"content": [
"---",
"",
"[![Copyright <%= config.title %>](<%= config.assetURL([ config.assetsDir, 'copyright/base/not-ninja-copyright-372x50.png' ]) %>)](<%= config.homepage %>)"
]
}
}
}
}