@cieloazul310/digital-go-pandacss-plugin 0.0.1-prerelease.0 → 0.0.1-prerelease.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cieloazul310/digital-go-pandacss-plugin",
3
- "version": "0.0.1-prerelease.0",
3
+ "version": "0.0.1-prerelease.2",
4
4
  "license": "MIT",
5
5
  "homepage": "https://github.com/cieloazul310/digital-go-design-system-with-panda",
6
6
  "author": {
@@ -16,6 +16,9 @@
16
16
  "access": "public",
17
17
  "registry": "https://registry.npmjs.org/"
18
18
  },
19
+ "files": [
20
+ "dist"
21
+ ],
19
22
  "types": "./dist/index.d.ts",
20
23
  "main": "./dist/index.js",
21
24
  "exports": {
@@ -36,7 +39,7 @@
36
39
  "format": "prettier --parser typescript --write ."
37
40
  },
38
41
  "dependencies": {
39
- "@cieloazul310/digital-go-pandacss-utils": "^0.0.1-prerelease.0",
42
+ "@cieloazul310/digital-go-pandacss-utils": "^0.0.1-prerelease.2",
40
43
  "@digital-go-jp/design-tokens": "^1.1.0"
41
44
  },
42
45
  "devDependencies": {
@@ -1,20 +0,0 @@
1
-
2
- > @cieloazul310/digital-go-pandacss-plugin@0.0.1-prerelease.0 build
3
- > tsup
4
-
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.0
8
- CLI Using tsup config: /home/runner/work/digital-go-design-system-with-panda/digital-go-design-system-with-panda/packages/preset-base/tsup.config.ts
9
- CLI Target: es2022
10
- CLI Cleaning output folder
11
- ESM Build start
12
- CJS Build start
13
- ESM dist/index.mjs 31.75 KB
14
- ESM ⚡️ Build success in 23ms
15
- CJS dist/index.js 37.47 KB
16
- CJS ⚡️ Build success in 28ms
17
- DTS Build start
18
- DTS ⚡️ Build success in 2394ms
19
- DTS dist/index.d.mts 130.00 B
20
- DTS dist/index.d.ts 130.00 B
package/CHANGELOG.md DELETED
@@ -1,9 +0,0 @@
1
- # @cieloazul310/digital-go-pandacss-plugin
2
-
3
- ## 0.0.1-prerelease.0
4
-
5
- ### Patch Changes
6
-
7
- - d51597c: prerelease
8
- - Updated dependencies [d51597c]
9
- - @cieloazul310/digital-go-pandacss-utils@0.0.1-prerelease.0
package/eslint.config.mjs DELETED
@@ -1,6 +0,0 @@
1
- import libraryConfig from "@repo/eslint-config/library";
2
-
3
- /**
4
- * @type {import("eslint").Linter.Config}
5
- */
6
- export default [...libraryConfig];
package/src/globalCss.ts DELETED
@@ -1,7 +0,0 @@
1
- import { defineGlobalStyles } from "@pandacss/dev";
2
-
3
- export default defineGlobalStyles({
4
- html: {
5
- fontSmoothing: "auto",
6
- },
7
- });
package/src/index.ts DELETED
@@ -1,21 +0,0 @@
1
- import { definePreset } from "@pandacss/dev";
2
- import semanticTokens from "./semanticTokens";
3
- import textStyles from "./textStyles";
4
- import tokens from "./tokens";
5
- import utilities from "./utilities";
6
- import globalCss from "./globalCss";
7
-
8
- const preset = definePreset({
9
- name: "digital-go",
10
- theme: {
11
- extend: {
12
- textStyles,
13
- semanticTokens,
14
- tokens,
15
- },
16
- },
17
- utilities,
18
- globalCss,
19
- });
20
-
21
- export default preset;
@@ -1,8 +0,0 @@
1
- import { createKeyColor } from "@cieloazul310/digital-go-pandacss-utils";
2
-
3
- const colors = {
4
- keyColor: createKeyColor("blue"),
5
- ring: { value: "{colors.yellow.300}" },
6
- };
7
-
8
- export default colors;
@@ -1,10 +0,0 @@
1
- import { defineSemanticTokens } from "@pandacss/dev";
2
- import colors from "./colors";
3
-
4
- export default defineSemanticTokens({
5
- colors,
6
- fontWeights: {
7
- N: { value: "{fontWeights.400}", description: "400 (normal)" },
8
- B: { value: "{fontWeights.700}", description: "700 (bold)" },
9
- },
10
- });
@@ -1,383 +0,0 @@
1
- import { defineTextStyles } from "@pandacss/dev";
2
-
3
- type TextStylesMap = Record<
4
- string,
5
- {
6
- fontFamily: string;
7
- description: string;
8
- variants: {
9
- fontSize: number;
10
- fontWeight: string;
11
- lineHeight: number;
12
- letterSpacing?: number;
13
- }[];
14
- }
15
- >;
16
-
17
- const textStylesMap: TextStylesMap = {
18
- dsp: {
19
- fontFamily: "body",
20
- description:
21
- "Displayテキストは、主に冒頭で大きく掲出されるテキストやメッセージを伝えるヘッドコピーなど、視覚的なインパクトを強く与えたい場合に使用されます。",
22
- variants: [
23
- /** Display(Dsp) Bold */
24
- {
25
- fontSize: 64,
26
- fontWeight: "B",
27
- lineHeight: 140,
28
- },
29
- {
30
- fontSize: 57,
31
- fontWeight: "B",
32
- lineHeight: 140,
33
- },
34
- {
35
- fontSize: 48,
36
- fontWeight: "B",
37
- lineHeight: 140,
38
- },
39
- /** Display(Dsp) Normal */
40
- {
41
- fontSize: 64,
42
- fontWeight: "N",
43
- lineHeight: 140,
44
- },
45
- {
46
- fontSize: 57,
47
- fontWeight: "N",
48
- lineHeight: 140,
49
- },
50
- {
51
- fontSize: 48,
52
- fontWeight: "N",
53
- lineHeight: 140,
54
- },
55
- ],
56
- },
57
- std: {
58
- fontFamily: "body",
59
- description:
60
- "Standardテキストは、ページの文書構造を形成する見出しや本文など、多くの要素において最も使用される普遍的なテキストスタイルです。",
61
- variants: [
62
- /** Standard(Std) Bold */
63
- {
64
- fontSize: 45,
65
- fontWeight: "B",
66
- lineHeight: 140,
67
- },
68
- {
69
- fontSize: 36,
70
- fontWeight: "B",
71
- lineHeight: 140,
72
- letterSpacing: 0.01,
73
- },
74
- {
75
- fontSize: 32,
76
- fontWeight: "B",
77
- lineHeight: 150,
78
- letterSpacing: 0.01,
79
- },
80
- {
81
- fontSize: 28,
82
- fontWeight: "B",
83
- lineHeight: 150,
84
- letterSpacing: 0.01,
85
- },
86
- {
87
- fontSize: 24,
88
- fontWeight: "B",
89
- lineHeight: 150,
90
- letterSpacing: 0.02,
91
- },
92
- {
93
- fontSize: 22,
94
- fontWeight: "B",
95
- lineHeight: 150,
96
- letterSpacing: 0.02,
97
- },
98
- {
99
- fontSize: 20,
100
- fontWeight: "B",
101
- lineHeight: 150,
102
- letterSpacing: 0.02,
103
- },
104
- {
105
- fontSize: 18,
106
- fontWeight: "B",
107
- lineHeight: 160,
108
- letterSpacing: 0.02,
109
- },
110
- {
111
- fontSize: 17,
112
- fontWeight: "B",
113
- lineHeight: 170,
114
- letterSpacing: 0.02,
115
- },
116
- {
117
- fontSize: 16,
118
- fontWeight: "B",
119
- lineHeight: 170,
120
- letterSpacing: 0.02,
121
- },
122
- {
123
- fontSize: 16,
124
- fontWeight: "B",
125
- lineHeight: 175,
126
- letterSpacing: 0.02,
127
- },
128
- /** Standard(Std) Normal */
129
- {
130
- fontSize: 45,
131
- fontWeight: "N",
132
- lineHeight: 140,
133
- },
134
- {
135
- fontSize: 36,
136
- fontWeight: "N",
137
- lineHeight: 140,
138
- letterSpacing: 0.01,
139
- },
140
- {
141
- fontSize: 32,
142
- fontWeight: "N",
143
- lineHeight: 150,
144
- letterSpacing: 0.01,
145
- },
146
- {
147
- fontSize: 28,
148
- fontWeight: "N",
149
- lineHeight: 150,
150
- letterSpacing: 0.01,
151
- },
152
- {
153
- fontSize: 26,
154
- fontWeight: "N",
155
- lineHeight: 150,
156
- letterSpacing: 0.02,
157
- },
158
- {
159
- fontSize: 24,
160
- fontWeight: "N",
161
- lineHeight: 150,
162
- letterSpacing: 0.02,
163
- },
164
- {
165
- fontSize: 22,
166
- fontWeight: "N",
167
- lineHeight: 150,
168
- letterSpacing: 0.02,
169
- },
170
- {
171
- fontSize: 20,
172
- fontWeight: "N",
173
- lineHeight: 150,
174
- letterSpacing: 0.02,
175
- },
176
- {
177
- fontSize: 18,
178
- fontWeight: "N",
179
- lineHeight: 160,
180
- letterSpacing: 0.02,
181
- },
182
- {
183
- fontSize: 17,
184
- fontWeight: "N",
185
- lineHeight: 170,
186
- letterSpacing: 0.02,
187
- },
188
- {
189
- fontSize: 16,
190
- fontWeight: "N",
191
- lineHeight: 170,
192
- letterSpacing: 0.02,
193
- },
194
- {
195
- fontSize: 16,
196
- fontWeight: "N",
197
- lineHeight: 175,
198
- letterSpacing: 0.02,
199
- },
200
- ],
201
- },
202
- dns: {
203
- fontFamily: "body",
204
- description:
205
- "Denseテキストは管理画面や業務システムなど、限られた画面領域での表示情報量を優先したテキストスタイルです。たとえば、データテーブル内での情報提示など、表示領域に制約がある場合のテキストスタイルとして使用します。",
206
- variants: [
207
- /** Dense(Dns) Bold */
208
- {
209
- fontSize: 17,
210
- fontWeight: "B",
211
- lineHeight: 130,
212
- },
213
- {
214
- fontSize: 17,
215
- fontWeight: "B",
216
- lineHeight: 120,
217
- },
218
- {
219
- fontSize: 16,
220
- fontWeight: "B",
221
- lineHeight: 130,
222
- },
223
- {
224
- fontSize: 16,
225
- fontWeight: "B",
226
- lineHeight: 120,
227
- },
228
- {
229
- fontSize: 14,
230
- fontWeight: "B",
231
- lineHeight: 130,
232
- },
233
- {
234
- fontSize: 14,
235
- fontWeight: "B",
236
- lineHeight: 120,
237
- },
238
- /** Dense(Dns) Normal */
239
- {
240
- fontSize: 17,
241
- fontWeight: "N",
242
- lineHeight: 130,
243
- },
244
- {
245
- fontSize: 17,
246
- fontWeight: "N",
247
- lineHeight: 120,
248
- },
249
- {
250
- fontSize: 16,
251
- fontWeight: "N",
252
- lineHeight: 130,
253
- },
254
- {
255
- fontSize: 16,
256
- fontWeight: "N",
257
- lineHeight: 120,
258
- },
259
- {
260
- fontSize: 14,
261
- fontWeight: "N",
262
- lineHeight: 130,
263
- },
264
- {
265
- fontSize: 14,
266
- fontWeight: "N",
267
- lineHeight: 120,
268
- },
269
- ],
270
- },
271
- oln: {
272
- fontFamily: "body",
273
- description:
274
- "Onelineテキストは1行展開を前提として、主にUI要素への適用を想定したテキストスタイルです。行間の余白を最小限にすることでUIパーツに対するデザイン、及びコーディング実装調整コストの軽減を優先したデキストスタイルとなります。",
275
- variants: [
276
- /** Oneline(Oln) Bold */
277
- {
278
- fontSize: 17,
279
- fontWeight: "B",
280
- lineHeight: 100,
281
- },
282
- {
283
- fontSize: 16,
284
- fontWeight: "B",
285
- lineHeight: 100,
286
- },
287
- {
288
- fontSize: 14,
289
- fontWeight: "B",
290
- lineHeight: 100,
291
- },
292
- /** Oneline(Oln) Normal */
293
- {
294
- fontSize: 17,
295
- fontWeight: "N",
296
- lineHeight: 100,
297
- },
298
- {
299
- fontSize: 16,
300
- fontWeight: "N",
301
- lineHeight: 100,
302
- },
303
- {
304
- fontSize: 14,
305
- fontWeight: "N",
306
- lineHeight: 100,
307
- },
308
- ],
309
- },
310
- mono: {
311
- fontFamily: "mono",
312
- description:
313
- "Monoテキストはコード系コンテンツへの適用を想定したテキストスタイルです。文字・単語レベルの可読性を優先したモノスペース(等幅フォント)を使用します。",
314
- variants: [
315
- /** Mono Bold */
316
- {
317
- fontSize: 17,
318
- fontWeight: "B",
319
- lineHeight: 150,
320
- },
321
- {
322
- fontSize: 16,
323
- fontWeight: "B",
324
- lineHeight: 150,
325
- },
326
- {
327
- fontSize: 14,
328
- fontWeight: "B",
329
- lineHeight: 150,
330
- },
331
- /** Oneline(Oln) Normal */
332
- {
333
- fontSize: 17,
334
- fontWeight: "N",
335
- lineHeight: 150,
336
- },
337
-
338
- {
339
- fontSize: 16,
340
- fontWeight: "N",
341
- lineHeight: 150,
342
- },
343
- {
344
- fontSize: 14,
345
- fontWeight: "N",
346
- lineHeight: 150,
347
- },
348
- ],
349
- },
350
- };
351
-
352
- const textStyle = Object.entries(textStylesMap);
353
- const map = new Map<
354
- string,
355
- {
356
- value: {
357
- deprecated?: boolean;
358
- fontFamily: string;
359
- fontSize: number;
360
- fontWeight: string;
361
- lineHeight: number;
362
- letterSpacing?: string;
363
- };
364
- description: string;
365
- }
366
- >();
367
-
368
- textStyle.forEach(([key, { fontFamily, description, variants }]) => {
369
- variants.forEach(({ fontSize, fontWeight, lineHeight, letterSpacing }) => {
370
- map.set(`${key}-${fontSize}${fontWeight}-${lineHeight}`, {
371
- value: {
372
- fontFamily,
373
- fontSize,
374
- fontWeight,
375
- lineHeight,
376
- letterSpacing: letterSpacing ? `${letterSpacing}em` : undefined,
377
- },
378
- description,
379
- });
380
- });
381
- });
382
-
383
- export default defineTextStyles(Object.fromEntries(map));
@@ -1,220 +0,0 @@
1
- import tokens from "@digital-go-jp/design-tokens";
2
-
3
- const colors = {
4
- white: { value: tokens.Color.Neutral.White.$value },
5
- black: { value: tokens.Color.Neutral.Black.$value },
6
- blue: {
7
- 50: { value: tokens.Color.Primitive.Blue[50].$value },
8
- 100: { value: tokens.Color.Primitive.Blue[100].$value },
9
- 200: { value: tokens.Color.Primitive.Blue[200].$value },
10
- 300: { value: tokens.Color.Primitive.Blue[300].$value },
11
- 400: { value: tokens.Color.Primitive.Blue[400].$value },
12
- 500: { value: tokens.Color.Primitive.Blue[500].$value },
13
- 600: { value: tokens.Color.Primitive.Blue[600].$value },
14
- 700: { value: tokens.Color.Primitive.Blue[700].$value },
15
- 800: { value: tokens.Color.Primitive.Blue[800].$value },
16
- 900: { value: tokens.Color.Primitive.Blue[900].$value },
17
- 1000: { value: tokens.Color.Primitive.Blue[1000].$value },
18
- 1100: { value: tokens.Color.Primitive.Blue[1100].$value },
19
- 1200: { value: tokens.Color.Primitive.Blue[1200].$value },
20
- },
21
- "light-blue": {
22
- 50: { value: tokens.Color.Primitive.LightBlue[50].$value },
23
- 100: { value: tokens.Color.Primitive.LightBlue[100].$value },
24
- 200: { value: tokens.Color.Primitive.LightBlue[200].$value },
25
- 300: { value: tokens.Color.Primitive.LightBlue[300].$value },
26
- 400: { value: tokens.Color.Primitive.LightBlue[400].$value },
27
- 500: { value: tokens.Color.Primitive.LightBlue[500].$value },
28
- 600: { value: tokens.Color.Primitive.LightBlue[600].$value },
29
- 700: { value: tokens.Color.Primitive.LightBlue[700].$value },
30
- 800: { value: tokens.Color.Primitive.LightBlue[800].$value },
31
- 900: { value: tokens.Color.Primitive.LightBlue[900].$value },
32
- 1000: { value: tokens.Color.Primitive.LightBlue[1000].$value },
33
- 1100: { value: tokens.Color.Primitive.LightBlue[1100].$value },
34
- 1200: { value: tokens.Color.Primitive.LightBlue[1200].$value },
35
- },
36
- cyan: {
37
- 50: { value: tokens.Color.Primitive.Cyan[50].$value },
38
- 100: { value: tokens.Color.Primitive.Cyan[100].$value },
39
- 200: { value: tokens.Color.Primitive.Cyan[200].$value },
40
- 300: { value: tokens.Color.Primitive.Cyan[300].$value },
41
- 400: { value: tokens.Color.Primitive.Cyan[400].$value },
42
- 500: { value: tokens.Color.Primitive.Cyan[500].$value },
43
- 600: { value: tokens.Color.Primitive.Cyan[600].$value },
44
- 700: { value: tokens.Color.Primitive.Cyan[700].$value },
45
- 800: { value: tokens.Color.Primitive.Cyan[800].$value },
46
- 900: { value: tokens.Color.Primitive.Cyan[900].$value },
47
- 1000: { value: tokens.Color.Primitive.Cyan[1000].$value },
48
- 1100: { value: tokens.Color.Primitive.Cyan[1100].$value },
49
- 1200: { value: tokens.Color.Primitive.Cyan[1200].$value },
50
- },
51
- green: {
52
- 50: { value: tokens.Color.Primitive.Green[50].$value },
53
- 100: { value: tokens.Color.Primitive.Green[100].$value },
54
- 200: { value: tokens.Color.Primitive.Green[200].$value },
55
- 300: { value: tokens.Color.Primitive.Green[300].$value },
56
- 400: { value: tokens.Color.Primitive.Green[400].$value },
57
- 500: { value: tokens.Color.Primitive.Green[500].$value },
58
- 600: { value: tokens.Color.Primitive.Green[600].$value },
59
- 700: { value: tokens.Color.Primitive.Green[700].$value },
60
- 800: { value: tokens.Color.Primitive.Green[800].$value },
61
- 900: { value: tokens.Color.Primitive.Green[900].$value },
62
- 1000: { value: tokens.Color.Primitive.Green[1000].$value },
63
- 1100: { value: tokens.Color.Primitive.Green[1100].$value },
64
- 1200: { value: tokens.Color.Primitive.Green[1200].$value },
65
- },
66
- lime: {
67
- 50: { value: tokens.Color.Primitive.Lime[50].$value },
68
- 100: { value: tokens.Color.Primitive.Lime[100].$value },
69
- 200: { value: tokens.Color.Primitive.Lime[200].$value },
70
- 300: { value: tokens.Color.Primitive.Lime[300].$value },
71
- 400: { value: tokens.Color.Primitive.Lime[400].$value },
72
- 500: { value: tokens.Color.Primitive.Lime[500].$value },
73
- 600: { value: tokens.Color.Primitive.Lime[600].$value },
74
- 700: { value: tokens.Color.Primitive.Lime[700].$value },
75
- 800: { value: tokens.Color.Primitive.Lime[800].$value },
76
- 900: { value: tokens.Color.Primitive.Lime[900].$value },
77
- 1000: { value: tokens.Color.Primitive.Lime[1000].$value },
78
- 1100: { value: tokens.Color.Primitive.Lime[1100].$value },
79
- 1200: { value: tokens.Color.Primitive.Lime[1200].$value },
80
- },
81
- yellow: {
82
- 50: { value: tokens.Color.Primitive.Yellow[50].$value },
83
- 100: { value: tokens.Color.Primitive.Yellow[100].$value },
84
- 200: { value: tokens.Color.Primitive.Yellow[200].$value },
85
- 300: { value: tokens.Color.Primitive.Yellow[300].$value },
86
- 400: { value: tokens.Color.Primitive.Yellow[400].$value },
87
- 500: { value: tokens.Color.Primitive.Yellow[500].$value },
88
- 600: { value: tokens.Color.Primitive.Yellow[600].$value },
89
- 700: { value: tokens.Color.Primitive.Yellow[700].$value },
90
- 800: { value: tokens.Color.Primitive.Yellow[800].$value },
91
- 900: { value: tokens.Color.Primitive.Yellow[900].$value },
92
- 1000: { value: tokens.Color.Primitive.Yellow[1000].$value },
93
- 1100: { value: tokens.Color.Primitive.Yellow[1100].$value },
94
- 1200: { value: tokens.Color.Primitive.Yellow[1200].$value },
95
- },
96
- orange: {
97
- 50: { value: tokens.Color.Primitive.Orange[50].$value },
98
- 100: { value: tokens.Color.Primitive.Orange[100].$value },
99
- 200: { value: tokens.Color.Primitive.Orange[200].$value },
100
- 300: { value: tokens.Color.Primitive.Orange[300].$value },
101
- 400: { value: tokens.Color.Primitive.Orange[400].$value },
102
- 500: { value: tokens.Color.Primitive.Orange[500].$value },
103
- 600: { value: tokens.Color.Primitive.Orange[600].$value },
104
- 700: { value: tokens.Color.Primitive.Orange[700].$value },
105
- 800: { value: tokens.Color.Primitive.Orange[800].$value },
106
- 900: { value: tokens.Color.Primitive.Orange[900].$value },
107
- 1000: { value: tokens.Color.Primitive.Orange[1000].$value },
108
- 1100: { value: tokens.Color.Primitive.Orange[1100].$value },
109
- 1200: { value: tokens.Color.Primitive.Orange[1200].$value },
110
- },
111
- red: {
112
- 50: { value: tokens.Color.Primitive.Red[50].$value },
113
- 100: { value: tokens.Color.Primitive.Red[100].$value },
114
- 200: { value: tokens.Color.Primitive.Red[200].$value },
115
- 300: { value: tokens.Color.Primitive.Red[300].$value },
116
- 400: { value: tokens.Color.Primitive.Red[400].$value },
117
- 500: { value: tokens.Color.Primitive.Red[500].$value },
118
- 600: { value: tokens.Color.Primitive.Red[600].$value },
119
- 700: { value: tokens.Color.Primitive.Red[700].$value },
120
- 800: { value: tokens.Color.Primitive.Red[800].$value },
121
- 900: { value: tokens.Color.Primitive.Red[900].$value },
122
- 1000: { value: tokens.Color.Primitive.Red[1000].$value },
123
- 1100: { value: tokens.Color.Primitive.Red[1100].$value },
124
- 1200: { value: tokens.Color.Primitive.Red[1200].$value },
125
- },
126
- magenta: {
127
- 50: { value: tokens.Color.Primitive.Magenta[50].$value },
128
- 100: { value: tokens.Color.Primitive.Magenta[100].$value },
129
- 200: { value: tokens.Color.Primitive.Magenta[200].$value },
130
- 300: { value: tokens.Color.Primitive.Magenta[300].$value },
131
- 400: { value: tokens.Color.Primitive.Magenta[400].$value },
132
- 500: { value: tokens.Color.Primitive.Magenta[500].$value },
133
- 600: { value: tokens.Color.Primitive.Magenta[600].$value },
134
- 700: { value: tokens.Color.Primitive.Magenta[700].$value },
135
- 800: { value: tokens.Color.Primitive.Magenta[800].$value },
136
- 900: { value: tokens.Color.Primitive.Magenta[900].$value },
137
- 1000: { value: tokens.Color.Primitive.Magenta[1000].$value },
138
- 1100: { value: tokens.Color.Primitive.Magenta[1100].$value },
139
- 1200: { value: tokens.Color.Primitive.Magenta[1200].$value },
140
- },
141
- purple: {
142
- 50: { value: tokens.Color.Primitive.Purple[50].$value },
143
- 100: { value: tokens.Color.Primitive.Purple[100].$value },
144
- 200: { value: tokens.Color.Primitive.Purple[200].$value },
145
- 300: { value: tokens.Color.Primitive.Purple[300].$value },
146
- 400: { value: tokens.Color.Primitive.Purple[400].$value },
147
- 500: { value: tokens.Color.Primitive.Purple[500].$value },
148
- 600: { value: tokens.Color.Primitive.Purple[600].$value },
149
- 700: { value: tokens.Color.Primitive.Purple[700].$value },
150
- 800: { value: tokens.Color.Primitive.Purple[800].$value },
151
- 900: { value: tokens.Color.Primitive.Purple[900].$value },
152
- 1000: { value: tokens.Color.Primitive.Purple[1000].$value },
153
- 1100: { value: tokens.Color.Primitive.Purple[1100].$value },
154
- 1200: { value: tokens.Color.Primitive.Purple[1200].$value },
155
- },
156
- "solid-gray": {
157
- 50: { value: tokens.Color.Neutral.SolidGray[50].$value },
158
- 100: { value: tokens.Color.Neutral.SolidGray[100].$value },
159
- 200: { value: tokens.Color.Neutral.SolidGray[200].$value },
160
- 300: { value: tokens.Color.Neutral.SolidGray[300].$value },
161
- 400: { value: tokens.Color.Neutral.SolidGray[400].$value },
162
- 420: { value: tokens.Color.Neutral.SolidGray[420].$value },
163
- 500: { value: tokens.Color.Neutral.SolidGray[500].$value },
164
- 536: { value: tokens.Color.Neutral.SolidGray[536].$value },
165
- 600: { value: tokens.Color.Neutral.SolidGray[600].$value },
166
- 700: { value: tokens.Color.Neutral.SolidGray[700].$value },
167
- 800: { value: tokens.Color.Neutral.SolidGray[800].$value },
168
- 900: { value: tokens.Color.Neutral.SolidGray[900].$value },
169
- },
170
- success: {
171
- 1: {
172
- value: tokens.Color.Semantic.Success[1].$value,
173
- description: "成功、安全、完了などを意味するカラー",
174
- },
175
- 2: {
176
- value: tokens.Color.Semantic.Success[2].$value,
177
- description: "成功、安全、完了などを意味するカラー",
178
- },
179
- },
180
- error: {
181
- 1: {
182
- value: tokens.Color.Semantic.Error[1].$value,
183
- description:
184
- "失敗やエラーのほか、危険情報や制約条件の提示など注意喚起を意味するカラー",
185
- },
186
- 2: {
187
- value: tokens.Color.Semantic.Error[2].$value,
188
- description:
189
- "失敗やエラーのほか、危険情報や制約条件の提示など注意喚起を意味するカラー",
190
- },
191
- },
192
- warning: {
193
- yellow: {
194
- 1: {
195
- value: tokens.Color.Semantic.Warning.Yellow[1].$value,
196
- description: "警告や禁止事項などを意味するカラー",
197
- },
198
- 2: {
199
- value: tokens.Color.Semantic.Warning.Yellow[2].$value,
200
- description: "警告や禁止事項などを意味するカラー",
201
- },
202
- },
203
- orange: {
204
- 1: {
205
- value: tokens.Color.Semantic.Warning.Orange[1].$value,
206
- description: "警告や禁止事項などを意味するカラー",
207
- },
208
- 2: {
209
- value: tokens.Color.Semantic.Warning.Orange[2].$value,
210
- description: "警告や禁止事項などを意味するカラー",
211
- },
212
- },
213
- },
214
- focus: {
215
- yellow: { value: tokens.Color.Primitive.Yellow[700].$value },
216
- blue: { value: tokens.Color.Primitive.LightBlue[700].$value },
217
- },
218
- };
219
-
220
- export default colors;
@@ -1,34 +0,0 @@
1
- import { defineTokens } from "@pandacss/dev";
2
- import tokens from "@digital-go-jp/design-tokens";
3
- import colors from "./colors";
4
- import { fonts, fontSizes, fontWeights, lineHeights } from "./typography";
5
-
6
- export default defineTokens({
7
- colors,
8
- fonts,
9
- fontSizes,
10
- fontWeights,
11
- lineHeights,
12
- radii: {
13
- xs: { value: "0.125rem" },
14
- sm: { value: "0.25rem" },
15
- md: { value: "0.375rem" },
16
- lg: { value: "0.5rem" },
17
- xl: { value: "0.75rem" },
18
- "2xl": { value: "1rem" },
19
- "3xl": { value: "1.5rem" },
20
- "8": { value: tokens.BorderRadius[8].$value },
21
- "16": { value: tokens.BorderRadius[16].$value },
22
- "32": { value: tokens.BorderRadius[32].$value },
23
- },
24
- shadows: {
25
- "1": { value: tokens.Elevation[1].$value },
26
- "2": { value: tokens.Elevation[2].$value },
27
- "3": { value: tokens.Elevation[3].$value },
28
- "4": { value: tokens.Elevation[4].$value },
29
- "5": { value: tokens.Elevation[5].$value },
30
- "6": { value: tokens.Elevation[6].$value },
31
- "7": { value: tokens.Elevation[7].$value },
32
- "8": { value: tokens.Elevation[8].$value },
33
- },
34
- });
@@ -1,131 +0,0 @@
1
- import tokens from "@digital-go-jp/design-tokens";
2
-
3
- export const fonts = {
4
- body: {
5
- value: [
6
- "Noto Sans JP",
7
- "-apple-system",
8
- "BlinkMacSystemFont",
9
- "sans-serif",
10
- ],
11
- },
12
- mono: {
13
- value: ["Noto Sans Mono", "monospace"],
14
- },
15
- };
16
-
17
- export const fontSizes = {
18
- "64": {
19
- value: tokens.FontSize[64].$value,
20
- description: "視覚的なインパクトが必要なデザイン要素としての文字サイズ。",
21
- },
22
- "57": {
23
- value: tokens.FontSize[57].$value,
24
- description: "視覚的なインパクトが必要なデザイン要素としての文字サイズ。",
25
- },
26
- "48": {
27
- value: tokens.FontSize[48].$value,
28
- description: "視覚的なインパクトが必要なデザイン要素としての文字サイズ。",
29
- },
30
- "45": {
31
- value: tokens.FontSize[45].$value,
32
- description:
33
- "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。",
34
- },
35
- "36": {
36
- value: tokens.FontSize[36].$value,
37
- description:
38
- "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。",
39
- },
40
- "32": {
41
- value: tokens.FontSize[32].$value,
42
- description:
43
- "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。",
44
- },
45
- "28": {
46
- value: tokens.FontSize[28].$value,
47
- description:
48
- "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。",
49
- },
50
- "24": {
51
- value: tokens.FontSize[24].$value,
52
- description:
53
- "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。",
54
- },
55
- "22": {
56
- value: tokens.FontSize[22].$value,
57
- description:
58
- "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。",
59
- },
60
- "20": {
61
- value: tokens.FontSize[20].$value,
62
- description:
63
- "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。",
64
- },
65
- "18": {
66
- value: tokens.FontSize[18].$value,
67
- description:
68
- "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。",
69
- },
70
- "17": {
71
- value: tokens.FontSize[17].$value,
72
- description:
73
- "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。",
74
- },
75
- "16": {
76
- value: tokens.FontSize[16].$value,
77
- description:
78
- "読み物コンテンツ向けに多く使用される見出しや本文を構成する文字サイズ。なお、本文やUIにおいては16 CSS px以上が基準値となります。",
79
- },
80
- "14": {
81
- value: tokens.FontSize[14].$value,
82
- description:
83
- "基本的には使用しません。フッター要素などコンテンツに付随する情報や、UIやコンテンツを構成する際の領域的な制約がある場合のように標準的な文字サイズ(16 CSS px以上)の使用が難しいケースにおいてのみ使用される文字サイズです。なお、14 CSS px未満の大きさの使用は原則として許容されません。",
84
- },
85
- };
86
-
87
- export const fontWeights = {
88
- "400": { value: tokens.FontWeight[400].$value },
89
- "700": { value: tokens.FontWeight[700].$value },
90
- };
91
-
92
- export const lineHeights = {
93
- "100": {
94
- value: tokens.LineHeight[100].$value,
95
- description:
96
- "主にボタンなど、コンポーネント内で使用されるワンラインのテキストで上下の余白を持っていない行間",
97
- },
98
- "120": {
99
- value: tokens.LineHeight[120].$value,
100
- description:
101
- "主に管理画面や業務システムの画面等で、膨大な情報を一覧表示したりなど、限られた画面領域での表示情報量を最優先した行間",
102
- },
103
- "130": {
104
- value: tokens.LineHeight[130].$value,
105
- description:
106
- "主に管理画面や業務システムの画面等で使用する、表示情報量を優先した行間",
107
- },
108
- "140": {
109
- value: tokens.LineHeight[140].$value,
110
- description: "見出しなど、やや大きな文字に使用される行間",
111
- },
112
- "150": {
113
- value: tokens.LineHeight[150].$value,
114
- description:
115
- "一般的なウェブサイトの本文や見出しで使用される行間(本文の行間としては最低限度)",
116
- },
117
- "160": {
118
- value: tokens.LineHeight[160].$value,
119
- description: "一般的なウェブサイトの本文で使用される行間",
120
- },
121
- "170": {
122
- value: tokens.LineHeight[170].$value,
123
- description:
124
- "一般的なウェブサイトの本文で使用する、心理的負荷の軽減を考慮した行間",
125
- },
126
- "175": {
127
- value: tokens.LineHeight[175].$value,
128
- description:
129
- "一般的なウェブサイトの本文で使用する、心理的負荷の軽減を考慮した行間。採用するグリッド幅やフォントサイズに応じて170%と使い分ける",
130
- },
131
- };
@@ -1,37 +0,0 @@
1
- import { defineUtility } from "@pandacss/dev";
2
-
3
- const borderInset = defineUtility({
4
- deprecated: true,
5
- className: "border-inset",
6
- values: ["xs", "sm", "md", "lg", "xl"],
7
- transform(value, { token }) {
8
- const width = (() => {
9
- if (value === "xs") return "1px";
10
- if (value === "sm") return "2px";
11
- if (value === "lg") return "4px";
12
- if (value === "xl") return "8px";
13
- return "3px";
14
- })();
15
-
16
- return {
17
- boxShadow: `inset 0 0 0 ${width} ${token("colors.ring")}`,
18
- };
19
- },
20
- });
21
-
22
- const focusRing = defineUtility({
23
- className: "ring",
24
- values: "borderWidths",
25
- transform(value, { token }) {
26
- return {
27
- boxShadow: `0 0 0 ${value} ${token("colors.ring")}`,
28
- };
29
- },
30
- });
31
-
32
- const utilities = {
33
- borderInset,
34
- focusRing,
35
- };
36
-
37
- export default utilities;
package/tsconfig.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "extends": "@repo/typescript-config/base.json",
3
- "include": ["src"]
4
- }
package/tsup.config.ts DELETED
@@ -1,9 +0,0 @@
1
- import { defineConfig } from "tsup";
2
-
3
- export default defineConfig({
4
- entry: ["src/index.ts"],
5
- external: ["@pandacss/dev"],
6
- format: ["esm", "cjs"],
7
- dts: true,
8
- clean: true,
9
- });