@pacer-ui/tokens 1.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/LICENSE +21 -0
- package/README.md +106 -0
- package/dist/index.d.mts +741 -0
- package/dist/index.d.ts +741 -0
- package/dist/index.js +460 -0
- package/dist/index.mjs +425 -0
- package/dist/tokens.css +288 -0
- package/dist/tokens.json +365 -0
- package/package.json +35 -0
package/dist/tokens.json
ADDED
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": {
|
|
3
|
+
"brand": {
|
|
4
|
+
"50": "#E6F0FE",
|
|
5
|
+
"100": "#D9E9FE",
|
|
6
|
+
"200": "#B0D1FD",
|
|
7
|
+
"300": "#016BF8",
|
|
8
|
+
"400": "#0160DF",
|
|
9
|
+
"500": "#0156C6",
|
|
10
|
+
"600": "#0150BA",
|
|
11
|
+
"700": "#014095",
|
|
12
|
+
"800": "#003070",
|
|
13
|
+
"900": "#002557"
|
|
14
|
+
},
|
|
15
|
+
"base": {
|
|
16
|
+
"black": "#000000",
|
|
17
|
+
"white": "#FFFFFF"
|
|
18
|
+
},
|
|
19
|
+
"slate": {
|
|
20
|
+
"50": "#F8FAFC",
|
|
21
|
+
"100": "#F1F5F9",
|
|
22
|
+
"200": "#E2E8F0",
|
|
23
|
+
"300": "#CBD5E1",
|
|
24
|
+
"400": "#94A3B8",
|
|
25
|
+
"500": "#64748B",
|
|
26
|
+
"600": "#475569",
|
|
27
|
+
"700": "#334155",
|
|
28
|
+
"800": "#1E293B",
|
|
29
|
+
"900": "#0F172A",
|
|
30
|
+
"950": "#020617"
|
|
31
|
+
},
|
|
32
|
+
"red": {
|
|
33
|
+
"50": "#FEF2F2",
|
|
34
|
+
"100": "#FEE2E2",
|
|
35
|
+
"200": "#FECACA",
|
|
36
|
+
"300": "#FCA5A5",
|
|
37
|
+
"400": "#F87171",
|
|
38
|
+
"500": "#EF4444",
|
|
39
|
+
"600": "#DC2626",
|
|
40
|
+
"700": "#B91C1C",
|
|
41
|
+
"800": "#991B1B",
|
|
42
|
+
"900": "#7F1D1D",
|
|
43
|
+
"950": "#450A0A"
|
|
44
|
+
},
|
|
45
|
+
"green": {
|
|
46
|
+
"50": "#F0FDF4",
|
|
47
|
+
"100": "#DCFCE7",
|
|
48
|
+
"200": "#BBF7D0",
|
|
49
|
+
"300": "#86EFAC",
|
|
50
|
+
"400": "#4ADE80",
|
|
51
|
+
"500": "#22C55E",
|
|
52
|
+
"600": "#16A34A",
|
|
53
|
+
"700": "#15803D",
|
|
54
|
+
"800": "#166534",
|
|
55
|
+
"900": "#14532D",
|
|
56
|
+
"950": "#052E16"
|
|
57
|
+
},
|
|
58
|
+
"yellow": {
|
|
59
|
+
"50": "#FEFCE8",
|
|
60
|
+
"100": "#FEF9C3",
|
|
61
|
+
"200": "#FEF08A",
|
|
62
|
+
"300": "#FDE047",
|
|
63
|
+
"400": "#FACC15",
|
|
64
|
+
"500": "#EAB308",
|
|
65
|
+
"600": "#CA8A04",
|
|
66
|
+
"700": "#A16207",
|
|
67
|
+
"800": "#854D0E",
|
|
68
|
+
"900": "#713F12",
|
|
69
|
+
"950": "#422006"
|
|
70
|
+
},
|
|
71
|
+
"blue": {
|
|
72
|
+
"50": "#EFF6FF",
|
|
73
|
+
"100": "#DBEAFE",
|
|
74
|
+
"200": "#BFDBFE",
|
|
75
|
+
"300": "#93C5FD",
|
|
76
|
+
"400": "#60A5FA",
|
|
77
|
+
"500": "#3B82F6",
|
|
78
|
+
"600": "#2563EB",
|
|
79
|
+
"700": "#1D4ED8",
|
|
80
|
+
"800": "#1E40AF",
|
|
81
|
+
"900": "#1E3A8A",
|
|
82
|
+
"950": "#172554"
|
|
83
|
+
},
|
|
84
|
+
"gray": {
|
|
85
|
+
"50": "#F9FAFB",
|
|
86
|
+
"100": "#F3F4F6",
|
|
87
|
+
"200": "#E5E7EB",
|
|
88
|
+
"300": "#D1D5DB",
|
|
89
|
+
"400": "#9CA3AF",
|
|
90
|
+
"500": "#6B7280",
|
|
91
|
+
"600": "#4B5563",
|
|
92
|
+
"700": "#374151",
|
|
93
|
+
"800": "#1F2937",
|
|
94
|
+
"900": "#111827",
|
|
95
|
+
"950": "#030712"
|
|
96
|
+
},
|
|
97
|
+
"zinc": {
|
|
98
|
+
"50": "#FAFAFA",
|
|
99
|
+
"100": "#F4F4F5",
|
|
100
|
+
"200": "#E4E4E7",
|
|
101
|
+
"300": "#D4D4D8",
|
|
102
|
+
"400": "#A1A1AA",
|
|
103
|
+
"500": "#71717A",
|
|
104
|
+
"600": "#52525B",
|
|
105
|
+
"700": "#3F3F46",
|
|
106
|
+
"800": "#27272A",
|
|
107
|
+
"900": "#18181B",
|
|
108
|
+
"950": "#09090B"
|
|
109
|
+
},
|
|
110
|
+
"neutral": {
|
|
111
|
+
"50": "#FAFAFA",
|
|
112
|
+
"100": "#F5F5F5",
|
|
113
|
+
"200": "#E5E5E5",
|
|
114
|
+
"300": "#D4D4D4",
|
|
115
|
+
"400": "#A3A3A3",
|
|
116
|
+
"500": "#737373",
|
|
117
|
+
"600": "#525252",
|
|
118
|
+
"700": "#404040",
|
|
119
|
+
"800": "#262626",
|
|
120
|
+
"900": "#171717",
|
|
121
|
+
"950": "#0A0A0A"
|
|
122
|
+
},
|
|
123
|
+
"stone": {
|
|
124
|
+
"50": "#FAFAF9",
|
|
125
|
+
"100": "#F5F5F4",
|
|
126
|
+
"200": "#E7E5E4",
|
|
127
|
+
"300": "#D6D3D1",
|
|
128
|
+
"400": "#A8A29E",
|
|
129
|
+
"500": "#78716C",
|
|
130
|
+
"600": "#57534E",
|
|
131
|
+
"700": "#44403C",
|
|
132
|
+
"800": "#292524",
|
|
133
|
+
"900": "#1C1917",
|
|
134
|
+
"950": "#0C0A09"
|
|
135
|
+
},
|
|
136
|
+
"pertamina": {
|
|
137
|
+
"red": "#ED1B2F",
|
|
138
|
+
"blue": "#006CB8",
|
|
139
|
+
"green": "#ACC42A"
|
|
140
|
+
},
|
|
141
|
+
"success": {
|
|
142
|
+
"50": "#F0FDF4",
|
|
143
|
+
"100": "#DCFCE7",
|
|
144
|
+
"200": "#BBF7D0",
|
|
145
|
+
"300": "#86EFAC",
|
|
146
|
+
"400": "#4ADE80",
|
|
147
|
+
"500": "#22C55E",
|
|
148
|
+
"600": "#16A34A",
|
|
149
|
+
"700": "#15803D",
|
|
150
|
+
"800": "#166534",
|
|
151
|
+
"900": "#14532D"
|
|
152
|
+
},
|
|
153
|
+
"warning": {
|
|
154
|
+
"50": "#FEFCE8",
|
|
155
|
+
"100": "#FEF9C3",
|
|
156
|
+
"200": "#FEF08A",
|
|
157
|
+
"300": "#FDE047",
|
|
158
|
+
"400": "#FACC15",
|
|
159
|
+
"500": "#EAB308",
|
|
160
|
+
"600": "#CA8A04",
|
|
161
|
+
"700": "#A16207",
|
|
162
|
+
"800": "#854D0E",
|
|
163
|
+
"900": "#713F12"
|
|
164
|
+
},
|
|
165
|
+
"error": {
|
|
166
|
+
"50": "#FEF2F2",
|
|
167
|
+
"100": "#FEE2E2",
|
|
168
|
+
"200": "#FECACA",
|
|
169
|
+
"300": "#FCA5A5",
|
|
170
|
+
"400": "#F87171",
|
|
171
|
+
"500": "#EF4444",
|
|
172
|
+
"600": "#DC2626",
|
|
173
|
+
"700": "#B91C1C",
|
|
174
|
+
"800": "#991B1B",
|
|
175
|
+
"900": "#7F1D1D"
|
|
176
|
+
},
|
|
177
|
+
"info": {
|
|
178
|
+
"50": "#EFF6FF",
|
|
179
|
+
"100": "#DBEAFE",
|
|
180
|
+
"200": "#BFDBFE",
|
|
181
|
+
"300": "#93C5FD",
|
|
182
|
+
"400": "#60A5FA",
|
|
183
|
+
"500": "#3B82F6",
|
|
184
|
+
"600": "#2563EB",
|
|
185
|
+
"700": "#1D4ED8",
|
|
186
|
+
"800": "#1E40AF",
|
|
187
|
+
"900": "#1E3A8A"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"typography": {
|
|
191
|
+
"fontFamily": {
|
|
192
|
+
"sans": "\"Geist\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
|
|
193
|
+
"serif": "\"Inter\", Georgia, \"Times New Roman\", serif",
|
|
194
|
+
"mono": "\"Manrope\", \"Fira Code\", Consolas, Monaco, monospace"
|
|
195
|
+
},
|
|
196
|
+
"fontSize": {
|
|
197
|
+
"xs": "0.75rem",
|
|
198
|
+
"sm": "0.875rem",
|
|
199
|
+
"base": "1rem",
|
|
200
|
+
"lg": "1.125rem",
|
|
201
|
+
"xl": "1.25rem",
|
|
202
|
+
"2xl": "1.5rem",
|
|
203
|
+
"3xl": "1.875rem",
|
|
204
|
+
"4xl": "2.25rem",
|
|
205
|
+
"5xl": "3rem",
|
|
206
|
+
"6xl": "3.75rem",
|
|
207
|
+
"7xl": "4.5rem",
|
|
208
|
+
"8xl": "6rem",
|
|
209
|
+
"9xl": "8rem"
|
|
210
|
+
},
|
|
211
|
+
"fontWeight": {
|
|
212
|
+
"thin": "100",
|
|
213
|
+
"extralight": "200",
|
|
214
|
+
"light": "300",
|
|
215
|
+
"normal": "400",
|
|
216
|
+
"medium": "500",
|
|
217
|
+
"semibold": "600",
|
|
218
|
+
"bold": "700",
|
|
219
|
+
"extrabold": "800",
|
|
220
|
+
"black": "900"
|
|
221
|
+
},
|
|
222
|
+
"lineHeight": {
|
|
223
|
+
"3": "0.75rem",
|
|
224
|
+
"4": "1rem",
|
|
225
|
+
"5": "1.25rem",
|
|
226
|
+
"6": "1.5rem",
|
|
227
|
+
"7": "1.75rem",
|
|
228
|
+
"8": "2rem",
|
|
229
|
+
"9": "2.25rem",
|
|
230
|
+
"10": "2.5rem",
|
|
231
|
+
"none": "1",
|
|
232
|
+
"tight": "1.25",
|
|
233
|
+
"snug": "1.375",
|
|
234
|
+
"normal": "1.5",
|
|
235
|
+
"relaxed": "1.625",
|
|
236
|
+
"loose": "2"
|
|
237
|
+
},
|
|
238
|
+
"letterSpacing": {
|
|
239
|
+
"tighter": "-0.05em",
|
|
240
|
+
"tight": "-0.025em",
|
|
241
|
+
"normal": "0em",
|
|
242
|
+
"wide": "0.025em",
|
|
243
|
+
"wider": "0.05em",
|
|
244
|
+
"widest": "0.1em"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"spacing": {
|
|
248
|
+
"0": "0px",
|
|
249
|
+
"1": "4px",
|
|
250
|
+
"2": "8px",
|
|
251
|
+
"3": "12px",
|
|
252
|
+
"4": "16px",
|
|
253
|
+
"5": "20px",
|
|
254
|
+
"6": "24px",
|
|
255
|
+
"7": "28px",
|
|
256
|
+
"8": "32px",
|
|
257
|
+
"9": "36px",
|
|
258
|
+
"10": "40px",
|
|
259
|
+
"11": "44px",
|
|
260
|
+
"12": "48px",
|
|
261
|
+
"14": "56px",
|
|
262
|
+
"16": "64px",
|
|
263
|
+
"18": "72px",
|
|
264
|
+
"20": "80px",
|
|
265
|
+
"24": "96px",
|
|
266
|
+
"28": "112px",
|
|
267
|
+
"32": "128px",
|
|
268
|
+
"64": "256px",
|
|
269
|
+
"px": "1px",
|
|
270
|
+
"0.5": "2px",
|
|
271
|
+
"1.5": "6px",
|
|
272
|
+
"2.5": "10px",
|
|
273
|
+
"3.5": "14px"
|
|
274
|
+
},
|
|
275
|
+
"borderRadius": {
|
|
276
|
+
"none": "0px",
|
|
277
|
+
"sm": "2px",
|
|
278
|
+
"DEFAULT": "4px",
|
|
279
|
+
"md": "6px",
|
|
280
|
+
"lg": "8px",
|
|
281
|
+
"xl": "12px",
|
|
282
|
+
"2xl": "16px",
|
|
283
|
+
"3xl": "24px",
|
|
284
|
+
"full": "9999px"
|
|
285
|
+
},
|
|
286
|
+
"opacity": {
|
|
287
|
+
"0": "0",
|
|
288
|
+
"5": "0.05",
|
|
289
|
+
"10": "0.1",
|
|
290
|
+
"20": "0.2",
|
|
291
|
+
"25": "0.25",
|
|
292
|
+
"30": "0.3",
|
|
293
|
+
"40": "0.4",
|
|
294
|
+
"50": "0.5",
|
|
295
|
+
"60": "0.6",
|
|
296
|
+
"70": "0.7",
|
|
297
|
+
"80": "0.8",
|
|
298
|
+
"90": "0.9",
|
|
299
|
+
"95": "0.95",
|
|
300
|
+
"100": "1"
|
|
301
|
+
},
|
|
302
|
+
"maxWidth": {
|
|
303
|
+
"xs": "320px",
|
|
304
|
+
"sm": "384px",
|
|
305
|
+
"md": "448px",
|
|
306
|
+
"lg": "512px",
|
|
307
|
+
"xl": "576px",
|
|
308
|
+
"2xl": "672px",
|
|
309
|
+
"3xl": "768px",
|
|
310
|
+
"4xl": "896px",
|
|
311
|
+
"5xl": "1024px",
|
|
312
|
+
"6xl": "1152px",
|
|
313
|
+
"7xl": "1280px",
|
|
314
|
+
"screen-sm": "640px",
|
|
315
|
+
"screen-md": "768px",
|
|
316
|
+
"screen-lg": "1024px",
|
|
317
|
+
"screen-xl": "1280px",
|
|
318
|
+
"screen-2xl": "1536px"
|
|
319
|
+
},
|
|
320
|
+
"shadows": {
|
|
321
|
+
"sm": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
322
|
+
"DEFAULT": "0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10)",
|
|
323
|
+
"md": "0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -2px rgba(0, 0, 0, 0.10)",
|
|
324
|
+
"lg": "0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10)",
|
|
325
|
+
"xl": "0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10)",
|
|
326
|
+
"2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
|
|
327
|
+
"inner": "inset 0 2px 4px 0 rgba(0, 0, 0, 0.05)",
|
|
328
|
+
"none": "0 0 #0000"
|
|
329
|
+
},
|
|
330
|
+
"motion": {
|
|
331
|
+
"duration": {
|
|
332
|
+
"instant": "0ms",
|
|
333
|
+
"fast": "150ms",
|
|
334
|
+
"normal": "250ms",
|
|
335
|
+
"slow": "350ms",
|
|
336
|
+
"slower": "500ms"
|
|
337
|
+
},
|
|
338
|
+
"easing": {
|
|
339
|
+
"linear": "linear",
|
|
340
|
+
"easeIn": "cubic-bezier(0.4, 0, 1, 1)",
|
|
341
|
+
"easeOut": "cubic-bezier(0, 0, 0.2, 1)",
|
|
342
|
+
"easeInOut": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
343
|
+
"spring": "cubic-bezier(0.34, 1.56, 0.64, 1)"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"breakpoints": {
|
|
347
|
+
"sm": "640px",
|
|
348
|
+
"md": "768px",
|
|
349
|
+
"lg": "1024px",
|
|
350
|
+
"xl": "1280px",
|
|
351
|
+
"2xl": "1536px"
|
|
352
|
+
},
|
|
353
|
+
"zIndex": {
|
|
354
|
+
"hide": "-1",
|
|
355
|
+
"base": "0",
|
|
356
|
+
"dropdown": "1000",
|
|
357
|
+
"sticky": "1020",
|
|
358
|
+
"fixed": "1030",
|
|
359
|
+
"modalBackdrop": "1040",
|
|
360
|
+
"modal": "1050",
|
|
361
|
+
"popover": "1060",
|
|
362
|
+
"tooltip": "1070",
|
|
363
|
+
"toast": "1080"
|
|
364
|
+
}
|
|
365
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pacer-ui/tokens",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./json": "./dist/tokens.json",
|
|
15
|
+
"./css": "./dist/tokens.css"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"keywords": [
|
|
21
|
+
"design-tokens",
|
|
22
|
+
"design-system",
|
|
23
|
+
"pertamina"
|
|
24
|
+
],
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"tsup": "^8.0.1",
|
|
28
|
+
"typescript": "^5.3.3"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsup src/index.ts --format esm,cjs --dts && node scripts/build-tokens.js",
|
|
32
|
+
"dev": "tsup src/index.ts --format esm,cjs --dts --watch",
|
|
33
|
+
"clean": "rm -rf dist"
|
|
34
|
+
}
|
|
35
|
+
}
|