@brunosouzas/design-system 0.6.1 → 0.7.0

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.
Files changed (40) hide show
  1. package/NOTICE +13 -0
  2. package/README.md +75 -40
  3. package/dist/scripts/cover.d.ts +7 -4
  4. package/dist/scripts/cover.js +25 -8
  5. package/dist/src/fonts/embed.d.ts +7 -0
  6. package/dist/src/fonts/embed.js +219 -0
  7. package/dist/src/pieces/bank-objects.d.ts +1 -1
  8. package/dist/src/pieces/bank-objects.js +26 -18
  9. package/dist/src/pieces/cover.js +2 -1
  10. package/dist/src/pieces/diagram.js +3 -3
  11. package/dist/src/pieces/eip-icons.js +27 -27
  12. package/dist/src/pieces/emote.d.ts +13 -0
  13. package/dist/src/pieces/emote.js +88 -0
  14. package/dist/src/pieces/index.d.ts +1 -1
  15. package/dist/src/pieces/index.js +1 -1
  16. package/dist/src/pieces/ink.d.ts +26 -16
  17. package/dist/src/pieces/ink.js +15 -6
  18. package/dist/src/pieces/library.d.ts +9 -15
  19. package/dist/src/pieces/library.js +52 -53
  20. package/dist/src/pieces/link-icons.d.ts +2 -1
  21. package/dist/src/pieces/link-icons.js +10 -18
  22. package/dist/src/pieces/metro.d.ts +4 -2
  23. package/dist/src/pieces/metro.js +14 -13
  24. package/dist/src/pieces/node.d.ts +5 -3
  25. package/dist/src/pieces/node.js +6 -4
  26. package/dist/src/pieces/params.js +2 -2
  27. package/dist/tokens/generated/tokens.d.ts +68 -156
  28. package/dist/tokens/generated/tokens.js +69 -157
  29. package/fonts/OFL.txt +97 -0
  30. package/fonts/SourceCodePro-Bold.ttf +0 -0
  31. package/fonts/SourceCodePro-Regular.ttf +0 -0
  32. package/fonts/SourceSans3-Black.ttf +0 -0
  33. package/fonts/SourceSans3-Bold.ttf +0 -0
  34. package/fonts/SourceSans3-Regular.ttf +0 -0
  35. package/package.json +10 -1
  36. package/tokens/generated/tokens.css +60 -110
  37. package/tokens/generated/tokens.json +69 -157
  38. package/tokens/generated/tokens.ts +69 -157
  39. package/dist/src/pieces/cast.d.ts +0 -35
  40. package/dist/src/pieces/cast.js +0 -333
@@ -28,6 +28,7 @@ export const tokens = {
28
28
  "trackAi": "#1B1F28",
29
29
  "trackDelivery": "#18231D",
30
30
  "trackIntegration": "#2A1C15",
31
+ "trackPersonal": "#29240F",
31
32
  "warning": "#EBB34B"
32
33
  },
33
34
  "light": {
@@ -42,60 +43,25 @@ export const tokens = {
42
43
  "success": "#2B7A4B",
43
44
  "text": "#121212",
44
45
  "textMuted": "#5C5852",
45
- "trackAi": "#E2E4EC",
46
- "trackDelivery": "#DFE8E1",
47
- "trackIntegration": "#F4E4D8",
46
+ "trackAi": "#C5CDF2",
47
+ "trackDelivery": "#B9DEC3",
48
+ "trackIntegration": "#F7C6A1",
49
+ "trackPersonal": "#F4DD8E",
48
50
  "warning": "#8F5F00"
49
51
  }
50
52
  },
51
53
  "cast": {
52
- "agent": {
53
- "neck": "#E3E8F5",
54
- "shine": "#E6ECFF"
55
- },
56
- "architect": {
57
- "fill": "#22B5A4",
58
- "shine": "#9CF0E4"
59
- },
60
- "data": {
61
- "fill": "#8C6CF0",
62
- "lens": "#EAF1FF",
63
- "lid": "#C2B1FF",
64
- "shine": "#B39CFF"
65
- },
66
- "dev": {
67
- "chin": "#8FA6FF",
68
- "fill": "#5B7CFA",
69
- "screen": "#DCE6FF"
70
- },
71
- "devops": {
72
- "fill": "#D76AA5",
73
- "shine": "#F3B8D6"
74
- },
75
54
  "emotePop": {
76
55
  "damping": 9,
77
56
  "mass": 0.7,
78
57
  "stiffness": 170
79
58
  },
80
- "eyes": "#FFC98A",
81
- "glow": "#7FD1FF",
82
- "ground": "#D3DBF5",
83
- "metal": "#C9D2E8",
84
- "mouth": "#B94A3E",
85
- "request": {
86
- "shine": "#D6E2FF"
87
- }
59
+ "eyes": "#FFC98A"
88
60
  },
89
61
  "color": {
90
- "backend": "#FF6B6B",
91
- "blocked": "#FF8A3D",
92
- "caller": "#8FB2FF",
93
- "failFast": "#E0661F",
94
- "failure": "#E04848",
95
- "healthy": "#3DDC84",
96
- "ink": "#0A1033",
97
- "panel": "#EEF2FF",
98
- "ring": "#E0E7FB",
62
+ "ink": "#121212",
63
+ "panel": "#F6F3EC",
64
+ "ring": "#EDE8DE",
99
65
  "state": {
100
66
  "backend": "#FF6B6B",
101
67
  "blocked": "#FF8A3D",
@@ -105,13 +71,12 @@ export const tokens = {
105
71
  "healthy": "#3DDC84",
106
72
  "transitional": "#FFD25A"
107
73
  },
108
- "transitional": "#FFD25A",
109
74
  "white": "#FFFFFF"
110
75
  },
111
76
  "cover": {
112
77
  "height": 420,
113
78
  "labelSize": 19,
114
- "labelWeight": 800,
79
+ "labelWeight": 700,
115
80
  "pillHeight": 36,
116
81
  "ringRadius": 90,
117
82
  "ringStep": 28,
@@ -120,122 +85,69 @@ export const tokens = {
120
85
  "width": 800
121
86
  },
122
87
  "coverBackground": {
123
- "blush": {
124
- "fill": "#F6CFE0",
125
- "ring": "#ECBAD0"
126
- },
127
- "cobalt": {
128
- "fill": "#1E4FA0",
129
- "ring": "#2758AE"
130
- },
131
- "cream": {
132
- "fill": "#FFF1C9",
133
- "ring": "#F4E2AE"
134
- },
135
- "deepTeal": {
136
- "fill": "#0F6E6E",
137
- "ring": "#167A79"
138
- },
139
- "emerald": {
140
- "fill": "#2F9E6E",
141
- "ring": "#38AB79"
142
- },
143
- "forest": {
144
- "fill": "#24604F",
145
- "ring": "#2B6E5B"
88
+ "aiLilac": {
89
+ "fill": "#DCC7F0",
90
+ "ring": "#C3A9DC"
146
91
  },
147
- "lavender": {
148
- "fill": "#B8A6F0",
149
- "ring": "#AC98EA"
92
+ "aiSky": {
93
+ "fill": "#B5D5F2",
94
+ "ring": "#94BBDE"
150
95
  },
151
- "lime": {
152
- "fill": "#D4EC9C",
153
- "ring": "#C4E086"
96
+ "deliveryMint": {
97
+ "fill": "#A9DCD6",
98
+ "ring": "#88C4BD"
154
99
  },
155
- "mint": {
156
- "fill": "#CDE5D3",
157
- "ring": "#BCDAC4"
100
+ "deliveryOlive": {
101
+ "fill": "#D3DFA8",
102
+ "ring": "#B9C78A"
158
103
  },
159
- "mustard": {
160
- "fill": "#F2C14E",
161
- "ring": "#E6B33E"
104
+ "integrationClay": {
105
+ "fill": "#E9CDBE",
106
+ "ring": "#D3B3A3"
162
107
  },
163
- "navy": {
164
- "fill": "#14215A",
165
- "ring": "#1C2D74"
108
+ "integrationSand": {
109
+ "fill": "#EED7A8",
110
+ "ring": "#D8BF8C"
166
111
  },
167
112
  "neutral": {
168
113
  "fill": "#F6F3EC",
169
114
  "ring": "#D8D6D0"
170
115
  },
171
- "olive": {
172
- "fill": "#8A9A3B",
173
- "ring": "#7E8E33"
174
- },
175
- "peach": {
176
- "fill": "#F4D8BC",
177
- "ring": "#EAC7A3"
178
- },
179
- "plum": {
180
- "fill": "#3D2B66",
181
- "ring": "#483577"
182
- },
183
- "raspberry": {
184
- "fill": "#C94F7C",
185
- "ring": "#BE4572"
186
- },
187
- "salmon": {
188
- "fill": "#FF9E7A",
189
- "ring": "#F48D68"
190
- },
191
- "sky": {
192
- "fill": "#BFE3F7",
193
- "ring": "#AAD5EC"
194
- },
195
- "slate": {
196
- "fill": "#2E3A59",
197
- "ring": "#38466A"
198
- },
199
- "teal": {
200
- "fill": "#1F8A8A",
201
- "ring": "#2A9A99"
116
+ "personalRose": {
117
+ "fill": "#F5C9DA",
118
+ "ring": "#E0ABC0"
202
119
  },
203
120
  "trackAi": {
204
- "fill": "#E2E4EC",
205
- "ring": "#C7C9D0"
121
+ "fill": "#C5CDF2",
122
+ "ring": "#A5AEDA"
206
123
  },
207
124
  "trackDelivery": {
208
- "fill": "#DFE8E1",
209
- "ring": "#C4CCC6"
125
+ "fill": "#B9DEC3",
126
+ "ring": "#98C6A5"
210
127
  },
211
128
  "trackIntegration": {
212
- "fill": "#F4E4D8",
213
- "ring": "#D7C9BE"
214
- },
215
- "violet": {
216
- "fill": "#5B3CC4",
217
- "ring": "#6748CF"
129
+ "fill": "#F7C6A1",
130
+ "ring": "#E3AB84"
218
131
  },
219
- "wine": {
220
- "fill": "#6B2340",
221
- "ring": "#7A2D4C"
132
+ "trackPersonal": {
133
+ "fill": "#F4DD8E",
134
+ "ring": "#DDC46C"
222
135
  }
223
136
  },
224
137
  "font": {
225
- "mono": "ui-monospace, 'SF Mono', Menlo, Consolas, monospace",
226
- "sans": "Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif",
138
+ "mono": "'Source Code Pro', ui-monospace, 'SF Mono', Menlo, Consolas, monospace",
139
+ "sans": "'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif",
140
+ "serif": "'Source Serif 4', Georgia, 'Times New Roman', serif",
227
141
  "weightBold": 700,
228
142
  "weightHeavy": 900
229
143
  },
230
144
  "illustration": {
231
- "accent": "#1E6FEB",
232
- "codePanel": "#14215A",
233
- "healthyShade": "#2BB673",
234
- "iconLine": "#B9C3E0",
235
- "road": "#5B6478",
236
- "tape": "#FFE2C8",
237
- "textBar": "#C9D6F5",
238
- "transitionalShade": "#E8B830"
145
+ "accent": "#E04E17",
146
+ "codePanel": "#1D1C1A",
147
+ "iconLine": "#D7D1C5",
148
+ "road": "#5C5852",
149
+ "tape": "#F4E4D8",
150
+ "textBar": "#D7D1C5"
239
151
  },
240
152
  "map": {
241
153
  "badgeHeight": 20,
@@ -254,7 +166,7 @@ export const tokens = {
254
166
  "nodeRadius": 10,
255
167
  "outline": 3,
256
168
  "ringWidth": 3,
257
- "shadow": 3.5,
169
+ "shadow": 0,
258
170
  "stopRadius": 12,
259
171
  "zonePadding": 32,
260
172
  "zoneTitleTint": 0.6
@@ -289,9 +201,9 @@ export const tokens = {
289
201
  "small": 6
290
202
  },
291
203
  "shadow": {
292
- "block": 10,
293
- "pill": 6,
294
- "small": 4
204
+ "block": 0,
205
+ "pill": 0,
206
+ "small": 0
295
207
  },
296
208
  "site": {
297
209
  "dark": {
@@ -305,8 +217,8 @@ export const tokens = {
305
217
  "textLight": "#B4AFB6"
306
218
  },
307
219
  "font": {
308
- "primary": "Heebo, sans-serif",
309
- "secondary": "Signika, sans-serif"
220
+ "primary": "'Source Sans 3', sans-serif",
221
+ "secondary": "'Source Serif 4', serif"
310
222
  },
311
223
  "fontSize": {
312
224
  "base": 16,
@@ -343,14 +255,14 @@ export const tokens = {
343
255
  "backdropPark": "#183F52",
344
256
  "backdropWater": "#1E3175",
345
257
  "backdropWaterEdge": "#2A3F8A",
346
- "background": "#14215A",
347
- "grid": "#1C2D74",
348
- "muted": "#8F9BD0",
349
- "panel": "#1C2D74",
350
- "rim": "#EEF2FF",
351
- "rimWidth": 1,
352
- "shadow": "#4C5CB8",
353
- "text": "#EEF2FF",
258
+ "background": "#121110",
259
+ "grid": "#3B3834",
260
+ "muted": "#ADA79D",
261
+ "panel": "#1D1C1A",
262
+ "rim": "#F1EEE8",
263
+ "rimWidth": 0,
264
+ "shadow": "#121110",
265
+ "text": "#F1EEE8",
354
266
  "zoneOpacity": 0.22
355
267
  },
356
268
  "light": {
@@ -358,14 +270,14 @@ export const tokens = {
358
270
  "backdropPark": "#D4F2DF",
359
271
  "backdropWater": "#C9D8FF",
360
272
  "backdropWaterEdge": "#B5C7F5",
361
- "background": "#EEF2FF",
362
- "grid": "#E0E7FB",
363
- "muted": "#5B6694",
273
+ "background": "#F6F3EC",
274
+ "grid": "#EDE8DE",
275
+ "muted": "#5C5852",
364
276
  "panel": "#FFFFFF",
365
- "rim": "#EEF2FF",
277
+ "rim": "#F6F3EC",
366
278
  "rimWidth": 0,
367
- "shadow": "#0A1033",
368
- "text": "#0A1033",
279
+ "shadow": "#121212",
280
+ "text": "#121212",
369
281
  "zoneOpacity": 0.12
370
282
  }
371
283
  }
package/fonts/OFL.txt ADDED
@@ -0,0 +1,97 @@
1
+ Source Sans 3 (fonts/SourceSans3-*.ttf, release 3.052R):
2
+ Copyright 2010-2024 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
3
+
4
+ Source Code Pro (fonts/SourceCodePro-*.ttf, release 2.042R):
5
+ © 2023 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
6
+
7
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
8
+
9
+ This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
10
+
11
+
12
+ -----------------------------------------------------------
13
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
14
+ -----------------------------------------------------------
15
+
16
+ PREAMBLE
17
+ The goals of the Open Font License (OFL) are to stimulate worldwide
18
+ development of collaborative font projects, to support the font creation
19
+ efforts of academic and linguistic communities, and to provide a free and
20
+ open framework in which fonts may be shared and improved in partnership
21
+ with others.
22
+
23
+ The OFL allows the licensed fonts to be used, studied, modified and
24
+ redistributed freely as long as they are not sold by themselves. The
25
+ fonts, including any derivative works, can be bundled, embedded,
26
+ redistributed and/or sold with any software provided that any reserved
27
+ names are not used by derivative works. The fonts and derivatives,
28
+ however, cannot be released under any other type of license. The
29
+ requirement for fonts to remain under this license does not apply
30
+ to any document created using the fonts or their derivatives.
31
+
32
+ DEFINITIONS
33
+ "Font Software" refers to the set of files released by the Copyright
34
+ Holder(s) under this license and clearly marked as such. This may
35
+ include source files, build scripts and documentation.
36
+
37
+ "Reserved Font Name" refers to any names specified as such after the
38
+ copyright statement(s).
39
+
40
+ "Original Version" refers to the collection of Font Software components as
41
+ distributed by the Copyright Holder(s).
42
+
43
+ "Modified Version" refers to any derivative made by adding to, deleting,
44
+ or substituting -- in part or in whole -- any of the components of the
45
+ Original Version, by changing formats or by porting the Font Software to a
46
+ new environment.
47
+
48
+ "Author" refers to any designer, engineer, programmer, technical
49
+ writer or other person who contributed to the Font Software.
50
+
51
+ PERMISSION & CONDITIONS
52
+ Permission is hereby granted, free of charge, to any person obtaining
53
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
54
+ redistribute, and sell modified and unmodified copies of the Font
55
+ Software, subject to the following conditions:
56
+
57
+ 1) Neither the Font Software nor any of its individual components,
58
+ in Original or Modified Versions, may be sold by itself.
59
+
60
+ 2) Original or Modified Versions of the Font Software may be bundled,
61
+ redistributed and/or sold with any software, provided that each copy
62
+ contains the above copyright notice and this license. These can be
63
+ included either as stand-alone text files, human-readable headers or
64
+ in the appropriate machine-readable metadata fields within text or
65
+ binary files as long as those fields can be easily viewed by the user.
66
+
67
+ 3) No Modified Version of the Font Software may use the Reserved Font
68
+ Name(s) unless explicit written permission is granted by the corresponding
69
+ Copyright Holder. This restriction only applies to the primary font name as
70
+ presented to the users.
71
+
72
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
73
+ Software shall not be used to promote, endorse or advertise any
74
+ Modified Version, except to acknowledge the contribution(s) of the
75
+ Copyright Holder(s) and the Author(s) or with their explicit written
76
+ permission.
77
+
78
+ 5) The Font Software, modified or unmodified, in part or in whole,
79
+ must be distributed entirely under this license, and must not be
80
+ distributed under any other license. The requirement for fonts to
81
+ remain under this license does not apply to any document created
82
+ using the Font Software.
83
+
84
+ TERMINATION
85
+ This license becomes null and void if any of the above conditions are
86
+ not met.
87
+
88
+ DISCLAIMER
89
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
90
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
91
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
92
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
93
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
94
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
95
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
96
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
97
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brunosouzas/design-system",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "Design tokens and illustration pieces of brunosouzas.com: tokens as CSS, JSON and TypeScript, pieces that draw SVG (and React), and a cover command.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -18,6 +18,10 @@
18
18
  "types": "./dist/src/pieces/react.d.ts",
19
19
  "import": "./dist/src/pieces/react.js"
20
20
  },
21
+ "./fonts": {
22
+ "types": "./dist/src/fonts/embed.d.ts",
23
+ "import": "./dist/src/fonts/embed.js"
24
+ },
21
25
  "./tokens": {
22
26
  "types": "./dist/tokens/generated/tokens.d.ts",
23
27
  "import": "./dist/tokens/generated/tokens.js"
@@ -32,6 +36,8 @@
32
36
  "files": [
33
37
  "dist/",
34
38
  "tokens/generated/",
39
+ "fonts/",
40
+ "NOTICE",
35
41
  "!dist/**/*.test.*"
36
42
  ],
37
43
  "sideEffects": [
@@ -40,6 +46,9 @@
40
46
  "engines": {
41
47
  "node": ">=22.12.0"
42
48
  },
49
+ "dependencies": {
50
+ "harfbuzzjs": "1.6.4"
51
+ },
43
52
  "peerDependencies": {
44
53
  "react": ">=19"
45
54
  },