@calimero-network/mero-tokens 0.0.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/dist/index.d.mts +252 -0
- package/dist/index.d.ts +252 -0
- package/dist/index.js +125 -0
- package/dist/index.mjs +93 -0
- package/package.json +31 -0
- package/src/index.ts +45 -0
- package/tokens.json +46 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
var color = {
|
|
2
|
+
neutral: {
|
|
3
|
+
"200": {
|
|
4
|
+
value: "#C8C8C8",
|
|
5
|
+
comment: "Very light gray"
|
|
6
|
+
},
|
|
7
|
+
"300": {
|
|
8
|
+
value: "#A0A0A0",
|
|
9
|
+
comment: "Light gray"
|
|
10
|
+
},
|
|
11
|
+
"400": {
|
|
12
|
+
value: "#8E8E8E",
|
|
13
|
+
comment: "Medium gray"
|
|
14
|
+
},
|
|
15
|
+
"600": {
|
|
16
|
+
value: "#404040",
|
|
17
|
+
comment: "Medium dark gray"
|
|
18
|
+
},
|
|
19
|
+
"700": {
|
|
20
|
+
value: "#282828",
|
|
21
|
+
comment: "Dark gray"
|
|
22
|
+
},
|
|
23
|
+
"800": {
|
|
24
|
+
value: "#222222",
|
|
25
|
+
comment: "Very dark gray"
|
|
26
|
+
},
|
|
27
|
+
"900": {
|
|
28
|
+
value: "#131215",
|
|
29
|
+
comment: "Darkest gray, almost black"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
brand: {
|
|
33
|
+
"100": {
|
|
34
|
+
value: "#ECFC91",
|
|
35
|
+
comment: "Pale creamy yellow"
|
|
36
|
+
},
|
|
37
|
+
"600": {
|
|
38
|
+
value: "#A5FF11",
|
|
39
|
+
comment: "Neon lime green (accent)"
|
|
40
|
+
},
|
|
41
|
+
"700": {
|
|
42
|
+
value: "#73B30C",
|
|
43
|
+
comment: "Bright lime green"
|
|
44
|
+
},
|
|
45
|
+
"800": {
|
|
46
|
+
value: "#8AA200",
|
|
47
|
+
comment: "Vibrant olive green"
|
|
48
|
+
},
|
|
49
|
+
"900": {
|
|
50
|
+
value: "#2D381B",
|
|
51
|
+
comment: "Darkest olive green"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
background: {
|
|
55
|
+
primary: {
|
|
56
|
+
value: "#1A1A1A",
|
|
57
|
+
comment: "Primary background - very dark"
|
|
58
|
+
},
|
|
59
|
+
secondary: {
|
|
60
|
+
value: "#2A2A2A",
|
|
61
|
+
comment: "Secondary background - dark"
|
|
62
|
+
},
|
|
63
|
+
tertiary: {
|
|
64
|
+
value: "#3A3A3A",
|
|
65
|
+
comment: "Tertiary background - medium dark"
|
|
66
|
+
},
|
|
67
|
+
brand: {
|
|
68
|
+
value: "#1F2A15",
|
|
69
|
+
comment: "Brand background - dark olive tint"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
semantic: {
|
|
73
|
+
success: {
|
|
74
|
+
value: "#16a34a",
|
|
75
|
+
comment: "Green for success states"
|
|
76
|
+
},
|
|
77
|
+
warning: {
|
|
78
|
+
value: "#f59e0b",
|
|
79
|
+
comment: "Orange for warning states"
|
|
80
|
+
},
|
|
81
|
+
error: {
|
|
82
|
+
value: "#ef4444",
|
|
83
|
+
comment: "Red for error states"
|
|
84
|
+
},
|
|
85
|
+
info: {
|
|
86
|
+
value: "#3b82f6",
|
|
87
|
+
comment: "Blue for info states"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
var radius$1 = {
|
|
92
|
+
sm: {
|
|
93
|
+
value: "8px"
|
|
94
|
+
},
|
|
95
|
+
md: {
|
|
96
|
+
value: "12px"
|
|
97
|
+
},
|
|
98
|
+
lg: {
|
|
99
|
+
value: "16px"
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
var space = {
|
|
103
|
+
"2": {
|
|
104
|
+
value: "0.5rem"
|
|
105
|
+
},
|
|
106
|
+
"3": {
|
|
107
|
+
value: "0.75rem"
|
|
108
|
+
},
|
|
109
|
+
"4": {
|
|
110
|
+
value: "1rem"
|
|
111
|
+
},
|
|
112
|
+
"6": {
|
|
113
|
+
value: "1.5rem"
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
var font = {
|
|
117
|
+
body: {
|
|
118
|
+
value: "Power Grotesk, system-ui, sans-serif",
|
|
119
|
+
comment: "Main typeface for Calimero brand cohesion"
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
var tokens = {
|
|
123
|
+
color: color,
|
|
124
|
+
radius: radius$1,
|
|
125
|
+
space: space,
|
|
126
|
+
font: font
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
declare const colors: {
|
|
130
|
+
neutral: {
|
|
131
|
+
"900": {
|
|
132
|
+
value: string;
|
|
133
|
+
comment: string;
|
|
134
|
+
};
|
|
135
|
+
"800": {
|
|
136
|
+
value: string;
|
|
137
|
+
comment: string;
|
|
138
|
+
};
|
|
139
|
+
"700": {
|
|
140
|
+
value: string;
|
|
141
|
+
comment: string;
|
|
142
|
+
};
|
|
143
|
+
"600": {
|
|
144
|
+
value: string;
|
|
145
|
+
comment: string;
|
|
146
|
+
};
|
|
147
|
+
"400": {
|
|
148
|
+
value: string;
|
|
149
|
+
comment: string;
|
|
150
|
+
};
|
|
151
|
+
"300": {
|
|
152
|
+
value: string;
|
|
153
|
+
comment: string;
|
|
154
|
+
};
|
|
155
|
+
"200": {
|
|
156
|
+
value: string;
|
|
157
|
+
comment: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
brand: {
|
|
161
|
+
"900": {
|
|
162
|
+
value: string;
|
|
163
|
+
comment: string;
|
|
164
|
+
};
|
|
165
|
+
"800": {
|
|
166
|
+
value: string;
|
|
167
|
+
comment: string;
|
|
168
|
+
};
|
|
169
|
+
"700": {
|
|
170
|
+
value: string;
|
|
171
|
+
comment: string;
|
|
172
|
+
};
|
|
173
|
+
"600": {
|
|
174
|
+
value: string;
|
|
175
|
+
comment: string;
|
|
176
|
+
};
|
|
177
|
+
"100": {
|
|
178
|
+
value: string;
|
|
179
|
+
comment: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
background: {
|
|
183
|
+
primary: {
|
|
184
|
+
value: string;
|
|
185
|
+
comment: string;
|
|
186
|
+
};
|
|
187
|
+
secondary: {
|
|
188
|
+
value: string;
|
|
189
|
+
comment: string;
|
|
190
|
+
};
|
|
191
|
+
tertiary: {
|
|
192
|
+
value: string;
|
|
193
|
+
comment: string;
|
|
194
|
+
};
|
|
195
|
+
brand: {
|
|
196
|
+
value: string;
|
|
197
|
+
comment: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
semantic: {
|
|
201
|
+
success: {
|
|
202
|
+
value: string;
|
|
203
|
+
comment: string;
|
|
204
|
+
};
|
|
205
|
+
warning: {
|
|
206
|
+
value: string;
|
|
207
|
+
comment: string;
|
|
208
|
+
};
|
|
209
|
+
error: {
|
|
210
|
+
value: string;
|
|
211
|
+
comment: string;
|
|
212
|
+
};
|
|
213
|
+
info: {
|
|
214
|
+
value: string;
|
|
215
|
+
comment: string;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
declare const spacing: {
|
|
220
|
+
"2": {
|
|
221
|
+
value: string;
|
|
222
|
+
};
|
|
223
|
+
"3": {
|
|
224
|
+
value: string;
|
|
225
|
+
};
|
|
226
|
+
"4": {
|
|
227
|
+
value: string;
|
|
228
|
+
};
|
|
229
|
+
"6": {
|
|
230
|
+
value: string;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
declare const radius: {
|
|
234
|
+
sm: {
|
|
235
|
+
value: string;
|
|
236
|
+
};
|
|
237
|
+
md: {
|
|
238
|
+
value: string;
|
|
239
|
+
};
|
|
240
|
+
lg: {
|
|
241
|
+
value: string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
declare const fonts: {
|
|
245
|
+
body: {
|
|
246
|
+
value: string;
|
|
247
|
+
comment: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
declare const cssVariables: string;
|
|
251
|
+
|
|
252
|
+
export { colors, cssVariables, fonts, radius, spacing, tokens };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
var color = {
|
|
2
|
+
neutral: {
|
|
3
|
+
"200": {
|
|
4
|
+
value: "#C8C8C8",
|
|
5
|
+
comment: "Very light gray"
|
|
6
|
+
},
|
|
7
|
+
"300": {
|
|
8
|
+
value: "#A0A0A0",
|
|
9
|
+
comment: "Light gray"
|
|
10
|
+
},
|
|
11
|
+
"400": {
|
|
12
|
+
value: "#8E8E8E",
|
|
13
|
+
comment: "Medium gray"
|
|
14
|
+
},
|
|
15
|
+
"600": {
|
|
16
|
+
value: "#404040",
|
|
17
|
+
comment: "Medium dark gray"
|
|
18
|
+
},
|
|
19
|
+
"700": {
|
|
20
|
+
value: "#282828",
|
|
21
|
+
comment: "Dark gray"
|
|
22
|
+
},
|
|
23
|
+
"800": {
|
|
24
|
+
value: "#222222",
|
|
25
|
+
comment: "Very dark gray"
|
|
26
|
+
},
|
|
27
|
+
"900": {
|
|
28
|
+
value: "#131215",
|
|
29
|
+
comment: "Darkest gray, almost black"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
brand: {
|
|
33
|
+
"100": {
|
|
34
|
+
value: "#ECFC91",
|
|
35
|
+
comment: "Pale creamy yellow"
|
|
36
|
+
},
|
|
37
|
+
"600": {
|
|
38
|
+
value: "#A5FF11",
|
|
39
|
+
comment: "Neon lime green (accent)"
|
|
40
|
+
},
|
|
41
|
+
"700": {
|
|
42
|
+
value: "#73B30C",
|
|
43
|
+
comment: "Bright lime green"
|
|
44
|
+
},
|
|
45
|
+
"800": {
|
|
46
|
+
value: "#8AA200",
|
|
47
|
+
comment: "Vibrant olive green"
|
|
48
|
+
},
|
|
49
|
+
"900": {
|
|
50
|
+
value: "#2D381B",
|
|
51
|
+
comment: "Darkest olive green"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
background: {
|
|
55
|
+
primary: {
|
|
56
|
+
value: "#1A1A1A",
|
|
57
|
+
comment: "Primary background - very dark"
|
|
58
|
+
},
|
|
59
|
+
secondary: {
|
|
60
|
+
value: "#2A2A2A",
|
|
61
|
+
comment: "Secondary background - dark"
|
|
62
|
+
},
|
|
63
|
+
tertiary: {
|
|
64
|
+
value: "#3A3A3A",
|
|
65
|
+
comment: "Tertiary background - medium dark"
|
|
66
|
+
},
|
|
67
|
+
brand: {
|
|
68
|
+
value: "#1F2A15",
|
|
69
|
+
comment: "Brand background - dark olive tint"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
semantic: {
|
|
73
|
+
success: {
|
|
74
|
+
value: "#16a34a",
|
|
75
|
+
comment: "Green for success states"
|
|
76
|
+
},
|
|
77
|
+
warning: {
|
|
78
|
+
value: "#f59e0b",
|
|
79
|
+
comment: "Orange for warning states"
|
|
80
|
+
},
|
|
81
|
+
error: {
|
|
82
|
+
value: "#ef4444",
|
|
83
|
+
comment: "Red for error states"
|
|
84
|
+
},
|
|
85
|
+
info: {
|
|
86
|
+
value: "#3b82f6",
|
|
87
|
+
comment: "Blue for info states"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
var radius$1 = {
|
|
92
|
+
sm: {
|
|
93
|
+
value: "8px"
|
|
94
|
+
},
|
|
95
|
+
md: {
|
|
96
|
+
value: "12px"
|
|
97
|
+
},
|
|
98
|
+
lg: {
|
|
99
|
+
value: "16px"
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
var space = {
|
|
103
|
+
"2": {
|
|
104
|
+
value: "0.5rem"
|
|
105
|
+
},
|
|
106
|
+
"3": {
|
|
107
|
+
value: "0.75rem"
|
|
108
|
+
},
|
|
109
|
+
"4": {
|
|
110
|
+
value: "1rem"
|
|
111
|
+
},
|
|
112
|
+
"6": {
|
|
113
|
+
value: "1.5rem"
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
var font = {
|
|
117
|
+
body: {
|
|
118
|
+
value: "Power Grotesk, system-ui, sans-serif",
|
|
119
|
+
comment: "Main typeface for Calimero brand cohesion"
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
var tokens = {
|
|
123
|
+
color: color,
|
|
124
|
+
radius: radius$1,
|
|
125
|
+
space: space,
|
|
126
|
+
font: font
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
declare const colors: {
|
|
130
|
+
neutral: {
|
|
131
|
+
"900": {
|
|
132
|
+
value: string;
|
|
133
|
+
comment: string;
|
|
134
|
+
};
|
|
135
|
+
"800": {
|
|
136
|
+
value: string;
|
|
137
|
+
comment: string;
|
|
138
|
+
};
|
|
139
|
+
"700": {
|
|
140
|
+
value: string;
|
|
141
|
+
comment: string;
|
|
142
|
+
};
|
|
143
|
+
"600": {
|
|
144
|
+
value: string;
|
|
145
|
+
comment: string;
|
|
146
|
+
};
|
|
147
|
+
"400": {
|
|
148
|
+
value: string;
|
|
149
|
+
comment: string;
|
|
150
|
+
};
|
|
151
|
+
"300": {
|
|
152
|
+
value: string;
|
|
153
|
+
comment: string;
|
|
154
|
+
};
|
|
155
|
+
"200": {
|
|
156
|
+
value: string;
|
|
157
|
+
comment: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
brand: {
|
|
161
|
+
"900": {
|
|
162
|
+
value: string;
|
|
163
|
+
comment: string;
|
|
164
|
+
};
|
|
165
|
+
"800": {
|
|
166
|
+
value: string;
|
|
167
|
+
comment: string;
|
|
168
|
+
};
|
|
169
|
+
"700": {
|
|
170
|
+
value: string;
|
|
171
|
+
comment: string;
|
|
172
|
+
};
|
|
173
|
+
"600": {
|
|
174
|
+
value: string;
|
|
175
|
+
comment: string;
|
|
176
|
+
};
|
|
177
|
+
"100": {
|
|
178
|
+
value: string;
|
|
179
|
+
comment: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
background: {
|
|
183
|
+
primary: {
|
|
184
|
+
value: string;
|
|
185
|
+
comment: string;
|
|
186
|
+
};
|
|
187
|
+
secondary: {
|
|
188
|
+
value: string;
|
|
189
|
+
comment: string;
|
|
190
|
+
};
|
|
191
|
+
tertiary: {
|
|
192
|
+
value: string;
|
|
193
|
+
comment: string;
|
|
194
|
+
};
|
|
195
|
+
brand: {
|
|
196
|
+
value: string;
|
|
197
|
+
comment: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
semantic: {
|
|
201
|
+
success: {
|
|
202
|
+
value: string;
|
|
203
|
+
comment: string;
|
|
204
|
+
};
|
|
205
|
+
warning: {
|
|
206
|
+
value: string;
|
|
207
|
+
comment: string;
|
|
208
|
+
};
|
|
209
|
+
error: {
|
|
210
|
+
value: string;
|
|
211
|
+
comment: string;
|
|
212
|
+
};
|
|
213
|
+
info: {
|
|
214
|
+
value: string;
|
|
215
|
+
comment: string;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
declare const spacing: {
|
|
220
|
+
"2": {
|
|
221
|
+
value: string;
|
|
222
|
+
};
|
|
223
|
+
"3": {
|
|
224
|
+
value: string;
|
|
225
|
+
};
|
|
226
|
+
"4": {
|
|
227
|
+
value: string;
|
|
228
|
+
};
|
|
229
|
+
"6": {
|
|
230
|
+
value: string;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
declare const radius: {
|
|
234
|
+
sm: {
|
|
235
|
+
value: string;
|
|
236
|
+
};
|
|
237
|
+
md: {
|
|
238
|
+
value: string;
|
|
239
|
+
};
|
|
240
|
+
lg: {
|
|
241
|
+
value: string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
declare const fonts: {
|
|
245
|
+
body: {
|
|
246
|
+
value: string;
|
|
247
|
+
comment: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
declare const cssVariables: string;
|
|
251
|
+
|
|
252
|
+
export { colors, cssVariables, fonts, radius, spacing, tokens };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
colors: () => colors,
|
|
24
|
+
cssVariables: () => cssVariables,
|
|
25
|
+
fonts: () => fonts,
|
|
26
|
+
radius: () => radius,
|
|
27
|
+
spacing: () => spacing,
|
|
28
|
+
tokens: () => tokens_default
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(index_exports);
|
|
31
|
+
|
|
32
|
+
// tokens.json
|
|
33
|
+
var tokens_default = {
|
|
34
|
+
color: {
|
|
35
|
+
neutral: {
|
|
36
|
+
"900": { value: "#131215", comment: "Darkest gray, almost black" },
|
|
37
|
+
"800": { value: "#222222", comment: "Very dark gray" },
|
|
38
|
+
"700": { value: "#282828", comment: "Dark gray" },
|
|
39
|
+
"600": { value: "#404040", comment: "Medium dark gray" },
|
|
40
|
+
"400": { value: "#8E8E8E", comment: "Medium gray" },
|
|
41
|
+
"300": { value: "#A0A0A0", comment: "Light gray" },
|
|
42
|
+
"200": { value: "#C8C8C8", comment: "Very light gray" }
|
|
43
|
+
},
|
|
44
|
+
brand: {
|
|
45
|
+
"900": { value: "#2D381B", comment: "Darkest olive green" },
|
|
46
|
+
"800": { value: "#8AA200", comment: "Vibrant olive green" },
|
|
47
|
+
"700": { value: "#73B30C", comment: "Bright lime green" },
|
|
48
|
+
"600": { value: "#A5FF11", comment: "Neon lime green (accent)" },
|
|
49
|
+
"100": { value: "#ECFC91", comment: "Pale creamy yellow" }
|
|
50
|
+
},
|
|
51
|
+
background: {
|
|
52
|
+
primary: { value: "#1A1A1A", comment: "Primary background - very dark" },
|
|
53
|
+
secondary: { value: "#2A2A2A", comment: "Secondary background - dark" },
|
|
54
|
+
tertiary: { value: "#3A3A3A", comment: "Tertiary background - medium dark" },
|
|
55
|
+
brand: { value: "#1F2A15", comment: "Brand background - dark olive tint" }
|
|
56
|
+
},
|
|
57
|
+
semantic: {
|
|
58
|
+
success: { value: "#16a34a", comment: "Green for success states" },
|
|
59
|
+
warning: { value: "#f59e0b", comment: "Orange for warning states" },
|
|
60
|
+
error: { value: "#ef4444", comment: "Red for error states" },
|
|
61
|
+
info: { value: "#3b82f6", comment: "Blue for info states" }
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
radius: {
|
|
65
|
+
sm: { value: "8px" },
|
|
66
|
+
md: { value: "12px" },
|
|
67
|
+
lg: { value: "16px" }
|
|
68
|
+
},
|
|
69
|
+
space: {
|
|
70
|
+
"2": { value: "0.5rem" },
|
|
71
|
+
"3": { value: "0.75rem" },
|
|
72
|
+
"4": { value: "1rem" },
|
|
73
|
+
"6": { value: "1.5rem" }
|
|
74
|
+
},
|
|
75
|
+
font: {
|
|
76
|
+
body: { value: "Power Grotesk, system-ui, sans-serif", comment: "Main typeface for Calimero brand cohesion" }
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// src/index.ts
|
|
81
|
+
var colors = tokens_default.color;
|
|
82
|
+
var spacing = tokens_default.space;
|
|
83
|
+
var radius = tokens_default.radius;
|
|
84
|
+
var fonts = tokens_default.font;
|
|
85
|
+
var cssVariables = `
|
|
86
|
+
:root {
|
|
87
|
+
--color-neutral-200: ${colors.neutral["200"].value};
|
|
88
|
+
--color-neutral-300: ${colors.neutral["300"].value};
|
|
89
|
+
--color-neutral-400: ${colors.neutral["400"].value};
|
|
90
|
+
--color-neutral-600: ${colors.neutral["600"].value};
|
|
91
|
+
--color-neutral-700: ${colors.neutral["700"].value};
|
|
92
|
+
--color-neutral-800: ${colors.neutral["800"].value};
|
|
93
|
+
--color-neutral-900: ${colors.neutral["900"].value};
|
|
94
|
+
--color-brand-100: ${colors.brand["100"].value};
|
|
95
|
+
--color-brand-600: ${colors.brand["600"].value};
|
|
96
|
+
--color-brand-700: ${colors.brand["700"].value};
|
|
97
|
+
--color-brand-800: ${colors.brand["800"].value};
|
|
98
|
+
--color-brand-900: ${colors.brand["900"].value};
|
|
99
|
+
--color-background-primary: ${colors.background.primary.value};
|
|
100
|
+
--color-background-secondary: ${colors.background.secondary.value};
|
|
101
|
+
--color-background-tertiary: ${colors.background.tertiary.value};
|
|
102
|
+
--color-background-brand: ${colors.background.brand.value};
|
|
103
|
+
--color-semantic-success: ${colors.semantic.success.value};
|
|
104
|
+
--color-semantic-warning: ${colors.semantic.warning.value};
|
|
105
|
+
--color-semantic-error: ${colors.semantic.error.value};
|
|
106
|
+
--color-semantic-info: ${colors.semantic.info.value};
|
|
107
|
+
--radius-sm: ${radius.sm.value};
|
|
108
|
+
--radius-md: ${radius.md.value};
|
|
109
|
+
--radius-lg: ${radius.lg.value};
|
|
110
|
+
--space-2: ${spacing["2"].value};
|
|
111
|
+
--space-3: ${spacing["3"].value};
|
|
112
|
+
--space-4: ${spacing["4"].value};
|
|
113
|
+
--space-6: ${spacing["6"].value};
|
|
114
|
+
--font-body: ${fonts.body.value};
|
|
115
|
+
}
|
|
116
|
+
`;
|
|
117
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
118
|
+
0 && (module.exports = {
|
|
119
|
+
colors,
|
|
120
|
+
cssVariables,
|
|
121
|
+
fonts,
|
|
122
|
+
radius,
|
|
123
|
+
spacing,
|
|
124
|
+
tokens
|
|
125
|
+
});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// tokens.json
|
|
2
|
+
var tokens_default = {
|
|
3
|
+
color: {
|
|
4
|
+
neutral: {
|
|
5
|
+
"900": { value: "#131215", comment: "Darkest gray, almost black" },
|
|
6
|
+
"800": { value: "#222222", comment: "Very dark gray" },
|
|
7
|
+
"700": { value: "#282828", comment: "Dark gray" },
|
|
8
|
+
"600": { value: "#404040", comment: "Medium dark gray" },
|
|
9
|
+
"400": { value: "#8E8E8E", comment: "Medium gray" },
|
|
10
|
+
"300": { value: "#A0A0A0", comment: "Light gray" },
|
|
11
|
+
"200": { value: "#C8C8C8", comment: "Very light gray" }
|
|
12
|
+
},
|
|
13
|
+
brand: {
|
|
14
|
+
"900": { value: "#2D381B", comment: "Darkest olive green" },
|
|
15
|
+
"800": { value: "#8AA200", comment: "Vibrant olive green" },
|
|
16
|
+
"700": { value: "#73B30C", comment: "Bright lime green" },
|
|
17
|
+
"600": { value: "#A5FF11", comment: "Neon lime green (accent)" },
|
|
18
|
+
"100": { value: "#ECFC91", comment: "Pale creamy yellow" }
|
|
19
|
+
},
|
|
20
|
+
background: {
|
|
21
|
+
primary: { value: "#1A1A1A", comment: "Primary background - very dark" },
|
|
22
|
+
secondary: { value: "#2A2A2A", comment: "Secondary background - dark" },
|
|
23
|
+
tertiary: { value: "#3A3A3A", comment: "Tertiary background - medium dark" },
|
|
24
|
+
brand: { value: "#1F2A15", comment: "Brand background - dark olive tint" }
|
|
25
|
+
},
|
|
26
|
+
semantic: {
|
|
27
|
+
success: { value: "#16a34a", comment: "Green for success states" },
|
|
28
|
+
warning: { value: "#f59e0b", comment: "Orange for warning states" },
|
|
29
|
+
error: { value: "#ef4444", comment: "Red for error states" },
|
|
30
|
+
info: { value: "#3b82f6", comment: "Blue for info states" }
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
radius: {
|
|
34
|
+
sm: { value: "8px" },
|
|
35
|
+
md: { value: "12px" },
|
|
36
|
+
lg: { value: "16px" }
|
|
37
|
+
},
|
|
38
|
+
space: {
|
|
39
|
+
"2": { value: "0.5rem" },
|
|
40
|
+
"3": { value: "0.75rem" },
|
|
41
|
+
"4": { value: "1rem" },
|
|
42
|
+
"6": { value: "1.5rem" }
|
|
43
|
+
},
|
|
44
|
+
font: {
|
|
45
|
+
body: { value: "Power Grotesk, system-ui, sans-serif", comment: "Main typeface for Calimero brand cohesion" }
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// src/index.ts
|
|
50
|
+
var colors = tokens_default.color;
|
|
51
|
+
var spacing = tokens_default.space;
|
|
52
|
+
var radius = tokens_default.radius;
|
|
53
|
+
var fonts = tokens_default.font;
|
|
54
|
+
var cssVariables = `
|
|
55
|
+
:root {
|
|
56
|
+
--color-neutral-200: ${colors.neutral["200"].value};
|
|
57
|
+
--color-neutral-300: ${colors.neutral["300"].value};
|
|
58
|
+
--color-neutral-400: ${colors.neutral["400"].value};
|
|
59
|
+
--color-neutral-600: ${colors.neutral["600"].value};
|
|
60
|
+
--color-neutral-700: ${colors.neutral["700"].value};
|
|
61
|
+
--color-neutral-800: ${colors.neutral["800"].value};
|
|
62
|
+
--color-neutral-900: ${colors.neutral["900"].value};
|
|
63
|
+
--color-brand-100: ${colors.brand["100"].value};
|
|
64
|
+
--color-brand-600: ${colors.brand["600"].value};
|
|
65
|
+
--color-brand-700: ${colors.brand["700"].value};
|
|
66
|
+
--color-brand-800: ${colors.brand["800"].value};
|
|
67
|
+
--color-brand-900: ${colors.brand["900"].value};
|
|
68
|
+
--color-background-primary: ${colors.background.primary.value};
|
|
69
|
+
--color-background-secondary: ${colors.background.secondary.value};
|
|
70
|
+
--color-background-tertiary: ${colors.background.tertiary.value};
|
|
71
|
+
--color-background-brand: ${colors.background.brand.value};
|
|
72
|
+
--color-semantic-success: ${colors.semantic.success.value};
|
|
73
|
+
--color-semantic-warning: ${colors.semantic.warning.value};
|
|
74
|
+
--color-semantic-error: ${colors.semantic.error.value};
|
|
75
|
+
--color-semantic-info: ${colors.semantic.info.value};
|
|
76
|
+
--radius-sm: ${radius.sm.value};
|
|
77
|
+
--radius-md: ${radius.md.value};
|
|
78
|
+
--radius-lg: ${radius.lg.value};
|
|
79
|
+
--space-2: ${spacing["2"].value};
|
|
80
|
+
--space-3: ${spacing["3"].value};
|
|
81
|
+
--space-4: ${spacing["4"].value};
|
|
82
|
+
--space-6: ${spacing["6"].value};
|
|
83
|
+
--font-body: ${fonts.body.value};
|
|
84
|
+
}
|
|
85
|
+
`;
|
|
86
|
+
export {
|
|
87
|
+
colors,
|
|
88
|
+
cssVariables,
|
|
89
|
+
fonts,
|
|
90
|
+
radius,
|
|
91
|
+
spacing,
|
|
92
|
+
tokens_default as tokens
|
|
93
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@calimero-network/mero-tokens",
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public"
|
|
5
|
+
},
|
|
6
|
+
"version": "0.0.1",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.mjs",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.mjs",
|
|
14
|
+
"require": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"src",
|
|
20
|
+
"tokens.json"
|
|
21
|
+
],
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"tsup": "^8.0.0",
|
|
24
|
+
"typescript": "^5.5.0"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsup src/index.ts --dts --format esm,cjs",
|
|
28
|
+
"dev": "pnpm build",
|
|
29
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
30
|
+
}
|
|
31
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Export the raw tokens data
|
|
2
|
+
import tokens from '../tokens.json';
|
|
3
|
+
|
|
4
|
+
// Export the tokens object
|
|
5
|
+
export { tokens };
|
|
6
|
+
|
|
7
|
+
// Export individual token categories
|
|
8
|
+
export const colors = tokens.color;
|
|
9
|
+
export const spacing = tokens.space;
|
|
10
|
+
export const radius = tokens.radius;
|
|
11
|
+
export const fonts = tokens.font;
|
|
12
|
+
|
|
13
|
+
// Export CSS variables as a string (for runtime use)
|
|
14
|
+
export const cssVariables = `
|
|
15
|
+
:root {
|
|
16
|
+
--color-neutral-200: ${colors.neutral['200'].value};
|
|
17
|
+
--color-neutral-300: ${colors.neutral['300'].value};
|
|
18
|
+
--color-neutral-400: ${colors.neutral['400'].value};
|
|
19
|
+
--color-neutral-600: ${colors.neutral['600'].value};
|
|
20
|
+
--color-neutral-700: ${colors.neutral['700'].value};
|
|
21
|
+
--color-neutral-800: ${colors.neutral['800'].value};
|
|
22
|
+
--color-neutral-900: ${colors.neutral['900'].value};
|
|
23
|
+
--color-brand-100: ${colors.brand['100'].value};
|
|
24
|
+
--color-brand-600: ${colors.brand['600'].value};
|
|
25
|
+
--color-brand-700: ${colors.brand['700'].value};
|
|
26
|
+
--color-brand-800: ${colors.brand['800'].value};
|
|
27
|
+
--color-brand-900: ${colors.brand['900'].value};
|
|
28
|
+
--color-background-primary: ${colors.background.primary.value};
|
|
29
|
+
--color-background-secondary: ${colors.background.secondary.value};
|
|
30
|
+
--color-background-tertiary: ${colors.background.tertiary.value};
|
|
31
|
+
--color-background-brand: ${colors.background.brand.value};
|
|
32
|
+
--color-semantic-success: ${colors.semantic.success.value};
|
|
33
|
+
--color-semantic-warning: ${colors.semantic.warning.value};
|
|
34
|
+
--color-semantic-error: ${colors.semantic.error.value};
|
|
35
|
+
--color-semantic-info: ${colors.semantic.info.value};
|
|
36
|
+
--radius-sm: ${radius.sm.value};
|
|
37
|
+
--radius-md: ${radius.md.value};
|
|
38
|
+
--radius-lg: ${radius.lg.value};
|
|
39
|
+
--space-2: ${spacing['2'].value};
|
|
40
|
+
--space-3: ${spacing['3'].value};
|
|
41
|
+
--space-4: ${spacing['4'].value};
|
|
42
|
+
--space-6: ${spacing['6'].value};
|
|
43
|
+
--font-body: ${fonts.body.value};
|
|
44
|
+
}
|
|
45
|
+
`;
|
package/tokens.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"color": {
|
|
3
|
+
"neutral": {
|
|
4
|
+
"900": { "value": "#131215", "comment": "Darkest gray, almost black" },
|
|
5
|
+
"800": { "value": "#222222", "comment": "Very dark gray" },
|
|
6
|
+
"700": { "value": "#282828", "comment": "Dark gray" },
|
|
7
|
+
"600": { "value": "#404040", "comment": "Medium dark gray" },
|
|
8
|
+
"400": { "value": "#8E8E8E", "comment": "Medium gray" },
|
|
9
|
+
"300": { "value": "#A0A0A0", "comment": "Light gray" },
|
|
10
|
+
"200": { "value": "#C8C8C8", "comment": "Very light gray" }
|
|
11
|
+
},
|
|
12
|
+
"brand": {
|
|
13
|
+
"900": { "value": "#2D381B", "comment": "Darkest olive green" },
|
|
14
|
+
"800": { "value": "#8AA200", "comment": "Vibrant olive green" },
|
|
15
|
+
"700": { "value": "#73B30C", "comment": "Bright lime green" },
|
|
16
|
+
"600": { "value": "#A5FF11", "comment": "Neon lime green (accent)" },
|
|
17
|
+
"100": { "value": "#ECFC91", "comment": "Pale creamy yellow" }
|
|
18
|
+
},
|
|
19
|
+
"background": {
|
|
20
|
+
"primary": { "value": "#1A1A1A", "comment": "Primary background - very dark" },
|
|
21
|
+
"secondary": { "value": "#2A2A2A", "comment": "Secondary background - dark" },
|
|
22
|
+
"tertiary": { "value": "#3A3A3A", "comment": "Tertiary background - medium dark" },
|
|
23
|
+
"brand": { "value": "#1F2A15", "comment": "Brand background - dark olive tint" }
|
|
24
|
+
},
|
|
25
|
+
"semantic": {
|
|
26
|
+
"success": { "value": "#16a34a", "comment": "Green for success states" },
|
|
27
|
+
"warning": { "value": "#f59e0b", "comment": "Orange for warning states" },
|
|
28
|
+
"error": { "value": "#ef4444", "comment": "Red for error states" },
|
|
29
|
+
"info": { "value": "#3b82f6", "comment": "Blue for info states" }
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"radius": {
|
|
33
|
+
"sm": { "value": "8px" },
|
|
34
|
+
"md": { "value": "12px" },
|
|
35
|
+
"lg": { "value": "16px" }
|
|
36
|
+
},
|
|
37
|
+
"space": {
|
|
38
|
+
"2": { "value": "0.5rem" },
|
|
39
|
+
"3": { "value": "0.75rem" },
|
|
40
|
+
"4": { "value": "1rem" },
|
|
41
|
+
"6": { "value": "1.5rem" }
|
|
42
|
+
},
|
|
43
|
+
"font": {
|
|
44
|
+
"body": { "value": "Power Grotesk, system-ui, sans-serif", "comment": "Main typeface for Calimero brand cohesion" }
|
|
45
|
+
}
|
|
46
|
+
}
|