@brunosouzas/design-system 0.0.0-stage → 0.1.1
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.
- package/LICENSE +202 -0
- package/README.md +211 -2
- package/dist/scripts/cover.d.ts +25 -0
- package/dist/scripts/cover.js +157 -0
- package/dist/src/pieces/cover.d.ts +32 -0
- package/dist/src/pieces/cover.js +272 -0
- package/dist/src/pieces/eip-icons.d.ts +12 -0
- package/dist/src/pieces/eip-icons.js +525 -0
- package/dist/src/pieces/index.d.ts +9 -0
- package/dist/src/pieces/index.js +14 -0
- package/dist/src/pieces/library.d.ts +297 -0
- package/dist/src/pieces/library.js +377 -0
- package/dist/src/pieces/metro.d.ts +93 -0
- package/dist/src/pieces/metro.js +205 -0
- package/dist/src/pieces/node.d.ts +27 -0
- package/dist/src/pieces/node.js +52 -0
- package/dist/src/pieces/params.d.ts +77 -0
- package/dist/src/pieces/params.js +149 -0
- package/dist/src/pieces/piece.d.ts +9 -0
- package/dist/src/pieces/piece.js +28 -0
- package/dist/src/pieces/pose.d.ts +16 -0
- package/dist/src/pieces/pose.js +30 -0
- package/dist/src/pieces/react.d.ts +4 -0
- package/dist/src/pieces/react.js +13 -0
- package/dist/src/pieces/render.d.ts +2 -0
- package/dist/src/pieces/render.js +21 -0
- package/dist/tokens/generated/tokens.d.ts +244 -0
- package/dist/tokens/generated/tokens.js +244 -0
- package/package.json +78 -4
- package/tokens/generated/tokens.css +160 -0
- package/tokens/generated/tokens.json +243 -0
- package/tokens/generated/tokens.ts +247 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const escape = (text) => text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
2
|
+
const attributes = (node) => Object.entries(node.attrs)
|
|
3
|
+
.map(([name, value]) => ` ${name}="${escape(String(value))}"`)
|
|
4
|
+
.join("");
|
|
5
|
+
export const toSvg = (node, depth = 0) => {
|
|
6
|
+
if (typeof node === "string")
|
|
7
|
+
return escape(node);
|
|
8
|
+
const pad = " ".repeat(depth);
|
|
9
|
+
const open = `${pad}<${node.tag}${attributes(node)}`;
|
|
10
|
+
if (node.children.length === 0)
|
|
11
|
+
return `${open}/>`;
|
|
12
|
+
// Text content, alone or mixed with elements, is written inline: added whitespace would change it.
|
|
13
|
+
if (node.children.some((child) => typeof child === "string")) {
|
|
14
|
+
return `${open}>${node.children.map((child) => toSvg(child)).join("")}</${node.tag}>`;
|
|
15
|
+
}
|
|
16
|
+
if (node.children.every((child) => typeof child === "string")) {
|
|
17
|
+
return `${open}>${node.children.map((child) => toSvg(child)).join("")}</${node.tag}>`;
|
|
18
|
+
}
|
|
19
|
+
const inner = node.children.map((child) => (typeof child === "string" ? `${pad} ${escape(child)}` : toSvg(child, depth + 1)));
|
|
20
|
+
return `${open}>\n${inner.join("\n")}\n${pad}</${node.tag}>`;
|
|
21
|
+
};
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
export declare const tokens: {
|
|
2
|
+
readonly color: {
|
|
3
|
+
readonly backend: "#FF6B6B";
|
|
4
|
+
readonly blocked: "#FF8A3D";
|
|
5
|
+
readonly caller: "#8FB2FF";
|
|
6
|
+
readonly failFast: "#E0661F";
|
|
7
|
+
readonly failure: "#E04848";
|
|
8
|
+
readonly healthy: "#3DDC84";
|
|
9
|
+
readonly ink: "#0A1033";
|
|
10
|
+
readonly panel: "#EEF2FF";
|
|
11
|
+
readonly ring: "#E0E7FB";
|
|
12
|
+
readonly transitional: "#FFD25A";
|
|
13
|
+
readonly white: "#FFFFFF";
|
|
14
|
+
};
|
|
15
|
+
readonly cover: {
|
|
16
|
+
readonly height: 420;
|
|
17
|
+
readonly labelSize: 19;
|
|
18
|
+
readonly labelWeight: 800;
|
|
19
|
+
readonly pillHeight: 36;
|
|
20
|
+
readonly ringRadius: 90;
|
|
21
|
+
readonly ringStep: 28;
|
|
22
|
+
readonly ringWidth: 2;
|
|
23
|
+
readonly width: 800;
|
|
24
|
+
};
|
|
25
|
+
readonly coverBackground: {
|
|
26
|
+
readonly blush: {
|
|
27
|
+
readonly fill: "#F6CFE0";
|
|
28
|
+
readonly ring: "#ECBAD0";
|
|
29
|
+
};
|
|
30
|
+
readonly cobalt: {
|
|
31
|
+
readonly fill: "#1E4FA0";
|
|
32
|
+
readonly ring: "#2758AE";
|
|
33
|
+
};
|
|
34
|
+
readonly cream: {
|
|
35
|
+
readonly fill: "#FFF1C9";
|
|
36
|
+
readonly ring: "#F4E2AE";
|
|
37
|
+
};
|
|
38
|
+
readonly deepTeal: {
|
|
39
|
+
readonly fill: "#0F6E6E";
|
|
40
|
+
readonly ring: "#167A79";
|
|
41
|
+
};
|
|
42
|
+
readonly emerald: {
|
|
43
|
+
readonly fill: "#2F9E6E";
|
|
44
|
+
readonly ring: "#38AB79";
|
|
45
|
+
};
|
|
46
|
+
readonly forest: {
|
|
47
|
+
readonly fill: "#24604F";
|
|
48
|
+
readonly ring: "#2B6E5B";
|
|
49
|
+
};
|
|
50
|
+
readonly lavender: {
|
|
51
|
+
readonly fill: "#B8A6F0";
|
|
52
|
+
readonly ring: "#AC98EA";
|
|
53
|
+
};
|
|
54
|
+
readonly lime: {
|
|
55
|
+
readonly fill: "#D4EC9C";
|
|
56
|
+
readonly ring: "#C4E086";
|
|
57
|
+
};
|
|
58
|
+
readonly mint: {
|
|
59
|
+
readonly fill: "#CDE5D3";
|
|
60
|
+
readonly ring: "#BCDAC4";
|
|
61
|
+
};
|
|
62
|
+
readonly mustard: {
|
|
63
|
+
readonly fill: "#F2C14E";
|
|
64
|
+
readonly ring: "#E6B33E";
|
|
65
|
+
};
|
|
66
|
+
readonly navy: {
|
|
67
|
+
readonly fill: "#14215A";
|
|
68
|
+
readonly ring: "#1C2D74";
|
|
69
|
+
};
|
|
70
|
+
readonly olive: {
|
|
71
|
+
readonly fill: "#8A9A3B";
|
|
72
|
+
readonly ring: "#7E8E33";
|
|
73
|
+
};
|
|
74
|
+
readonly peach: {
|
|
75
|
+
readonly fill: "#F4D8BC";
|
|
76
|
+
readonly ring: "#EAC7A3";
|
|
77
|
+
};
|
|
78
|
+
readonly plum: {
|
|
79
|
+
readonly fill: "#3D2B66";
|
|
80
|
+
readonly ring: "#483577";
|
|
81
|
+
};
|
|
82
|
+
readonly raspberry: {
|
|
83
|
+
readonly fill: "#C94F7C";
|
|
84
|
+
readonly ring: "#BE4572";
|
|
85
|
+
};
|
|
86
|
+
readonly salmon: {
|
|
87
|
+
readonly fill: "#FF9E7A";
|
|
88
|
+
readonly ring: "#F48D68";
|
|
89
|
+
};
|
|
90
|
+
readonly sky: {
|
|
91
|
+
readonly fill: "#BFE3F7";
|
|
92
|
+
readonly ring: "#AAD5EC";
|
|
93
|
+
};
|
|
94
|
+
readonly slate: {
|
|
95
|
+
readonly fill: "#2E3A59";
|
|
96
|
+
readonly ring: "#38466A";
|
|
97
|
+
};
|
|
98
|
+
readonly teal: {
|
|
99
|
+
readonly fill: "#1F8A8A";
|
|
100
|
+
readonly ring: "#2A9A99";
|
|
101
|
+
};
|
|
102
|
+
readonly violet: {
|
|
103
|
+
readonly fill: "#5B3CC4";
|
|
104
|
+
readonly ring: "#6748CF";
|
|
105
|
+
};
|
|
106
|
+
readonly wine: {
|
|
107
|
+
readonly fill: "#6B2340";
|
|
108
|
+
readonly ring: "#7A2D4C";
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
readonly font: {
|
|
112
|
+
readonly mono: "ui-monospace, 'SF Mono', Menlo, Consolas, monospace";
|
|
113
|
+
readonly sans: "Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif";
|
|
114
|
+
readonly weightBold: 700;
|
|
115
|
+
readonly weightHeavy: 900;
|
|
116
|
+
};
|
|
117
|
+
readonly illustration: {
|
|
118
|
+
readonly accent: "#1E6FEB";
|
|
119
|
+
readonly codePanel: "#14215A";
|
|
120
|
+
readonly healthyShade: "#2BB673";
|
|
121
|
+
readonly iconLine: "#B9C3E0";
|
|
122
|
+
readonly road: "#5B6478";
|
|
123
|
+
readonly tape: "#FFE2C8";
|
|
124
|
+
readonly textBar: "#C9D6F5";
|
|
125
|
+
readonly transitionalShade: "#E8B830";
|
|
126
|
+
};
|
|
127
|
+
readonly map: {
|
|
128
|
+
readonly badgeHeight: 20;
|
|
129
|
+
readonly badgeTextSize: 12;
|
|
130
|
+
readonly casing: 6;
|
|
131
|
+
readonly countHeight: 16;
|
|
132
|
+
readonly countTextSize: 11;
|
|
133
|
+
readonly edgeWidth: 2.5;
|
|
134
|
+
readonly interchangeExtra: 2;
|
|
135
|
+
readonly labelSize: 13;
|
|
136
|
+
readonly lineWidth: 12;
|
|
137
|
+
readonly nodeHeight: 46;
|
|
138
|
+
readonly nodeRadius: 10;
|
|
139
|
+
readonly outline: 3;
|
|
140
|
+
readonly shadow: 3.5;
|
|
141
|
+
readonly stopRadius: 12;
|
|
142
|
+
};
|
|
143
|
+
readonly motion: {
|
|
144
|
+
readonly dimOpacity: 0.42;
|
|
145
|
+
readonly drawArrow: 20;
|
|
146
|
+
readonly fade: 10;
|
|
147
|
+
readonly focus: {
|
|
148
|
+
readonly damping: 200;
|
|
149
|
+
readonly mass: 1;
|
|
150
|
+
readonly stiffness: 120;
|
|
151
|
+
};
|
|
152
|
+
readonly focusScale: 1.06;
|
|
153
|
+
readonly fps: 30;
|
|
154
|
+
readonly pop: {
|
|
155
|
+
readonly damping: 13;
|
|
156
|
+
readonly mass: 0.7;
|
|
157
|
+
readonly stiffness: 140;
|
|
158
|
+
};
|
|
159
|
+
readonly readingHold: 90;
|
|
160
|
+
readonly travel: 22;
|
|
161
|
+
};
|
|
162
|
+
readonly outline: {
|
|
163
|
+
readonly arrow: 4;
|
|
164
|
+
readonly block: 4;
|
|
165
|
+
readonly small: 3;
|
|
166
|
+
};
|
|
167
|
+
readonly radius: {
|
|
168
|
+
readonly block: 18;
|
|
169
|
+
readonly pill: 22;
|
|
170
|
+
readonly small: 6;
|
|
171
|
+
};
|
|
172
|
+
readonly shadow: {
|
|
173
|
+
readonly block: 10;
|
|
174
|
+
readonly pill: 6;
|
|
175
|
+
readonly small: 4;
|
|
176
|
+
};
|
|
177
|
+
readonly site: {
|
|
178
|
+
readonly dark: {
|
|
179
|
+
readonly body: "#1C1C1C";
|
|
180
|
+
readonly border: "#3E3E3E";
|
|
181
|
+
readonly dark: "#FFFFFF";
|
|
182
|
+
readonly light: "#222222";
|
|
183
|
+
readonly primary: "#FFFFFF";
|
|
184
|
+
readonly text: "#B4AFB6";
|
|
185
|
+
readonly textDark: "#FFFFFF";
|
|
186
|
+
readonly textLight: "#B4AFB6";
|
|
187
|
+
};
|
|
188
|
+
readonly font: {
|
|
189
|
+
readonly primary: "Heebo, sans-serif";
|
|
190
|
+
readonly secondary: "Signika, sans-serif";
|
|
191
|
+
};
|
|
192
|
+
readonly fontSize: {
|
|
193
|
+
readonly base: 16;
|
|
194
|
+
readonly baseSmall: 12.8;
|
|
195
|
+
};
|
|
196
|
+
readonly heading: {
|
|
197
|
+
readonly h1: 2.985984;
|
|
198
|
+
readonly h1Small: 2.6873856;
|
|
199
|
+
readonly h2: 2.48832;
|
|
200
|
+
readonly h2Small: 2.239488;
|
|
201
|
+
readonly h3: 2.0736;
|
|
202
|
+
readonly h3Small: 1.86624;
|
|
203
|
+
readonly h4: 1.728;
|
|
204
|
+
readonly h4Small: 1.5552;
|
|
205
|
+
readonly h5: 1.44;
|
|
206
|
+
readonly h5Small: 1.296;
|
|
207
|
+
readonly h6: 1.2;
|
|
208
|
+
readonly h6Small: 1.08;
|
|
209
|
+
};
|
|
210
|
+
readonly light: {
|
|
211
|
+
readonly body: "#FFFFFF";
|
|
212
|
+
readonly border: "#EAEAEA";
|
|
213
|
+
readonly dark: "#040404";
|
|
214
|
+
readonly light: "#F6F6F6";
|
|
215
|
+
readonly primary: "#121212";
|
|
216
|
+
readonly text: "#444444";
|
|
217
|
+
readonly textDark: "#040404";
|
|
218
|
+
readonly textLight: "#717171";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly surface: {
|
|
222
|
+
readonly dark: {
|
|
223
|
+
readonly background: "#14215A";
|
|
224
|
+
readonly grid: "#1C2D74";
|
|
225
|
+
readonly muted: "#8F9BD0";
|
|
226
|
+
readonly panel: "#1C2D74";
|
|
227
|
+
readonly rim: "#EEF2FF";
|
|
228
|
+
readonly rimWidth: 1;
|
|
229
|
+
readonly shadow: "#4C5CB8";
|
|
230
|
+
readonly text: "#EEF2FF";
|
|
231
|
+
};
|
|
232
|
+
readonly light: {
|
|
233
|
+
readonly background: "#EEF2FF";
|
|
234
|
+
readonly grid: "#E0E7FB";
|
|
235
|
+
readonly muted: "#5B6694";
|
|
236
|
+
readonly panel: "#FFFFFF";
|
|
237
|
+
readonly rim: "#EEF2FF";
|
|
238
|
+
readonly rimWidth: 0;
|
|
239
|
+
readonly shadow: "#0A1033";
|
|
240
|
+
readonly text: "#0A1033";
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
export type Tokens = typeof tokens;
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
// Generated from tokens/source.json by scripts/tokens.ts (npm run tokens). Do not edit by hand.
|
|
2
|
+
export const tokens = {
|
|
3
|
+
"color": {
|
|
4
|
+
"backend": "#FF6B6B",
|
|
5
|
+
"blocked": "#FF8A3D",
|
|
6
|
+
"caller": "#8FB2FF",
|
|
7
|
+
"failFast": "#E0661F",
|
|
8
|
+
"failure": "#E04848",
|
|
9
|
+
"healthy": "#3DDC84",
|
|
10
|
+
"ink": "#0A1033",
|
|
11
|
+
"panel": "#EEF2FF",
|
|
12
|
+
"ring": "#E0E7FB",
|
|
13
|
+
"transitional": "#FFD25A",
|
|
14
|
+
"white": "#FFFFFF"
|
|
15
|
+
},
|
|
16
|
+
"cover": {
|
|
17
|
+
"height": 420,
|
|
18
|
+
"labelSize": 19,
|
|
19
|
+
"labelWeight": 800,
|
|
20
|
+
"pillHeight": 36,
|
|
21
|
+
"ringRadius": 90,
|
|
22
|
+
"ringStep": 28,
|
|
23
|
+
"ringWidth": 2,
|
|
24
|
+
"width": 800
|
|
25
|
+
},
|
|
26
|
+
"coverBackground": {
|
|
27
|
+
"blush": {
|
|
28
|
+
"fill": "#F6CFE0",
|
|
29
|
+
"ring": "#ECBAD0"
|
|
30
|
+
},
|
|
31
|
+
"cobalt": {
|
|
32
|
+
"fill": "#1E4FA0",
|
|
33
|
+
"ring": "#2758AE"
|
|
34
|
+
},
|
|
35
|
+
"cream": {
|
|
36
|
+
"fill": "#FFF1C9",
|
|
37
|
+
"ring": "#F4E2AE"
|
|
38
|
+
},
|
|
39
|
+
"deepTeal": {
|
|
40
|
+
"fill": "#0F6E6E",
|
|
41
|
+
"ring": "#167A79"
|
|
42
|
+
},
|
|
43
|
+
"emerald": {
|
|
44
|
+
"fill": "#2F9E6E",
|
|
45
|
+
"ring": "#38AB79"
|
|
46
|
+
},
|
|
47
|
+
"forest": {
|
|
48
|
+
"fill": "#24604F",
|
|
49
|
+
"ring": "#2B6E5B"
|
|
50
|
+
},
|
|
51
|
+
"lavender": {
|
|
52
|
+
"fill": "#B8A6F0",
|
|
53
|
+
"ring": "#AC98EA"
|
|
54
|
+
},
|
|
55
|
+
"lime": {
|
|
56
|
+
"fill": "#D4EC9C",
|
|
57
|
+
"ring": "#C4E086"
|
|
58
|
+
},
|
|
59
|
+
"mint": {
|
|
60
|
+
"fill": "#CDE5D3",
|
|
61
|
+
"ring": "#BCDAC4"
|
|
62
|
+
},
|
|
63
|
+
"mustard": {
|
|
64
|
+
"fill": "#F2C14E",
|
|
65
|
+
"ring": "#E6B33E"
|
|
66
|
+
},
|
|
67
|
+
"navy": {
|
|
68
|
+
"fill": "#14215A",
|
|
69
|
+
"ring": "#1C2D74"
|
|
70
|
+
},
|
|
71
|
+
"olive": {
|
|
72
|
+
"fill": "#8A9A3B",
|
|
73
|
+
"ring": "#7E8E33"
|
|
74
|
+
},
|
|
75
|
+
"peach": {
|
|
76
|
+
"fill": "#F4D8BC",
|
|
77
|
+
"ring": "#EAC7A3"
|
|
78
|
+
},
|
|
79
|
+
"plum": {
|
|
80
|
+
"fill": "#3D2B66",
|
|
81
|
+
"ring": "#483577"
|
|
82
|
+
},
|
|
83
|
+
"raspberry": {
|
|
84
|
+
"fill": "#C94F7C",
|
|
85
|
+
"ring": "#BE4572"
|
|
86
|
+
},
|
|
87
|
+
"salmon": {
|
|
88
|
+
"fill": "#FF9E7A",
|
|
89
|
+
"ring": "#F48D68"
|
|
90
|
+
},
|
|
91
|
+
"sky": {
|
|
92
|
+
"fill": "#BFE3F7",
|
|
93
|
+
"ring": "#AAD5EC"
|
|
94
|
+
},
|
|
95
|
+
"slate": {
|
|
96
|
+
"fill": "#2E3A59",
|
|
97
|
+
"ring": "#38466A"
|
|
98
|
+
},
|
|
99
|
+
"teal": {
|
|
100
|
+
"fill": "#1F8A8A",
|
|
101
|
+
"ring": "#2A9A99"
|
|
102
|
+
},
|
|
103
|
+
"violet": {
|
|
104
|
+
"fill": "#5B3CC4",
|
|
105
|
+
"ring": "#6748CF"
|
|
106
|
+
},
|
|
107
|
+
"wine": {
|
|
108
|
+
"fill": "#6B2340",
|
|
109
|
+
"ring": "#7A2D4C"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"font": {
|
|
113
|
+
"mono": "ui-monospace, 'SF Mono', Menlo, Consolas, monospace",
|
|
114
|
+
"sans": "Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif",
|
|
115
|
+
"weightBold": 700,
|
|
116
|
+
"weightHeavy": 900
|
|
117
|
+
},
|
|
118
|
+
"illustration": {
|
|
119
|
+
"accent": "#1E6FEB",
|
|
120
|
+
"codePanel": "#14215A",
|
|
121
|
+
"healthyShade": "#2BB673",
|
|
122
|
+
"iconLine": "#B9C3E0",
|
|
123
|
+
"road": "#5B6478",
|
|
124
|
+
"tape": "#FFE2C8",
|
|
125
|
+
"textBar": "#C9D6F5",
|
|
126
|
+
"transitionalShade": "#E8B830"
|
|
127
|
+
},
|
|
128
|
+
"map": {
|
|
129
|
+
"badgeHeight": 20,
|
|
130
|
+
"badgeTextSize": 12,
|
|
131
|
+
"casing": 6,
|
|
132
|
+
"countHeight": 16,
|
|
133
|
+
"countTextSize": 11,
|
|
134
|
+
"edgeWidth": 2.5,
|
|
135
|
+
"interchangeExtra": 2,
|
|
136
|
+
"labelSize": 13,
|
|
137
|
+
"lineWidth": 12,
|
|
138
|
+
"nodeHeight": 46,
|
|
139
|
+
"nodeRadius": 10,
|
|
140
|
+
"outline": 3,
|
|
141
|
+
"shadow": 3.5,
|
|
142
|
+
"stopRadius": 12
|
|
143
|
+
},
|
|
144
|
+
"motion": {
|
|
145
|
+
"dimOpacity": 0.42,
|
|
146
|
+
"drawArrow": 20,
|
|
147
|
+
"fade": 10,
|
|
148
|
+
"focus": {
|
|
149
|
+
"damping": 200,
|
|
150
|
+
"mass": 1,
|
|
151
|
+
"stiffness": 120
|
|
152
|
+
},
|
|
153
|
+
"focusScale": 1.06,
|
|
154
|
+
"fps": 30,
|
|
155
|
+
"pop": {
|
|
156
|
+
"damping": 13,
|
|
157
|
+
"mass": 0.7,
|
|
158
|
+
"stiffness": 140
|
|
159
|
+
},
|
|
160
|
+
"readingHold": 90,
|
|
161
|
+
"travel": 22
|
|
162
|
+
},
|
|
163
|
+
"outline": {
|
|
164
|
+
"arrow": 4,
|
|
165
|
+
"block": 4,
|
|
166
|
+
"small": 3
|
|
167
|
+
},
|
|
168
|
+
"radius": {
|
|
169
|
+
"block": 18,
|
|
170
|
+
"pill": 22,
|
|
171
|
+
"small": 6
|
|
172
|
+
},
|
|
173
|
+
"shadow": {
|
|
174
|
+
"block": 10,
|
|
175
|
+
"pill": 6,
|
|
176
|
+
"small": 4
|
|
177
|
+
},
|
|
178
|
+
"site": {
|
|
179
|
+
"dark": {
|
|
180
|
+
"body": "#1C1C1C",
|
|
181
|
+
"border": "#3E3E3E",
|
|
182
|
+
"dark": "#FFFFFF",
|
|
183
|
+
"light": "#222222",
|
|
184
|
+
"primary": "#FFFFFF",
|
|
185
|
+
"text": "#B4AFB6",
|
|
186
|
+
"textDark": "#FFFFFF",
|
|
187
|
+
"textLight": "#B4AFB6"
|
|
188
|
+
},
|
|
189
|
+
"font": {
|
|
190
|
+
"primary": "Heebo, sans-serif",
|
|
191
|
+
"secondary": "Signika, sans-serif"
|
|
192
|
+
},
|
|
193
|
+
"fontSize": {
|
|
194
|
+
"base": 16,
|
|
195
|
+
"baseSmall": 12.8
|
|
196
|
+
},
|
|
197
|
+
"heading": {
|
|
198
|
+
"h1": 2.985984,
|
|
199
|
+
"h1Small": 2.6873856,
|
|
200
|
+
"h2": 2.48832,
|
|
201
|
+
"h2Small": 2.239488,
|
|
202
|
+
"h3": 2.0736,
|
|
203
|
+
"h3Small": 1.86624,
|
|
204
|
+
"h4": 1.728,
|
|
205
|
+
"h4Small": 1.5552,
|
|
206
|
+
"h5": 1.44,
|
|
207
|
+
"h5Small": 1.296,
|
|
208
|
+
"h6": 1.2,
|
|
209
|
+
"h6Small": 1.08
|
|
210
|
+
},
|
|
211
|
+
"light": {
|
|
212
|
+
"body": "#FFFFFF",
|
|
213
|
+
"border": "#EAEAEA",
|
|
214
|
+
"dark": "#040404",
|
|
215
|
+
"light": "#F6F6F6",
|
|
216
|
+
"primary": "#121212",
|
|
217
|
+
"text": "#444444",
|
|
218
|
+
"textDark": "#040404",
|
|
219
|
+
"textLight": "#717171"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"surface": {
|
|
223
|
+
"dark": {
|
|
224
|
+
"background": "#14215A",
|
|
225
|
+
"grid": "#1C2D74",
|
|
226
|
+
"muted": "#8F9BD0",
|
|
227
|
+
"panel": "#1C2D74",
|
|
228
|
+
"rim": "#EEF2FF",
|
|
229
|
+
"rimWidth": 1,
|
|
230
|
+
"shadow": "#4C5CB8",
|
|
231
|
+
"text": "#EEF2FF"
|
|
232
|
+
},
|
|
233
|
+
"light": {
|
|
234
|
+
"background": "#EEF2FF",
|
|
235
|
+
"grid": "#E0E7FB",
|
|
236
|
+
"muted": "#5B6694",
|
|
237
|
+
"panel": "#FFFFFF",
|
|
238
|
+
"rim": "#EEF2FF",
|
|
239
|
+
"rimWidth": 0,
|
|
240
|
+
"shadow": "#0A1033",
|
|
241
|
+
"text": "#0A1033"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,80 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brunosouzas/design-system",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
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
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/brunosouzas/brunosouzas-design-system.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/brunosouzas/brunosouzas-design-system#readme",
|
|
11
|
+
"type": "module",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/src/pieces/index.d.ts",
|
|
15
|
+
"import": "./dist/src/pieces/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./react": {
|
|
18
|
+
"types": "./dist/src/pieces/react.d.ts",
|
|
19
|
+
"import": "./dist/src/pieces/react.js"
|
|
20
|
+
},
|
|
21
|
+
"./tokens": {
|
|
22
|
+
"types": "./dist/tokens/generated/tokens.d.ts",
|
|
23
|
+
"import": "./dist/tokens/generated/tokens.js"
|
|
24
|
+
},
|
|
25
|
+
"./tokens.css": "./tokens/generated/tokens.css",
|
|
26
|
+
"./tokens.json": "./tokens/generated/tokens.json",
|
|
27
|
+
"./package.json": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
"bin": {
|
|
30
|
+
"brunosouzas-cover": "dist/scripts/cover.js"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist/",
|
|
34
|
+
"tokens/generated/",
|
|
35
|
+
"!dist/**/*.test.*"
|
|
36
|
+
],
|
|
37
|
+
"sideEffects": [
|
|
38
|
+
"**/*.css"
|
|
39
|
+
],
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=22.12.0"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"react": ">=19"
|
|
45
|
+
},
|
|
46
|
+
"peerDependenciesMeta": {
|
|
47
|
+
"react": {
|
|
48
|
+
"optional": true
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"tokens": "tsx scripts/tokens.ts",
|
|
53
|
+
"tokens:check": "tsx scripts/tokens.ts --check",
|
|
54
|
+
"stills": "tsx scripts/stills.ts",
|
|
55
|
+
"render": "tsx scripts/render.ts",
|
|
56
|
+
"cover": "tsx scripts/cover.ts",
|
|
57
|
+
"pieces:sheet": "tsx scripts/pieces-sheet.ts",
|
|
58
|
+
"studio": "remotion studio src/index.ts",
|
|
59
|
+
"test": "vitest run",
|
|
60
|
+
"typecheck": "tsc -p .",
|
|
61
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
62
|
+
"prepack": "npm run build"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@remotion/cli": "4.0.538",
|
|
66
|
+
"@remotion/google-fonts": "4.0.538",
|
|
67
|
+
"@remotion/paths": "4.0.538",
|
|
68
|
+
"@types/node": "22.20.5",
|
|
69
|
+
"@types/react": "19.3.0",
|
|
70
|
+
"react": "19.3.1",
|
|
71
|
+
"react-dom": "19.3.1",
|
|
72
|
+
"remotion": "4.0.538",
|
|
73
|
+
"tsx": "4.23.15",
|
|
74
|
+
"typescript": "7.0.2",
|
|
75
|
+
"vitest": "5.0.5"
|
|
76
|
+
},
|
|
77
|
+
"publishConfig": {
|
|
78
|
+
"access": "public"
|
|
79
|
+
}
|
|
80
|
+
}
|