@tempoxyz/ds 1.4.20261124212842 → 1.5.20261124213201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,282 @@
1
+ /** Arsenal's colors: the base colors, grey tones, chrome gradients, grounds, art greys and data hues. @module */
2
+ /** A named color, with what it's for. */
3
+ export type Swatch = {
4
+ /** The color as six-digit uppercase hex, such as `#F5F5F5`. */
5
+ hex: string;
6
+ /** The color's name, such as `Grey 75`. */
7
+ name: string;
8
+ /** One sentence on what it's for. */
9
+ note: string;
10
+ };
11
+ /** Black and white, the base colors, with their print values. */
12
+ export declare const base: readonly [{
13
+ readonly hex: '#000000';
14
+ readonly name: 'Black';
15
+ readonly note: 'RGB 0 0 0, and Pantone Black C in print.';
16
+ }, {
17
+ readonly hex: '#FFFFFF';
18
+ readonly name: 'White';
19
+ readonly note: 'RGB 255 255 255, and CMYK 0 0 0 0 in print.';
20
+ }];
21
+ /** The grey tones, from darkest to lightest. Each is black at the percentage in its name. */
22
+ export declare const tones: readonly [{
23
+ readonly hex: '#0D0D0D';
24
+ readonly name: 'Grey 95';
25
+ readonly note: 'The darkest tone, 95% black.';
26
+ }, {
27
+ readonly hex: '#1A1A1A';
28
+ readonly name: 'Grey 90';
29
+ readonly note: 'The faint line on black, in art.';
30
+ }, {
31
+ readonly hex: '#262626';
32
+ readonly name: 'Grey 85';
33
+ readonly note: 'The middle stop of the dark chrome.';
34
+ }, {
35
+ readonly hex: '#333333';
36
+ readonly name: 'Grey 80';
37
+ readonly note: 'The line on black, in art.';
38
+ }, {
39
+ readonly hex: '#404040';
40
+ readonly name: 'Grey 75';
41
+ readonly note: 'The middle stop of the light chrome.';
42
+ }, {
43
+ readonly hex: '#4D4D4D';
44
+ readonly name: 'Grey 70';
45
+ readonly note: 'The last stop of the dark chrome.';
46
+ }, {
47
+ readonly hex: '#808080';
48
+ readonly name: 'Grey 50';
49
+ readonly note: 'Half black, for secondary uses only.';
50
+ }, {
51
+ readonly hex: '#999999';
52
+ readonly name: 'Grey 40';
53
+ readonly note: 'The strong line on white, in art.';
54
+ }, {
55
+ readonly hex: '#B3B3B3';
56
+ readonly name: 'Grey 30';
57
+ readonly note: '30% black.';
58
+ }, {
59
+ readonly hex: '#CCCCCC';
60
+ readonly name: 'Grey 20';
61
+ readonly note: 'The last stop of the light chrome.';
62
+ }, {
63
+ readonly hex: '#E6E6E6';
64
+ readonly name: 'Grey 10';
65
+ readonly note: '10% black.';
66
+ }, {
67
+ readonly hex: '#F2F2F2';
68
+ readonly name: 'Grey 5';
69
+ readonly note: 'The lightest tone, 5% black.';
70
+ }];
71
+ /** A color named on the Color page: a base color or a grey tone. */
72
+ export type Named = (typeof base)[number]['name'] | (typeof tones)[number]['name'];
73
+ /** The chrome gradients, each with its stops in order and the ground it's made for. */
74
+ export declare const chrome: readonly [{
75
+ readonly ground: 'Off-White';
76
+ readonly name: 'Light Chrome';
77
+ readonly note: 'For light grounds, in this order, ending on #CCCCCC.';
78
+ readonly stops: readonly ["White", "Grey 75", "Grey 20"];
79
+ }, {
80
+ readonly ground: 'Black';
81
+ readonly name: 'Dark Chrome';
82
+ readonly note: 'For dark grounds, in this order, ending on #4D4D4D.';
83
+ readonly stops: readonly ["White", "Grey 85", "Grey 70"];
84
+ }];
85
+ /** The grounds art sits on, light or dark. A photo is a ground too, with no value of its own. */
86
+ export declare const grounds: readonly [{
87
+ readonly hex: '#F5F5F5';
88
+ readonly ink: '#000000';
89
+ readonly name: 'Off-White';
90
+ readonly note: "Light, for tempo.xyz's page, the first ground for art, and an email graphic's plate.";
91
+ }, {
92
+ readonly hex: '#EDEDED';
93
+ readonly ink: '#000000';
94
+ readonly name: 'Tile';
95
+ readonly note: "Light, the plate and tile ground under tempo.xyz's features, cards, showcases and benefit tiles.";
96
+ }, {
97
+ readonly hex: '#FFFFFF';
98
+ readonly ink: '#000000';
99
+ readonly name: 'White';
100
+ readonly note: "Light, for a card's own surface, and posts or video that call for white.";
101
+ }, {
102
+ readonly hex: '#000000';
103
+ readonly ink: '#FFFFFF';
104
+ readonly name: 'Black';
105
+ readonly note: 'Dark, for decks, docs, social, share cards and events.';
106
+ }];
107
+ /** A photo grounds type and the logo, light or dark area by area, with no value of its own. */
108
+ export declare const photo: {
109
+ readonly name: 'Photo';
110
+ readonly note: 'Light or dark area by area, and only behind type and the logo.';
111
+ readonly value: 'Set by the photo';
112
+ };
113
+ /** A ground's name. */
114
+ export type Ground = (typeof grounds)[number]['name'];
115
+ /** The levels art draws in, from strongest to faintest. Ink is the ground's own ink. */
116
+ export declare const levels: readonly ['Ink-2', 'Line-strong', 'Line', 'Subtle', 'Faint'];
117
+ /**
118
+ * Each ground's art greys, the same as tempo.xyz's Linework ramps. A level keeps its job on every
119
+ * ground, and its value shifts so it reads the same.
120
+ */
121
+ export declare const art: readonly [{
122
+ readonly ground: 'Off-White';
123
+ readonly values: readonly ["#6C6C6C", "#939393", "#C4C4C4", "#D6D6D6", "#E1E1E1"];
124
+ }, {
125
+ readonly ground: 'White';
126
+ readonly values: readonly ["#707070", "#999999", "#C4C4C4", "#D6D6D6", "#EBEBEB"];
127
+ }, {
128
+ readonly ground: 'Tile';
129
+ readonly values: readonly ["#646464", "#8B8B8B", "#BCBCBC", "#CECECE", "#D9D9D9"];
130
+ }, {
131
+ readonly ground: 'Black';
132
+ readonly values: readonly ["#8F8F8F", "#666666", "#333333", "#262626", "#1A1A1A"];
133
+ }];
134
+ /**
135
+ * The nine accent hues, from DS Web's accent set: each one's value on a light ground (also its
136
+ * default), on a dark ground, and as text on a light ground, with the ink its default takes.
137
+ */
138
+ export declare const accents: readonly [{
139
+ readonly dark: '#7498FB';
140
+ readonly ink: 'black';
141
+ readonly light: '#4471ED';
142
+ readonly name: 'Blue';
143
+ readonly text: '#3059D3';
144
+ }, {
145
+ readonly dark: '#48CCE6';
146
+ readonly ink: 'black';
147
+ readonly light: '#00AACB';
148
+ readonly name: 'Cyan';
149
+ readonly text: '#056E85';
150
+ }, {
151
+ readonly dark: '#59E5A4';
152
+ readonly ink: 'black';
153
+ readonly light: '#13A963';
154
+ readonly name: 'Green';
155
+ readonly text: '#007441';
156
+ }, {
157
+ readonly dark: '#C4DC65';
158
+ readonly ink: 'black';
159
+ readonly light: '#95B226';
160
+ readonly name: 'Olive';
161
+ readonly text: '#596D01';
162
+ }, {
163
+ readonly dark: '#FA8E36';
164
+ readonly ink: 'black';
165
+ readonly light: '#E06F12';
166
+ readonly name: 'Orange';
167
+ readonly text: '#A14D04';
168
+ }, {
169
+ readonly dark: '#F55C45';
170
+ readonly ink: 'black';
171
+ readonly light: '#EB3417';
172
+ readonly name: 'Red';
173
+ readonly text: '#BF1D00';
174
+ }, {
175
+ readonly dark: '#E54088';
176
+ readonly ink: 'white';
177
+ readonly light: '#CC055B';
178
+ readonly name: 'Magenta';
179
+ readonly text: '#BA0352';
180
+ }, {
181
+ readonly dark: '#CF79EF';
182
+ readonly ink: 'black';
183
+ readonly light: '#BA59DD';
184
+ readonly name: 'Purple';
185
+ readonly text: '#9835BA';
186
+ }, {
187
+ readonly dark: '#9877F1';
188
+ readonly ink: 'white';
189
+ readonly light: '#7E59E4';
190
+ readonly name: 'Violet';
191
+ readonly text: '#6F47D1';
192
+ }];
193
+ /** The hues art keeps for data. The status hues are DS Web's. */
194
+ export declare const hues: readonly [{
195
+ readonly hex: '#4471ED';
196
+ readonly name: 'Accent';
197
+ readonly note: 'A highlight, one per piece at most.';
198
+ }, {
199
+ readonly hex: '#13A963';
200
+ readonly name: 'Positive';
201
+ readonly note: 'A success or a gain.';
202
+ }, {
203
+ readonly hex: '#E06F12';
204
+ readonly name: 'Warning';
205
+ readonly note: 'Something that needs attention.';
206
+ }, {
207
+ readonly hex: '#EB3417';
208
+ readonly name: 'Negative';
209
+ readonly note: 'An error or a loss.';
210
+ }, {
211
+ readonly hex: '#B9A3FF';
212
+ readonly name: 'Earn';
213
+ readonly note: "Earn's bars and curves, in Panels.";
214
+ }];
215
+ /**
216
+ * Colors a single craft or rule names, outside the sets above. Each says where it's from, so a new
217
+ * one is a decision rather than drift.
218
+ */
219
+ export declare const others: readonly [{
220
+ readonly hex: '#ADADAD';
221
+ readonly name: 'Connector';
222
+ readonly note: "Diagrams' connector line, solid on a light canvas.";
223
+ }, {
224
+ readonly hex: '#1D1D1D';
225
+ readonly name: 'Dark Canvas';
226
+ readonly note: "Diagrams' provisional dark canvas.";
227
+ }, {
228
+ readonly hex: '#6E6E6E';
229
+ readonly name: 'Divider';
230
+ readonly note: "Partner Lockups' divider, and Diagrams' provisional dark connector.";
231
+ }, {
232
+ readonly hex: '#5A5A5A';
233
+ readonly name: 'Mid-Grey From';
234
+ readonly note: 'The dark end of the mid-greys no ground uses.';
235
+ }, {
236
+ readonly hex: '#D9D9D9';
237
+ readonly name: 'Mid-Grey To';
238
+ readonly note: 'The light end of the mid-greys no ground uses.';
239
+ }];
240
+ /** The inks of the brands Arsenal also documents. */
241
+ export declare const brands: readonly [{
242
+ readonly hex: '#EBEBEB';
243
+ readonly name: 'MPP Off-White';
244
+ readonly note: "MPP's light ground and ink.";
245
+ }, {
246
+ readonly hex: '#808080';
247
+ readonly name: 'MPP Grey';
248
+ readonly note: "MPP's grey logo ink.";
249
+ }, {
250
+ readonly hex: '#0B0B0B';
251
+ readonly name: 'Mercator Black';
252
+ readonly note: "Mercator's dark ink.";
253
+ }, {
254
+ readonly hex: '#F2F1EC';
255
+ readonly name: 'Mercator Paper';
256
+ readonly note: "Mercator's light ink.";
257
+ }];
258
+ /** Returns a named color's hex, such as `#404040` for `Grey 75`. */
259
+ export declare function hex(name: Named): "#000000" | "#0D0D0D" | "#1A1A1A" | "#262626" | "#333333" | "#404040" | "#4D4D4D" | "#808080" | "#999999" | "#B3B3B3" | "#CCCCCC" | "#E6E6E6" | "#F2F2F2" | "#FFFFFF";
260
+ /** Returns a ground by name. */
261
+ export declare function ground(name: Ground): {
262
+ readonly hex: '#F5F5F5';
263
+ readonly ink: '#000000';
264
+ readonly name: 'Off-White';
265
+ readonly note: "Light, for tempo.xyz's page, the first ground for art, and an email graphic's plate.";
266
+ } | {
267
+ readonly hex: '#EDEDED';
268
+ readonly ink: '#000000';
269
+ readonly name: 'Tile';
270
+ readonly note: "Light, the plate and tile ground under tempo.xyz's features, cards, showcases and benefit tiles.";
271
+ } | {
272
+ readonly hex: '#FFFFFF';
273
+ readonly ink: '#000000';
274
+ readonly name: 'White';
275
+ readonly note: "Light, for a card's own surface, and posts or video that call for white.";
276
+ } | {
277
+ readonly hex: '#000000';
278
+ readonly ink: '#FFFFFF';
279
+ readonly name: 'Black';
280
+ readonly note: 'Dark, for decks, docs, social, share cards and events.';
281
+ };
282
+ //# sourceMappingURL=Color.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Color.d.ts","sourceRoot":"","sources":["../../src/arsenal/Color.ts"],"names":[],"mappings":"AAAA,iHAAiH;AAEjH,yCAAyC;AACzC,MAAM,MAAM,MAAM,GAAG;IACnB,+DAA+D;IAC/D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,iEAAiE;AACjE,eAAO,MAAM,IAAI;kBACR,SAAS;mBAAQ,OAAO;mBAAQ,0CAA0C;;kBAC1E,SAAS;mBAAQ,OAAO;mBAAQ,6CAA6C;EAChD,CAAA;AAEtC,6FAA6F;AAC7F,eAAO,MAAM,KAAK;kBACT,SAAS;mBAAQ,SAAS;mBAAQ,8BAA8B;;kBAChE,SAAS;mBAAQ,SAAS;mBAAQ,kCAAkC;;kBACpE,SAAS;mBAAQ,SAAS;mBAAQ,qCAAqC;;kBACvE,SAAS;mBAAQ,SAAS;mBAAQ,4BAA4B;;kBAC9D,SAAS;mBAAQ,SAAS;mBAAQ,sCAAsC;;kBACxE,SAAS;mBAAQ,SAAS;mBAAQ,mCAAmC;;kBACrE,SAAS;mBAAQ,SAAS;mBAAQ,sCAAsC;;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AM,IAAI;kBACR,SAAS;mBAAQ,QAAQ;mBAAQ,qCAAqC;;kBACtE,SAAS;mBAAQ,UAAU;mBAAQ,sBAAsB;;kBACzD,SAAS;mBAAQ,SAAS;mBAAQ,iCAAiC;;kBACnE,SAAS;mBAAQ,UAAU;mBAAQ,qBAAqB;;kBACxD,SAAS;mBAAQ,MAAM;mBAAQ,oCAAoC;EACtC,CAAA;AAEtC;;;GAGG;AACH,eAAO,MAAM,MAAM;kBACV,SAAS;mBAAQ,WAAW;mBAAQ,oDAAoD;;kBACxF,SAAS;mBAAQ,aAAa;mBAAQ,oCAAoC;;kBAE1E,SAAS;mBACR,SAAS;mBACT,qEAAqE;;kBAEtE,SAAS;mBAAQ,eAAe;mBAAQ,+CAA+C;;kBACvF,SAAS;mBAAQ,aAAa;mBAAQ,gDAAgD;EACzD,CAAA;AAEtC,qDAAqD;AACrD,eAAO,MAAM,MAAM;kBACV,SAAS;mBAAQ,eAAe;mBAAQ,6BAA6B;;kBACrE,SAAS;mBAAQ,UAAU;mBAAQ,sBAAsB;;kBACzD,SAAS;mBAAQ,gBAAgB;mBAAQ,sBAAsB;;kBAC/D,SAAS;mBAAQ,gBAAgB;mBAAQ,uBAAuB;EACnC,CAAA;AAEtC,oEAAoE;AACpE,wBAAgB,GAAG,CAAC,IAAI,EAAE,KAAK,yKAE9B;AAED,gCAAgC;AAChC,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM;kBApH1B,SAAS;kBACT,SAAS;mBACR,WAAW;mBACX,sFAAsF;;kBAGvF,SAAS;kBACT,SAAS;mBACR,MAAM;mBACN,kGAAkG;;kBAGnG,SAAS;kBACT,SAAS;mBACR,OAAO;mBACP,0EAA0E;;kBAG3E,SAAS;kBACT,SAAS;mBACR,OAAO;mBACP,wDAAwD;EAiGjE"}
@@ -0,0 +1,147 @@
1
+ /** Arsenal's colors: the base colors, grey tones, chrome gradients, grounds, art greys and data hues. @module */
2
+ /** Black and white, the base colors, with their print values. */
3
+ export const base = [
4
+ { hex: '#000000', name: 'Black', note: 'RGB 0 0 0, and Pantone Black C in print.' },
5
+ { hex: '#FFFFFF', name: 'White', note: 'RGB 255 255 255, and CMYK 0 0 0 0 in print.' },
6
+ ];
7
+ /** The grey tones, from darkest to lightest. Each is black at the percentage in its name. */
8
+ export const tones = [
9
+ { hex: '#0D0D0D', name: 'Grey 95', note: 'The darkest tone, 95% black.' },
10
+ { hex: '#1A1A1A', name: 'Grey 90', note: 'The faint line on black, in art.' },
11
+ { hex: '#262626', name: 'Grey 85', note: 'The middle stop of the dark chrome.' },
12
+ { hex: '#333333', name: 'Grey 80', note: 'The line on black, in art.' },
13
+ { hex: '#404040', name: 'Grey 75', note: 'The middle stop of the light chrome.' },
14
+ { hex: '#4D4D4D', name: 'Grey 70', note: 'The last stop of the dark chrome.' },
15
+ { hex: '#808080', name: 'Grey 50', note: 'Half black, for secondary uses only.' },
16
+ { hex: '#999999', name: 'Grey 40', note: 'The strong line on white, in art.' },
17
+ { hex: '#B3B3B3', name: 'Grey 30', note: '30% black.' },
18
+ { hex: '#CCCCCC', name: 'Grey 20', note: 'The last stop of the light chrome.' },
19
+ { hex: '#E6E6E6', name: 'Grey 10', note: '10% black.' },
20
+ { hex: '#F2F2F2', name: 'Grey 5', note: 'The lightest tone, 5% black.' },
21
+ ];
22
+ /** The chrome gradients, each with its stops in order and the ground it's made for. */
23
+ export const chrome = [
24
+ {
25
+ ground: 'Off-White',
26
+ name: 'Light Chrome',
27
+ note: 'For light grounds, in this order, ending on #CCCCCC.',
28
+ stops: ['White', 'Grey 75', 'Grey 20'],
29
+ },
30
+ {
31
+ ground: 'Black',
32
+ name: 'Dark Chrome',
33
+ note: 'For dark grounds, in this order, ending on #4D4D4D.',
34
+ stops: ['White', 'Grey 85', 'Grey 70'],
35
+ },
36
+ ];
37
+ /** The grounds art sits on, light or dark. A photo is a ground too, with no value of its own. */
38
+ export const grounds = [
39
+ {
40
+ hex: '#F5F5F5',
41
+ ink: '#000000',
42
+ name: 'Off-White',
43
+ note: "Light, for tempo.xyz's page, the first ground for art, and an email graphic's plate.",
44
+ },
45
+ {
46
+ hex: '#EDEDED',
47
+ ink: '#000000',
48
+ name: 'Tile',
49
+ note: "Light, the plate and tile ground under tempo.xyz's features, cards, showcases and benefit tiles.",
50
+ },
51
+ {
52
+ hex: '#FFFFFF',
53
+ ink: '#000000',
54
+ name: 'White',
55
+ note: "Light, for a card's own surface, and posts or video that call for white.",
56
+ },
57
+ {
58
+ hex: '#000000',
59
+ ink: '#FFFFFF',
60
+ name: 'Black',
61
+ note: 'Dark, for decks, docs, social, share cards and events.',
62
+ },
63
+ ];
64
+ /** A photo grounds type and the logo, light or dark area by area, with no value of its own. */
65
+ export const photo = {
66
+ name: 'Photo',
67
+ note: 'Light or dark area by area, and only behind type and the logo.',
68
+ value: 'Set by the photo',
69
+ };
70
+ /** The levels art draws in, from strongest to faintest. Ink is the ground's own ink. */
71
+ export const levels = ['Ink-2', 'Line-strong', 'Line', 'Subtle', 'Faint'];
72
+ /**
73
+ * Each ground's art greys, the same as tempo.xyz's Linework ramps. A level keeps its job on every
74
+ * ground, and its value shifts so it reads the same.
75
+ */
76
+ export const art = [
77
+ {
78
+ ground: 'Off-White',
79
+ values: ['#6C6C6C', '#939393', '#C4C4C4', '#D6D6D6', '#E1E1E1'],
80
+ },
81
+ {
82
+ ground: 'White',
83
+ values: ['#707070', '#999999', '#C4C4C4', '#D6D6D6', '#EBEBEB'],
84
+ },
85
+ {
86
+ ground: 'Tile',
87
+ values: ['#646464', '#8B8B8B', '#BCBCBC', '#CECECE', '#D9D9D9'],
88
+ },
89
+ {
90
+ ground: 'Black',
91
+ values: ['#8F8F8F', '#666666', '#333333', '#262626', '#1A1A1A'],
92
+ },
93
+ ];
94
+ /**
95
+ * The nine accent hues, from DS Web's accent set: each one's value on a light ground (also its
96
+ * default), on a dark ground, and as text on a light ground, with the ink its default takes.
97
+ */
98
+ export const accents = [
99
+ { dark: '#7498FB', ink: 'black', light: '#4471ED', name: 'Blue', text: '#3059D3' },
100
+ { dark: '#48CCE6', ink: 'black', light: '#00AACB', name: 'Cyan', text: '#056E85' },
101
+ { dark: '#59E5A4', ink: 'black', light: '#13A963', name: 'Green', text: '#007441' },
102
+ { dark: '#C4DC65', ink: 'black', light: '#95B226', name: 'Olive', text: '#596D01' },
103
+ { dark: '#FA8E36', ink: 'black', light: '#E06F12', name: 'Orange', text: '#A14D04' },
104
+ { dark: '#F55C45', ink: 'black', light: '#EB3417', name: 'Red', text: '#BF1D00' },
105
+ { dark: '#E54088', ink: 'white', light: '#CC055B', name: 'Magenta', text: '#BA0352' },
106
+ { dark: '#CF79EF', ink: 'black', light: '#BA59DD', name: 'Purple', text: '#9835BA' },
107
+ { dark: '#9877F1', ink: 'white', light: '#7E59E4', name: 'Violet', text: '#6F47D1' },
108
+ ];
109
+ /** The hues art keeps for data. The status hues are DS Web's. */
110
+ export const hues = [
111
+ { hex: '#4471ED', name: 'Accent', note: 'A highlight, one per piece at most.' },
112
+ { hex: '#13A963', name: 'Positive', note: 'A success or a gain.' },
113
+ { hex: '#E06F12', name: 'Warning', note: 'Something that needs attention.' },
114
+ { hex: '#EB3417', name: 'Negative', note: 'An error or a loss.' },
115
+ { hex: '#B9A3FF', name: 'Earn', note: "Earn's bars and curves, in Panels." },
116
+ ];
117
+ /**
118
+ * Colors a single craft or rule names, outside the sets above. Each says where it's from, so a new
119
+ * one is a decision rather than drift.
120
+ */
121
+ export const others = [
122
+ { hex: '#ADADAD', name: 'Connector', note: "Diagrams' connector line, solid on a light canvas." },
123
+ { hex: '#1D1D1D', name: 'Dark Canvas', note: "Diagrams' provisional dark canvas." },
124
+ {
125
+ hex: '#6E6E6E',
126
+ name: 'Divider',
127
+ note: "Partner Lockups' divider, and Diagrams' provisional dark connector.",
128
+ },
129
+ { hex: '#5A5A5A', name: 'Mid-Grey From', note: 'The dark end of the mid-greys no ground uses.' },
130
+ { hex: '#D9D9D9', name: 'Mid-Grey To', note: 'The light end of the mid-greys no ground uses.' },
131
+ ];
132
+ /** The inks of the brands Arsenal also documents. */
133
+ export const brands = [
134
+ { hex: '#EBEBEB', name: 'MPP Off-White', note: "MPP's light ground and ink." },
135
+ { hex: '#808080', name: 'MPP Grey', note: "MPP's grey logo ink." },
136
+ { hex: '#0B0B0B', name: 'Mercator Black', note: "Mercator's dark ink." },
137
+ { hex: '#F2F1EC', name: 'Mercator Paper', note: "Mercator's light ink." },
138
+ ];
139
+ /** Returns a named color's hex, such as `#404040` for `Grey 75`. */
140
+ export function hex(name) {
141
+ return [...base, ...tones].find((swatch) => swatch.name === name).hex;
142
+ }
143
+ /** Returns a ground by name. */
144
+ export function ground(name) {
145
+ return grounds.find((entry) => entry.name === name);
146
+ }
147
+ //# sourceMappingURL=Color.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Color.js","sourceRoot":"","sources":["../../src/arsenal/Color.ts"],"names":[],"mappings":"AAAA,iHAAiH;AAYjH,iEAAiE;AACjE,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,0CAA0C,EAAE;IACnF,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,6CAA6C,EAAE;CAClD,CAAA;AAEtC,6FAA6F;AAC7F,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,8BAA8B,EAAE;IACzE,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,kCAAkC,EAAE;IAC7E,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,qCAAqC,EAAE;IAChF,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,4BAA4B,EAAE;IACvE,EAAE,GAAG,EAAE,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EAAE,gBAAgB,EAAE,IAAI,EAAE,uBAAuB,EAAE;CACrC,CAAA;AAEtC,oEAAoE;AACpE,MAAM,UAAU,GAAG,CAAC,IAAW;IAC7B,OAAO,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,CAAE,CAAC,GAAG,CAAA;AACxE,CAAC;AAED,gCAAgC;AAChC,MAAM,UAAU,MAAM,CAAC,IAAY;IACjC,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAE,CAAA;AACtD,CAAC"}
@@ -0,0 +1,33 @@
1
+ /** Arsenal's motion values: every curve art and film move on, and the frame rates video renders at. @module */
2
+ /**
3
+ * Every curve Arsenal moves on, by name. `draw`, `enter`, `exit`, `morph` and `standard` are the
4
+ * same as DS Marketing's `ease` variables of those names. `settle`, `shift` and `snap` are the
5
+ * film curves: `snap` lands arrivals, `settle` lands scale-ins and `shift` moves a part already on
6
+ * screen to its new state.
7
+ */
8
+ export declare const curves: {
9
+ readonly brand: 'cubic-bezier(.04, .89, .96, .09)';
10
+ readonly draw: 'cubic-bezier(.65, 0, .35, 1)';
11
+ readonly enter: 'cubic-bezier(.05, .7, .1, 1)';
12
+ readonly exit: 'cubic-bezier(.3, 0, .8, .15)';
13
+ readonly glide: 'cubic-bezier(.55, 0, .1, 1)';
14
+ readonly morph: 'cubic-bezier(.45, 0, .2, 1)';
15
+ readonly pressDown: 'cubic-bezier(.3, 0, .6, 1)';
16
+ readonly reset: 'cubic-bezier(.7, 0, 0, 1)';
17
+ readonly settle: 'cubic-bezier(.55, 0, 0, 1)';
18
+ readonly shift: 'cubic-bezier(.84, 0, 0, 1)';
19
+ readonly snap: 'cubic-bezier(0, 0, 0, 1)';
20
+ readonly standard: 'cubic-bezier(.22, 1, .36, 1)';
21
+ readonly swap: 'cubic-bezier(.2, 0, 0, 1)';
22
+ readonly travel: 'cubic-bezier(.3, .5, .1, 1)';
23
+ };
24
+ /** A curve's name, such as `snap`. */
25
+ export type Curve = keyof typeof curves;
26
+ /** The frame rates video renders at, in frames per second. */
27
+ export declare const frameRates: {
28
+ /** The default for every film and motion export. */
29
+ readonly default: 30;
30
+ /** For smoother motion, when the brief asks for it. */
31
+ readonly smooth: 60;
32
+ };
33
+ //# sourceMappingURL=Motion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Motion.d.ts","sourceRoot":"","sources":["../../src/arsenal/Motion.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAE/G;;;;;GAKG;AACH,eAAO,MAAM,MAAM;aACjB,KAAK,EAAE,kCAAkC;aACzC,IAAI,EAAE,8BAA8B;aACpC,KAAK,EAAE,8BAA8B;aACrC,IAAI,EAAE,8BAA8B;aACpC,KAAK,EAAE,6BAA6B;aACpC,KAAK,EAAE,6BAA6B;aACpC,SAAS,EAAE,4BAA4B;aACvC,KAAK,EAAE,2BAA2B;aAClC,MAAM,EAAE,4BAA4B;aACpC,KAAK,EAAE,4BAA4B;aACnC,IAAI,EAAE,0BAA0B;aAChC,QAAQ,EAAE,8BAA8B;aACxC,IAAI,EAAE,2BAA2B;aACjC,MAAM,EAAE,6BAA6B;CAC7B,CAAA;AAEV,sCAAsC;AACtC,MAAM,MAAM,KAAK,GAAG,MAAM,OAAO,MAAM,CAAA;AAEvC,8DAA8D;AAC9D,eAAO,MAAM,UAAU;IACrB,oDAAoD;aACpD,OAAO,EAAE,EAAE;IACX,uDAAuD;aACvD,MAAM,EAAE,EAAE;CACF,CAAA"}
@@ -0,0 +1,31 @@
1
+ /** Arsenal's motion values: every curve art and film move on, and the frame rates video renders at. @module */
2
+ /**
3
+ * Every curve Arsenal moves on, by name. `draw`, `enter`, `exit`, `morph` and `standard` are the
4
+ * same as DS Marketing's `ease` variables of those names. `settle`, `shift` and `snap` are the
5
+ * film curves: `snap` lands arrivals, `settle` lands scale-ins and `shift` moves a part already on
6
+ * screen to its new state.
7
+ */
8
+ export const curves = {
9
+ brand: 'cubic-bezier(.04, .89, .96, .09)',
10
+ draw: 'cubic-bezier(.65, 0, .35, 1)',
11
+ enter: 'cubic-bezier(.05, .7, .1, 1)',
12
+ exit: 'cubic-bezier(.3, 0, .8, .15)',
13
+ glide: 'cubic-bezier(.55, 0, .1, 1)',
14
+ morph: 'cubic-bezier(.45, 0, .2, 1)',
15
+ pressDown: 'cubic-bezier(.3, 0, .6, 1)',
16
+ reset: 'cubic-bezier(.7, 0, 0, 1)',
17
+ settle: 'cubic-bezier(.55, 0, 0, 1)',
18
+ shift: 'cubic-bezier(.84, 0, 0, 1)',
19
+ snap: 'cubic-bezier(0, 0, 0, 1)',
20
+ standard: 'cubic-bezier(.22, 1, .36, 1)',
21
+ swap: 'cubic-bezier(.2, 0, 0, 1)',
22
+ travel: 'cubic-bezier(.3, .5, .1, 1)',
23
+ };
24
+ /** The frame rates video renders at, in frames per second. */
25
+ export const frameRates = {
26
+ /** The default for every film and motion export. */
27
+ default: 30,
28
+ /** For smoother motion, when the brief asks for it. */
29
+ smooth: 60,
30
+ };
31
+ //# sourceMappingURL=Motion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Motion.js","sourceRoot":"","sources":["../../src/arsenal/Motion.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAE/G;;;;;GAKG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,kCAAkC;IACzC,IAAI,EAAE,8BAA8B;IACpC,KAAK,EAAE,8BAA8B;IACrC,IAAI,EAAE,8BAA8B;IACpC,KAAK,EAAE,6BAA6B;IACpC,KAAK,EAAE,6BAA6B;IACpC,SAAS,EAAE,4BAA4B;IACvC,KAAK,EAAE,2BAA2B;IAClC,MAAM,EAAE,4BAA4B;IACpC,KAAK,EAAE,4BAA4B;IACnC,IAAI,EAAE,0BAA0B;IAChC,QAAQ,EAAE,8BAA8B;IACxC,IAAI,EAAE,2BAA2B;IACjC,MAAM,EAAE,6BAA6B;CAC7B,CAAA;AAKV,8DAA8D;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,oDAAoD;IACpD,OAAO,EAAE,EAAE;IACX,uDAAuD;IACvD,MAAM,EAAE,EAAE;CACF,CAAA"}
@@ -0,0 +1,129 @@
1
+ /**
2
+ * The surfaces a film plays on. Each sets the frame's default aspect and a type scale for its viewing
3
+ * distance. Sizes are frame pixels at 1080 on the frame's short side.
4
+ * @module
5
+ */
6
+ /** A surface's type scale, in frame pixels at 1080 on the frame's short side. */
7
+ export type Scale = {
8
+ /** Body sizes, from the largest step to the smallest. */
9
+ body: readonly number[];
10
+ /** Display sizes for headlines, from the largest step to the smallest. */
11
+ display: readonly number[];
12
+ /** The most lines of body text one frame shows at once. */
13
+ lines: number;
14
+ /** The smallest size any text may take, captions and labels included. */
15
+ min: number;
16
+ /** The size of Tempo JetBrains Mono accents. */
17
+ mono: number;
18
+ };
19
+ /** The surfaces, ordered from the closest viewing distance to the farthest. */
20
+ export declare const surfaces: readonly [{
21
+ readonly aspect: '4:5';
22
+ readonly id: 'social';
23
+ readonly name: 'Social';
24
+ readonly note: "Read at arm's length on a phone, often muted, so body sits about 1.6 times the web size.";
25
+ readonly type: {
26
+ readonly body: readonly [38, 29, 22];
27
+ readonly display: readonly [180, 150, 120, 90];
28
+ readonly lines: 3;
29
+ readonly min: 20;
30
+ readonly mono: 20;
31
+ };
32
+ readonly watched: 'In a feed on a phone, often muted.';
33
+ }, {
34
+ readonly aspect: '16:9';
35
+ readonly id: 'web';
36
+ readonly name: 'Web';
37
+ readonly note: 'Read at desk distance and often embedded below full screen.';
38
+ readonly type: {
39
+ readonly body: readonly [30, 24, 18];
40
+ readonly display: readonly [180, 150, 120, 90];
41
+ readonly lines: 5;
42
+ readonly min: 16;
43
+ readonly mono: 16;
44
+ };
45
+ readonly watched: 'On tempo.xyz, docs, product pages, YouTube or email.';
46
+ }, {
47
+ readonly aspect: '16:9';
48
+ readonly id: 'presentation';
49
+ readonly name: 'Presentation';
50
+ readonly note: 'Read from the back of a room, so nothing goes under 24 px.';
51
+ readonly type: {
52
+ readonly body: readonly [36, 30, 26];
53
+ readonly display: readonly [180, 150, 120, 90];
54
+ readonly lines: 1;
55
+ readonly min: 24;
56
+ readonly mono: 24;
57
+ };
58
+ readonly watched: 'In a talk, keynote or livestream, on a projector or stage screen.';
59
+ }, {
60
+ readonly aspect: '16:9';
61
+ readonly id: 'ambient';
62
+ readonly name: 'Ambient';
63
+ readonly note: 'Seen in passing at a distance, so text is rare and large, or absent.';
64
+ readonly type: {
65
+ readonly body: readonly [36, 30, 26];
66
+ readonly display: readonly [180, 150, 120, 90];
67
+ readonly lines: 1;
68
+ readonly min: 24;
69
+ readonly mono: 24;
70
+ };
71
+ readonly watched: 'Behind other things: LED walls, lobbies, wallpapers and video calls.';
72
+ }];
73
+ /** A surface's key, such as `social`. */
74
+ export type Id = (typeof surfaces)[number]['id'];
75
+ /** Returns a surface by its key. */
76
+ export declare function surface(id: Id): {
77
+ readonly aspect: '4:5';
78
+ readonly id: 'social';
79
+ readonly name: 'Social';
80
+ readonly note: "Read at arm's length on a phone, often muted, so body sits about 1.6 times the web size.";
81
+ readonly type: {
82
+ readonly body: readonly [38, 29, 22];
83
+ readonly display: readonly [180, 150, 120, 90];
84
+ readonly lines: 3;
85
+ readonly min: 20;
86
+ readonly mono: 20;
87
+ };
88
+ readonly watched: 'In a feed on a phone, often muted.';
89
+ } | {
90
+ readonly aspect: '16:9';
91
+ readonly id: 'web';
92
+ readonly name: 'Web';
93
+ readonly note: 'Read at desk distance and often embedded below full screen.';
94
+ readonly type: {
95
+ readonly body: readonly [30, 24, 18];
96
+ readonly display: readonly [180, 150, 120, 90];
97
+ readonly lines: 5;
98
+ readonly min: 16;
99
+ readonly mono: 16;
100
+ };
101
+ readonly watched: 'On tempo.xyz, docs, product pages, YouTube or email.';
102
+ } | {
103
+ readonly aspect: '16:9';
104
+ readonly id: 'presentation';
105
+ readonly name: 'Presentation';
106
+ readonly note: 'Read from the back of a room, so nothing goes under 24 px.';
107
+ readonly type: {
108
+ readonly body: readonly [36, 30, 26];
109
+ readonly display: readonly [180, 150, 120, 90];
110
+ readonly lines: 1;
111
+ readonly min: 24;
112
+ readonly mono: 24;
113
+ };
114
+ readonly watched: 'In a talk, keynote or livestream, on a projector or stage screen.';
115
+ } | {
116
+ readonly aspect: '16:9';
117
+ readonly id: 'ambient';
118
+ readonly name: 'Ambient';
119
+ readonly note: 'Seen in passing at a distance, so text is rare and large, or absent.';
120
+ readonly type: {
121
+ readonly body: readonly [36, 30, 26];
122
+ readonly display: readonly [180, 150, 120, 90];
123
+ readonly lines: 1;
124
+ readonly min: 24;
125
+ readonly mono: 24;
126
+ };
127
+ readonly watched: 'Behind other things: LED walls, lobbies, wallpapers and video calls.';
128
+ };
129
+ //# sourceMappingURL=Surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../src/arsenal/Surface.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,iFAAiF;AACjF,MAAM,MAAM,KAAK,GAAG;IAClB,yDAAyD;IACzD,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,0EAA0E;IAC1E,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;IAC1B,2DAA2D;IAC3D,KAAK,EAAE,MAAM,CAAA;IACb,yEAAyE;IACzE,GAAG,EAAE,MAAM,CAAA;IACX,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,+EAA+E;AAC/E,eAAO,MAAM,QAAQ;qBAET,KAAK;iBACT,QAAQ;mBACN,QAAQ;mBACR,0FAA0F;;iBACxF,IAAI;iBAAgB,OAAO;iBAAuB,KAAK,EAAE,CAAC;iBAAE,GAAG,EAAE,EAAE;iBAAE,IAAI,EAAE,EAAE;;sBAC5E,oCAAoC;;qBAGrC,MAAM;iBACV,KAAK;m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