@cieloazul310/digital-go-pandacss-plugin 0.2.2 → 0.3.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.
- package/dist/index.cjs +768 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +5 -3
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +714 -669
- package/dist/index.mjs.map +1 -0
- package/package.json +13 -9
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -727
package/dist/index.mjs
CHANGED
|
@@ -1,696 +1,741 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { preset as pandaPreset2 } from "@pandacss/preset-panda";
|
|
4
|
-
|
|
5
|
-
// src/semanticTokens/index.ts
|
|
6
|
-
import { defineSemanticTokens as defineSemanticTokens2 } from "@pandacss/dev";
|
|
7
|
-
|
|
8
|
-
// src/semanticTokens/colors.ts
|
|
9
|
-
import { defineSemanticTokens } from "@pandacss/dev";
|
|
1
|
+
import { defineGlobalStyles, definePreset, defineSemanticTokens, defineTextStyles, defineTokens, defineUtility } from "@pandacss/dev";
|
|
2
|
+
import { preset } from "@pandacss/preset-panda";
|
|
10
3
|
import { createKeyColor } from "@cieloazul310/digital-go-pandacss-utils";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
import tokens from "@digital-go-jp/design-tokens";
|
|
5
|
+
|
|
6
|
+
//#region src/semanticTokens/colors.ts
|
|
7
|
+
const colors$1 = defineSemanticTokens.colors({
|
|
8
|
+
keyColor: createKeyColor("blue"),
|
|
9
|
+
ring: { value: "{colors.yellow.300}" }
|
|
14
10
|
});
|
|
15
|
-
var colors_default = colors;
|
|
11
|
+
var colors_default$1 = colors$1;
|
|
16
12
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/semanticTokens/index.ts
|
|
15
|
+
var semanticTokens_default = defineSemanticTokens({
|
|
16
|
+
colors: colors_default$1,
|
|
17
|
+
fontWeights: {
|
|
18
|
+
N: {
|
|
19
|
+
value: "{fontWeights.400}",
|
|
20
|
+
description: "400 (normal)"
|
|
21
|
+
},
|
|
22
|
+
B: {
|
|
23
|
+
value: "{fontWeights.700}",
|
|
24
|
+
description: "700 (bold)"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
24
27
|
});
|
|
25
28
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/textStyles/index.ts
|
|
31
|
+
const textStyle = Object.entries({
|
|
32
|
+
dsp: {
|
|
33
|
+
fontFamily: "body",
|
|
34
|
+
description: "Displayテキストは、主に冒頭で大きく掲出されるテキストやメッセージを伝えるヘッドコピーなど、視覚的なインパクトを強く与えたい場合に使用されます。",
|
|
35
|
+
variants: [
|
|
36
|
+
(
|
|
37
|
+
/** Display(Dsp) Bold */
|
|
38
|
+
{
|
|
39
|
+
fontSize: 64,
|
|
40
|
+
fontWeight: "B",
|
|
41
|
+
lineHeight: 140
|
|
42
|
+
}),
|
|
43
|
+
{
|
|
44
|
+
fontSize: 57,
|
|
45
|
+
fontWeight: "B",
|
|
46
|
+
lineHeight: 140
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
fontSize: 48,
|
|
50
|
+
fontWeight: "B",
|
|
51
|
+
lineHeight: 140
|
|
52
|
+
},
|
|
53
|
+
(
|
|
54
|
+
/** Display(Dsp) Normal */
|
|
55
|
+
{
|
|
56
|
+
fontSize: 64,
|
|
57
|
+
fontWeight: "N",
|
|
58
|
+
lineHeight: 140
|
|
59
|
+
}),
|
|
60
|
+
{
|
|
61
|
+
fontSize: 57,
|
|
62
|
+
fontWeight: "N",
|
|
63
|
+
lineHeight: 140
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
fontSize: 48,
|
|
67
|
+
fontWeight: "N",
|
|
68
|
+
lineHeight: 140
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
std: {
|
|
73
|
+
fontFamily: "body",
|
|
74
|
+
description: "Standardテキストは、ページの文書構造を形成する見出しや本文など、多くの要素において最も使用される普遍的なテキストスタイルです。",
|
|
75
|
+
variants: [
|
|
76
|
+
(
|
|
77
|
+
/** Standard(Std) Bold */
|
|
78
|
+
{
|
|
79
|
+
fontSize: 45,
|
|
80
|
+
fontWeight: "B",
|
|
81
|
+
lineHeight: 140
|
|
82
|
+
}),
|
|
83
|
+
{
|
|
84
|
+
fontSize: 36,
|
|
85
|
+
fontWeight: "B",
|
|
86
|
+
lineHeight: 140,
|
|
87
|
+
letterSpacing: .01
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
fontSize: 32,
|
|
91
|
+
fontWeight: "B",
|
|
92
|
+
lineHeight: 150,
|
|
93
|
+
letterSpacing: .01
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
fontSize: 28,
|
|
97
|
+
fontWeight: "B",
|
|
98
|
+
lineHeight: 150,
|
|
99
|
+
letterSpacing: .01
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
fontSize: 24,
|
|
103
|
+
fontWeight: "B",
|
|
104
|
+
lineHeight: 150,
|
|
105
|
+
letterSpacing: .02
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
fontSize: 22,
|
|
109
|
+
fontWeight: "B",
|
|
110
|
+
lineHeight: 150,
|
|
111
|
+
letterSpacing: .02
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
fontSize: 20,
|
|
115
|
+
fontWeight: "B",
|
|
116
|
+
lineHeight: 150,
|
|
117
|
+
letterSpacing: .02
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
fontSize: 18,
|
|
121
|
+
fontWeight: "B",
|
|
122
|
+
lineHeight: 160,
|
|
123
|
+
letterSpacing: .02
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
fontSize: 17,
|
|
127
|
+
fontWeight: "B",
|
|
128
|
+
lineHeight: 170,
|
|
129
|
+
letterSpacing: .02
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
fontSize: 16,
|
|
133
|
+
fontWeight: "B",
|
|
134
|
+
lineHeight: 170,
|
|
135
|
+
letterSpacing: .02
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
fontSize: 16,
|
|
139
|
+
fontWeight: "B",
|
|
140
|
+
lineHeight: 175,
|
|
141
|
+
letterSpacing: .02
|
|
142
|
+
},
|
|
143
|
+
(
|
|
144
|
+
/** Standard(Std) Normal */
|
|
145
|
+
{
|
|
146
|
+
fontSize: 45,
|
|
147
|
+
fontWeight: "N",
|
|
148
|
+
lineHeight: 140
|
|
149
|
+
}),
|
|
150
|
+
{
|
|
151
|
+
fontSize: 36,
|
|
152
|
+
fontWeight: "N",
|
|
153
|
+
lineHeight: 140,
|
|
154
|
+
letterSpacing: .01
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
fontSize: 32,
|
|
158
|
+
fontWeight: "N",
|
|
159
|
+
lineHeight: 150,
|
|
160
|
+
letterSpacing: .01
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
fontSize: 28,
|
|
164
|
+
fontWeight: "N",
|
|
165
|
+
lineHeight: 150,
|
|
166
|
+
letterSpacing: .01
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
fontSize: 26,
|
|
170
|
+
fontWeight: "N",
|
|
171
|
+
lineHeight: 150,
|
|
172
|
+
letterSpacing: .02
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
fontSize: 24,
|
|
176
|
+
fontWeight: "N",
|
|
177
|
+
lineHeight: 150,
|
|
178
|
+
letterSpacing: .02
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
fontSize: 22,
|
|
182
|
+
fontWeight: "N",
|
|
183
|
+
lineHeight: 150,
|
|
184
|
+
letterSpacing: .02
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
fontSize: 20,
|
|
188
|
+
fontWeight: "N",
|
|
189
|
+
lineHeight: 150,
|
|
190
|
+
letterSpacing: .02
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
fontSize: 18,
|
|
194
|
+
fontWeight: "N",
|
|
195
|
+
lineHeight: 160,
|
|
196
|
+
letterSpacing: .02
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
fontSize: 17,
|
|
200
|
+
fontWeight: "N",
|
|
201
|
+
lineHeight: 170,
|
|
202
|
+
letterSpacing: .02
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
fontSize: 16,
|
|
206
|
+
fontWeight: "N",
|
|
207
|
+
lineHeight: 170,
|
|
208
|
+
letterSpacing: .02
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
fontSize: 16,
|
|
212
|
+
fontWeight: "N",
|
|
213
|
+
lineHeight: 175,
|
|
214
|
+
letterSpacing: .02
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
dns: {
|
|
219
|
+
fontFamily: "body",
|
|
220
|
+
description: "Denseテキストは管理画面や業務システムなど、限られた画面領域での表示情報量を優先したテキストスタイルです。たとえば、データテーブル内での情報提示など、表示領域に制約がある場合のテキストスタイルとして使用します。",
|
|
221
|
+
variants: [
|
|
222
|
+
(
|
|
223
|
+
/** Dense(Dns) Bold */
|
|
224
|
+
{
|
|
225
|
+
fontSize: 17,
|
|
226
|
+
fontWeight: "B",
|
|
227
|
+
lineHeight: 130
|
|
228
|
+
}),
|
|
229
|
+
{
|
|
230
|
+
fontSize: 17,
|
|
231
|
+
fontWeight: "B",
|
|
232
|
+
lineHeight: 120
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
fontSize: 16,
|
|
236
|
+
fontWeight: "B",
|
|
237
|
+
lineHeight: 130
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
fontSize: 16,
|
|
241
|
+
fontWeight: "B",
|
|
242
|
+
lineHeight: 120
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
fontSize: 14,
|
|
246
|
+
fontWeight: "B",
|
|
247
|
+
lineHeight: 130
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
fontSize: 14,
|
|
251
|
+
fontWeight: "B",
|
|
252
|
+
lineHeight: 120
|
|
253
|
+
},
|
|
254
|
+
(
|
|
255
|
+
/** Dense(Dns) Normal */
|
|
256
|
+
{
|
|
257
|
+
fontSize: 17,
|
|
258
|
+
fontWeight: "N",
|
|
259
|
+
lineHeight: 130
|
|
260
|
+
}),
|
|
261
|
+
{
|
|
262
|
+
fontSize: 17,
|
|
263
|
+
fontWeight: "N",
|
|
264
|
+
lineHeight: 120
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
fontSize: 16,
|
|
268
|
+
fontWeight: "N",
|
|
269
|
+
lineHeight: 130
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
fontSize: 16,
|
|
273
|
+
fontWeight: "N",
|
|
274
|
+
lineHeight: 120
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
fontSize: 14,
|
|
278
|
+
fontWeight: "N",
|
|
279
|
+
lineHeight: 130
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
fontSize: 14,
|
|
283
|
+
fontWeight: "N",
|
|
284
|
+
lineHeight: 120
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
oln: {
|
|
289
|
+
fontFamily: "body",
|
|
290
|
+
description: "Onelineテキストは1行展開を前提として、主にUI要素への適用を想定したテキストスタイルです。行間の余白を最小限にすることでUIパーツに対するデザイン、及びコーディング実装調整コストの軽減を優先したデキストスタイルとなります。",
|
|
291
|
+
variants: [
|
|
292
|
+
(
|
|
293
|
+
/** Oneline(Oln) Bold */
|
|
294
|
+
{
|
|
295
|
+
fontSize: 17,
|
|
296
|
+
fontWeight: "B",
|
|
297
|
+
lineHeight: 100
|
|
298
|
+
}),
|
|
299
|
+
{
|
|
300
|
+
fontSize: 16,
|
|
301
|
+
fontWeight: "B",
|
|
302
|
+
lineHeight: 100
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
fontSize: 14,
|
|
306
|
+
fontWeight: "B",
|
|
307
|
+
lineHeight: 100
|
|
308
|
+
},
|
|
309
|
+
(
|
|
310
|
+
/** Oneline(Oln) Normal */
|
|
311
|
+
{
|
|
312
|
+
fontSize: 17,
|
|
313
|
+
fontWeight: "N",
|
|
314
|
+
lineHeight: 100
|
|
315
|
+
}),
|
|
316
|
+
{
|
|
317
|
+
fontSize: 16,
|
|
318
|
+
fontWeight: "N",
|
|
319
|
+
lineHeight: 100
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
fontSize: 14,
|
|
323
|
+
fontWeight: "N",
|
|
324
|
+
lineHeight: 100
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
mono: {
|
|
329
|
+
fontFamily: "mono",
|
|
330
|
+
description: "Monoテキストはコード系コンテンツへの適用を想定したテキストスタイルです。文字・単語レベルの可読性を優先したモノスペース(等幅フォント)を使用します。",
|
|
331
|
+
variants: [
|
|
332
|
+
(
|
|
333
|
+
/** Mono Bold */
|
|
334
|
+
{
|
|
335
|
+
fontSize: 17,
|
|
336
|
+
fontWeight: "B",
|
|
337
|
+
lineHeight: 150
|
|
338
|
+
}),
|
|
339
|
+
{
|
|
340
|
+
fontSize: 16,
|
|
341
|
+
fontWeight: "B",
|
|
342
|
+
lineHeight: 150
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
fontSize: 14,
|
|
346
|
+
fontWeight: "B",
|
|
347
|
+
lineHeight: 150
|
|
348
|
+
},
|
|
349
|
+
(
|
|
350
|
+
/** Oneline(Oln) Normal */
|
|
351
|
+
{
|
|
352
|
+
fontSize: 17,
|
|
353
|
+
fontWeight: "N",
|
|
354
|
+
lineHeight: 150
|
|
355
|
+
}),
|
|
356
|
+
{
|
|
357
|
+
fontSize: 16,
|
|
358
|
+
fontWeight: "N",
|
|
359
|
+
lineHeight: 150
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
fontSize: 14,
|
|
363
|
+
fontWeight: "N",
|
|
364
|
+
lineHeight: 150
|
|
365
|
+
}
|
|
366
|
+
]
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
const map = /* @__PURE__ */ new Map();
|
|
358
370
|
textStyle.forEach(([key, { fontFamily, description, variants }]) => {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
+
variants.forEach(({ fontSize, fontWeight, lineHeight, letterSpacing }) => {
|
|
372
|
+
map.set(`${key}-${fontSize}${fontWeight}-${lineHeight}`, {
|
|
373
|
+
value: {
|
|
374
|
+
fontFamily,
|
|
375
|
+
fontSize,
|
|
376
|
+
fontWeight,
|
|
377
|
+
lineHeight,
|
|
378
|
+
letterSpacing: letterSpacing ? `${letterSpacing}em` : void 0
|
|
379
|
+
},
|
|
380
|
+
description
|
|
381
|
+
});
|
|
382
|
+
});
|
|
371
383
|
});
|
|
372
384
|
var textStyles_default = defineTextStyles(Object.fromEntries(map));
|
|
373
385
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
import { preset as pandaPreset } from "@pandacss/preset-panda";
|
|
377
|
-
import tokens3 from "@digital-go-jp/design-tokens";
|
|
378
|
-
|
|
379
|
-
// src/tokens/colors.ts
|
|
380
|
-
import { defineTokens } from "@pandacss/dev";
|
|
381
|
-
import tokens from "@digital-go-jp/design-tokens";
|
|
386
|
+
//#endregion
|
|
387
|
+
//#region src/tokens/colors.ts
|
|
382
388
|
function mapColorScale(tokenObj, [primary, secondary, tertiary, bg]) {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
389
|
+
const keyMap = {
|
|
390
|
+
primary: {
|
|
391
|
+
DEFAULT: { value: tokenObj[primary]?.$value },
|
|
392
|
+
100: { value: tokenObj[Math.min(primary + 100, 1200)]?.$value },
|
|
393
|
+
200: { value: tokenObj[Math.min(primary + 200, 1200)]?.$value },
|
|
394
|
+
300: { value: tokenObj[Math.min(primary + 300, 1200)]?.$value }
|
|
395
|
+
},
|
|
396
|
+
secondary: { value: tokenObj[secondary]?.$value },
|
|
397
|
+
tertiary: { value: tokenObj[tertiary]?.$value },
|
|
398
|
+
bg: { value: tokenObj[bg]?.$value }
|
|
399
|
+
};
|
|
400
|
+
const shadesMap = Object.fromEntries(Object.entries(tokenObj).filter(([_, v]) => typeof v.$value === "string").map(([k, v]) => [k, { value: v.$value }]));
|
|
401
|
+
return {
|
|
402
|
+
...keyMap,
|
|
403
|
+
...shadesMap
|
|
404
|
+
};
|
|
398
405
|
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
406
|
+
const colors = defineTokens.colors({
|
|
407
|
+
white: { value: tokens.Color.Neutral.White.$value },
|
|
408
|
+
black: { value: tokens.Color.Neutral.Black.$value },
|
|
409
|
+
blue: mapColorScale(tokens.Color.Primitive.Blue, [
|
|
410
|
+
900,
|
|
411
|
+
700,
|
|
412
|
+
1e3,
|
|
413
|
+
50
|
|
414
|
+
]),
|
|
415
|
+
"light-blue": mapColorScale(tokens.Color.Primitive.LightBlue, [
|
|
416
|
+
800,
|
|
417
|
+
600,
|
|
418
|
+
1e3,
|
|
419
|
+
50
|
|
420
|
+
]),
|
|
421
|
+
cyan: mapColorScale(tokens.Color.Primitive.Cyan, [
|
|
422
|
+
800,
|
|
423
|
+
600,
|
|
424
|
+
1e3,
|
|
425
|
+
50
|
|
426
|
+
]),
|
|
427
|
+
green: mapColorScale(tokens.Color.Primitive.Green, [
|
|
428
|
+
800,
|
|
429
|
+
600,
|
|
430
|
+
1e3,
|
|
431
|
+
50
|
|
432
|
+
]),
|
|
433
|
+
lime: mapColorScale(tokens.Color.Primitive.Lime, [
|
|
434
|
+
900,
|
|
435
|
+
700,
|
|
436
|
+
1e3,
|
|
437
|
+
50
|
|
438
|
+
]),
|
|
439
|
+
yellow: mapColorScale(tokens.Color.Primitive.Yellow, [
|
|
440
|
+
900,
|
|
441
|
+
700,
|
|
442
|
+
1e3,
|
|
443
|
+
50
|
|
444
|
+
]),
|
|
445
|
+
orange: mapColorScale(tokens.Color.Primitive.Orange, [
|
|
446
|
+
800,
|
|
447
|
+
600,
|
|
448
|
+
1100,
|
|
449
|
+
50
|
|
450
|
+
]),
|
|
451
|
+
red: mapColorScale(tokens.Color.Primitive.Red, [
|
|
452
|
+
800,
|
|
453
|
+
600,
|
|
454
|
+
1e3,
|
|
455
|
+
50
|
|
456
|
+
]),
|
|
457
|
+
magenta: mapColorScale(tokens.Color.Primitive.Magenta, [
|
|
458
|
+
700,
|
|
459
|
+
500,
|
|
460
|
+
1e3,
|
|
461
|
+
50
|
|
462
|
+
]),
|
|
463
|
+
purple: mapColorScale(tokens.Color.Primitive.Purple, [
|
|
464
|
+
700,
|
|
465
|
+
500,
|
|
466
|
+
1e3,
|
|
467
|
+
50
|
|
468
|
+
]),
|
|
469
|
+
"solid-gray": {
|
|
470
|
+
50: { value: tokens.Color.Neutral.SolidGray[50].$value },
|
|
471
|
+
100: { value: tokens.Color.Neutral.SolidGray[100].$value },
|
|
472
|
+
200: { value: tokens.Color.Neutral.SolidGray[200].$value },
|
|
473
|
+
300: { value: tokens.Color.Neutral.SolidGray[300].$value },
|
|
474
|
+
400: { value: tokens.Color.Neutral.SolidGray[400].$value },
|
|
475
|
+
420: { value: tokens.Color.Neutral.SolidGray[420].$value },
|
|
476
|
+
500: { value: tokens.Color.Neutral.SolidGray[500].$value },
|
|
477
|
+
536: { value: tokens.Color.Neutral.SolidGray[536].$value },
|
|
478
|
+
600: { value: tokens.Color.Neutral.SolidGray[600].$value },
|
|
479
|
+
700: { value: tokens.Color.Neutral.SolidGray[700].$value },
|
|
480
|
+
800: { value: tokens.Color.Neutral.SolidGray[800].$value },
|
|
481
|
+
900: { value: tokens.Color.Neutral.SolidGray[900].$value },
|
|
482
|
+
primary: {
|
|
483
|
+
DEFAULT: { value: tokens.Color.Neutral.SolidGray[700].$value },
|
|
484
|
+
100: { value: tokens.Color.Neutral.SolidGray[800].$value },
|
|
485
|
+
200: { value: tokens.Color.Neutral.SolidGray[900].$value },
|
|
486
|
+
300: { value: tokens.Color.Neutral.Black.$value }
|
|
487
|
+
},
|
|
488
|
+
secondary: { value: tokens.Color.Neutral.SolidGray[536].$value },
|
|
489
|
+
tertiary: { value: tokens.Color.Neutral.SolidGray[420].$value },
|
|
490
|
+
bg: { value: tokens.Color.Neutral.SolidGray[50].$value }
|
|
491
|
+
},
|
|
492
|
+
success: {
|
|
493
|
+
1: {
|
|
494
|
+
value: tokens.Color.Semantic.Success[1].$value,
|
|
495
|
+
description: "成功、安全、完了などを意味するカラー"
|
|
496
|
+
},
|
|
497
|
+
2: {
|
|
498
|
+
value: tokens.Color.Semantic.Success[2].$value,
|
|
499
|
+
description: "成功、安全、完了などを意味するカラー"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
error: {
|
|
503
|
+
1: {
|
|
504
|
+
value: tokens.Color.Semantic.Error[1].$value,
|
|
505
|
+
description: "失敗やエラーのほか、危険情報や制約条件の提示など注意喚起を意味するカラー"
|
|
506
|
+
},
|
|
507
|
+
2: {
|
|
508
|
+
value: tokens.Color.Semantic.Error[2].$value,
|
|
509
|
+
description: "失敗やエラーのほか、危険情報や制約条件の提示など注意喚起を意味するカラー"
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
warning: {
|
|
513
|
+
yellow: {
|
|
514
|
+
1: {
|
|
515
|
+
value: tokens.Color.Semantic.Warning.Yellow[1].$value,
|
|
516
|
+
description: "警告や禁止事項などを意味するカラー"
|
|
517
|
+
},
|
|
518
|
+
2: {
|
|
519
|
+
value: tokens.Color.Semantic.Warning.Yellow[2].$value,
|
|
520
|
+
description: "警告や禁止事項などを意味するカラー"
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
orange: {
|
|
524
|
+
1: {
|
|
525
|
+
value: tokens.Color.Semantic.Warning.Orange[1].$value,
|
|
526
|
+
description: "警告や禁止事項などを意味するカラー"
|
|
527
|
+
},
|
|
528
|
+
2: {
|
|
529
|
+
value: tokens.Color.Semantic.Warning.Orange[2].$value,
|
|
530
|
+
description: "警告や禁止事項などを意味するカラー"
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
focus: {
|
|
535
|
+
yellow: { value: tokens.Color.Primitive.Yellow[700].$value },
|
|
536
|
+
blue: { value: tokens.Color.Primitive.LightBlue[700].$value }
|
|
537
|
+
}
|
|
484
538
|
});
|
|
485
|
-
var
|
|
539
|
+
var colors_default = colors;
|
|
486
540
|
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
]
|
|
498
|
-
},
|
|
499
|
-
mono: {
|
|
500
|
-
value: ["Noto Sans Mono", "monospace"]
|
|
501
|
-
}
|
|
541
|
+
//#endregion
|
|
542
|
+
//#region src/tokens/typography.ts
|
|
543
|
+
const fonts = defineTokens.fonts({
|
|
544
|
+
body: { value: [
|
|
545
|
+
"Noto Sans JP",
|
|
546
|
+
"-apple-system",
|
|
547
|
+
"BlinkMacSystemFont",
|
|
548
|
+
"sans-serif"
|
|
549
|
+
] },
|
|
550
|
+
mono: { value: ["Noto Sans Mono", "monospace"] }
|
|
502
551
|
});
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
552
|
+
const fontSizes = defineTokens.fontSizes({
|
|
553
|
+
"64": {
|
|
554
|
+
value: tokens.FontSize[64].$value,
|
|
555
|
+
description: "視覚的なインパクトが必要なデザイン要素としての文字サイズ。"
|
|
556
|
+
},
|
|
557
|
+
"57": {
|
|
558
|
+
value: tokens.FontSize[57].$value,
|
|
559
|
+
description: "視覚的なインパクトが必要なデザイン要素としての文字サイズ。"
|
|
560
|
+
},
|
|
561
|
+
"48": {
|
|
562
|
+
value: tokens.FontSize[48].$value,
|
|
563
|
+
description: "視覚的なインパクトが必要なデザイン要素としての文字サイズ。"
|
|
564
|
+
},
|
|
565
|
+
"45": {
|
|
566
|
+
value: tokens.FontSize[45].$value,
|
|
567
|
+
description: "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。"
|
|
568
|
+
},
|
|
569
|
+
"36": {
|
|
570
|
+
value: tokens.FontSize[36].$value,
|
|
571
|
+
description: "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。"
|
|
572
|
+
},
|
|
573
|
+
"32": {
|
|
574
|
+
value: tokens.FontSize[32].$value,
|
|
575
|
+
description: "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。"
|
|
576
|
+
},
|
|
577
|
+
"28": {
|
|
578
|
+
value: tokens.FontSize[28].$value,
|
|
579
|
+
description: "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。"
|
|
580
|
+
},
|
|
581
|
+
"24": {
|
|
582
|
+
value: tokens.FontSize[24].$value,
|
|
583
|
+
description: "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。"
|
|
584
|
+
},
|
|
585
|
+
"22": {
|
|
586
|
+
value: tokens.FontSize[22].$value,
|
|
587
|
+
description: "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。"
|
|
588
|
+
},
|
|
589
|
+
"20": {
|
|
590
|
+
value: tokens.FontSize[20].$value,
|
|
591
|
+
description: "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。"
|
|
592
|
+
},
|
|
593
|
+
"18": {
|
|
594
|
+
value: tokens.FontSize[18].$value,
|
|
595
|
+
description: "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。"
|
|
596
|
+
},
|
|
597
|
+
"17": {
|
|
598
|
+
value: tokens.FontSize[17].$value,
|
|
599
|
+
description: "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。"
|
|
600
|
+
},
|
|
601
|
+
"16": {
|
|
602
|
+
value: tokens.FontSize[16].$value,
|
|
603
|
+
description: "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。"
|
|
604
|
+
},
|
|
605
|
+
"14": {
|
|
606
|
+
value: tokens.FontSize[14].$value,
|
|
607
|
+
description: "基本的には使用しません。フッター要素などコンテンツに付随する情報や、UIやコンテンツを構成する際の領域的な制約がある場合のように標準的な文字サイズ(16 CSS px以上)の使用が難しいケースにおいてのみ使用される文字サイズです。なお、14 CSS px未満の大きさの使用は原則として許容されません。"
|
|
608
|
+
}
|
|
560
609
|
});
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
610
|
+
const fontWeights = defineTokens.fontWeights({
|
|
611
|
+
"400": { value: tokens.FontWeight[400].$value },
|
|
612
|
+
"700": { value: tokens.FontWeight[700].$value }
|
|
564
613
|
});
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
614
|
+
const lineHeights = defineTokens.lineHeights({
|
|
615
|
+
"100": {
|
|
616
|
+
value: tokens.LineHeight[100].$value,
|
|
617
|
+
description: "主にボタンなど、コンポーネント内で使用されるワンラインのテキストで上下の余白を持っていない行間"
|
|
618
|
+
},
|
|
619
|
+
"120": {
|
|
620
|
+
value: tokens.LineHeight[120].$value,
|
|
621
|
+
description: "主に管理画面や業務システムの画面等で、膨大な情報を一覧表示したりなど、限られた画面領域での表示情報量を最優先した行間"
|
|
622
|
+
},
|
|
623
|
+
"130": {
|
|
624
|
+
value: tokens.LineHeight[130].$value,
|
|
625
|
+
description: "主に管理画面や業務システムの画面等で使用する、表示情報量を優先した行間"
|
|
626
|
+
},
|
|
627
|
+
"140": {
|
|
628
|
+
value: tokens.LineHeight[140].$value,
|
|
629
|
+
description: "見出しなど、やや大きな文字に使用される行間"
|
|
630
|
+
},
|
|
631
|
+
"150": {
|
|
632
|
+
value: tokens.LineHeight[150].$value,
|
|
633
|
+
description: "一般的なウェブサイトの本文や見出しで使用される行間(本文の行間としては最低限度)"
|
|
634
|
+
},
|
|
635
|
+
"160": {
|
|
636
|
+
value: tokens.LineHeight[160].$value,
|
|
637
|
+
description: "一般的なウェブサイトの本文で使用される行間"
|
|
638
|
+
},
|
|
639
|
+
"170": {
|
|
640
|
+
value: tokens.LineHeight[170].$value,
|
|
641
|
+
description: "一般的なウェブサイトの本文で使用する、心理的負荷の軽減を考慮した行間"
|
|
642
|
+
},
|
|
643
|
+
"175": {
|
|
644
|
+
value: tokens.LineHeight[175].$value,
|
|
645
|
+
description: "一般的なウェブサイトの本文で使用する、心理的負荷の軽減を考慮した行間。採用するグリッド幅やフォントサイズに応じて170%と使い分ける"
|
|
646
|
+
}
|
|
598
647
|
});
|
|
599
648
|
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
649
|
+
//#endregion
|
|
650
|
+
//#region src/tokens/index.ts
|
|
651
|
+
const { spacing, sizes } = preset.theme.tokens;
|
|
652
|
+
var tokens_default = defineTokens({
|
|
653
|
+
colors: colors_default,
|
|
654
|
+
fonts,
|
|
655
|
+
fontSizes,
|
|
656
|
+
fontWeights,
|
|
657
|
+
lineHeights,
|
|
658
|
+
radii: {
|
|
659
|
+
"4": { value: tokens.BorderRadius[4].$value },
|
|
660
|
+
"6": { value: tokens.BorderRadius[6].$value },
|
|
661
|
+
"8": { value: tokens.BorderRadius[8].$value },
|
|
662
|
+
"12": { value: tokens.BorderRadius[12].$value },
|
|
663
|
+
"16": { value: tokens.BorderRadius[16].$value },
|
|
664
|
+
"24": { value: tokens.BorderRadius[24].$value },
|
|
665
|
+
"32": { value: tokens.BorderRadius[32].$value },
|
|
666
|
+
full: { value: tokens.BorderRadius.Full.$value }
|
|
667
|
+
},
|
|
668
|
+
shadows: {
|
|
669
|
+
"1": { value: tokens.Elevation[1].$value },
|
|
670
|
+
"2": { value: tokens.Elevation[2].$value },
|
|
671
|
+
"3": { value: tokens.Elevation[3].$value },
|
|
672
|
+
"4": { value: tokens.Elevation[4].$value },
|
|
673
|
+
"5": { value: tokens.Elevation[5].$value },
|
|
674
|
+
"6": { value: tokens.Elevation[6].$value },
|
|
675
|
+
"7": { value: tokens.Elevation[7].$value },
|
|
676
|
+
"8": { value: tokens.Elevation[8].$value }
|
|
677
|
+
},
|
|
678
|
+
sizes,
|
|
679
|
+
spacing
|
|
630
680
|
});
|
|
631
681
|
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
});
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
focusBox
|
|
682
|
+
//#endregion
|
|
683
|
+
//#region src/utilities/index.ts
|
|
684
|
+
const utilities = {
|
|
685
|
+
borderInset: defineUtility({
|
|
686
|
+
deprecated: true,
|
|
687
|
+
className: "border-inset",
|
|
688
|
+
values: [
|
|
689
|
+
"xs",
|
|
690
|
+
"sm",
|
|
691
|
+
"md",
|
|
692
|
+
"lg",
|
|
693
|
+
"xl"
|
|
694
|
+
],
|
|
695
|
+
transform(value, { token }) {
|
|
696
|
+
return { boxShadow: `inset 0 0 0 ${(() => {
|
|
697
|
+
if (value === "xs") return "1px";
|
|
698
|
+
if (value === "sm") return "2px";
|
|
699
|
+
if (value === "lg") return "4px";
|
|
700
|
+
if (value === "xl") return "8px";
|
|
701
|
+
return "3px";
|
|
702
|
+
})()} ${token("colors.ring")}` };
|
|
703
|
+
}
|
|
704
|
+
}),
|
|
705
|
+
focusBox: defineUtility({
|
|
706
|
+
className: "focus-box",
|
|
707
|
+
values: "borderWidths",
|
|
708
|
+
transform(value, { token }) {
|
|
709
|
+
return { boxShadow: `0 0 0 ${value} ${token("colors.ring")}` };
|
|
710
|
+
}
|
|
711
|
+
})
|
|
663
712
|
};
|
|
664
713
|
var utilities_default = utilities;
|
|
665
714
|
|
|
666
|
-
|
|
667
|
-
|
|
715
|
+
//#endregion
|
|
716
|
+
//#region src/globalCss.ts
|
|
668
717
|
var globalCss_default = defineGlobalStyles({
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
},
|
|
672
|
-
"h1, h2, h3, h4, h5, h6": {
|
|
673
|
-
textWrap: "pretty"
|
|
674
|
-
}
|
|
718
|
+
html: { fontSmoothing: "auto" },
|
|
719
|
+
"h1, h2, h3, h4, h5, h6": { textWrap: "auto" }
|
|
675
720
|
});
|
|
676
721
|
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
globalCss: globalCss_default
|
|
722
|
+
//#endregion
|
|
723
|
+
//#region src/index.ts
|
|
724
|
+
const { breakpoints, keyframes } = preset.theme;
|
|
725
|
+
const preset$1 = definePreset({
|
|
726
|
+
name: "digital-go",
|
|
727
|
+
theme: { extend: {
|
|
728
|
+
breakpoints,
|
|
729
|
+
textStyles: textStyles_default,
|
|
730
|
+
semanticTokens: semanticTokens_default,
|
|
731
|
+
tokens: tokens_default,
|
|
732
|
+
keyframes
|
|
733
|
+
} },
|
|
734
|
+
utilities: utilities_default,
|
|
735
|
+
globalCss: globalCss_default
|
|
692
736
|
});
|
|
693
|
-
var
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
};
|
|
737
|
+
var src_default = preset$1;
|
|
738
|
+
|
|
739
|
+
//#endregion
|
|
740
|
+
export { src_default as default };
|
|
741
|
+
//# sourceMappingURL=index.mjs.map
|