@liner-fe/design-token-primitive 0.1.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.
Files changed (57) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +3 -0
  3. package/dist/constants/breakpoint/index.d.ts +17 -0
  4. package/dist/constants/breakpoint/index.js +21 -0
  5. package/dist/constants/color/index.d.ts +8 -0
  6. package/dist/constants/color/index.js +298 -0
  7. package/dist/constants/color/types.d.ts +136 -0
  8. package/dist/constants/color/types.js +2 -0
  9. package/dist/constants/gap/index.d.ts +13 -0
  10. package/dist/constants/gap/index.js +17 -0
  11. package/dist/constants/icon/index.d.ts +7 -0
  12. package/dist/constants/icon/index.js +11 -0
  13. package/dist/constants/letterSpacing/index.d.ts +3 -0
  14. package/dist/constants/letterSpacing/index.js +6 -0
  15. package/dist/constants/opacity/index.d.ts +21 -0
  16. package/dist/constants/opacity/index.js +24 -0
  17. package/dist/constants/padding/index.d.ts +23 -0
  18. package/dist/constants/padding/index.js +27 -0
  19. package/dist/constants/radius/index.d.ts +2 -0
  20. package/dist/constants/radius/index.js +13 -0
  21. package/dist/constants/radius/type.d.ts +10 -0
  22. package/dist/constants/radius/type.js +2 -0
  23. package/dist/constants/shadow/index.d.ts +2 -0
  24. package/dist/constants/shadow/index.js +22 -0
  25. package/dist/constants/size/index.d.ts +2 -0
  26. package/dist/constants/size/index.js +35 -0
  27. package/dist/constants/size/type.d.ts +31 -0
  28. package/dist/constants/size/type.js +34 -0
  29. package/dist/constants/typography/index.d.ts +14 -0
  30. package/dist/constants/typography/index.js +309 -0
  31. package/dist/constants/typography/primitive.d.ts +43 -0
  32. package/dist/constants/typography/primitive.js +45 -0
  33. package/dist/constants/typography/types.d.ts +15 -0
  34. package/dist/constants/typography/types.js +2 -0
  35. package/dist/index.d.ts +13 -0
  36. package/dist/index.js +29 -0
  37. package/dist/index.mjs +1 -0
  38. package/esbuild.js +14 -0
  39. package/package.json +20 -0
  40. package/src/constants/breakpoint/index.ts +21 -0
  41. package/src/constants/color/index.ts +341 -0
  42. package/src/constants/color/types.ts +240 -0
  43. package/src/constants/gap/index.ts +15 -0
  44. package/src/constants/icon/index.ts +9 -0
  45. package/src/constants/letterSpacing/index.ts +3 -0
  46. package/src/constants/opacity/index.ts +21 -0
  47. package/src/constants/padding/index.ts +26 -0
  48. package/src/constants/radius/index.ts +12 -0
  49. package/src/constants/radius/type.ts +11 -0
  50. package/src/constants/shadow/index.ts +20 -0
  51. package/src/constants/size/index.ts +33 -0
  52. package/src/constants/size/type.ts +31 -0
  53. package/src/constants/typography/index.ts +328 -0
  54. package/src/constants/typography/primitive.ts +46 -0
  55. package/src/constants/typography/types.ts +74 -0
  56. package/src/index.ts +13 -0
  57. package/tsconfig.json +7 -0
@@ -0,0 +1,328 @@
1
+ import { font } from './primitive';
2
+ import { TypographyKeys } from './types';
3
+
4
+ export type FontFamily =
5
+ | 'lp-pri-font-family-variables-pretendard'
6
+ | 'lp-pri-font-family-variables-pretendard-jp'
7
+ | 'lp-pri-font-family-merriweather'
8
+ | 'lp-pri-font-family-flare';
9
+
10
+ interface TypographyValues {
11
+ family: Exclude<FontFamily, 'lp-pri-font-family-variables-pretendard-jp'>;
12
+ weight: keyof typeof font.weight;
13
+ lineHeight: keyof typeof font.lineHeight;
14
+ size: keyof typeof font.size;
15
+ letterSpacing?: keyof typeof font.letterSpacing;
16
+ }
17
+
18
+ export const typography: Record<TypographyKeys, TypographyValues> = {
19
+ 'lp-sys-typo-heading1-answer': {
20
+ family: 'lp-pri-font-family-variables-pretendard',
21
+ weight: 'lp-pri-font-weight-700',
22
+ lineHeight: 'lp-pri-font-lineheight-180',
23
+ size: 'lp-pri-font-size-28',
24
+ },
25
+ 'lp-sys-typo-heading2-answer': {
26
+ family: 'lp-pri-font-family-variables-pretendard',
27
+ weight: 'lp-pri-font-weight-700',
28
+ lineHeight: 'lp-pri-font-lineheight-180',
29
+ size: 'lp-pri-font-size-24',
30
+ },
31
+ 'lp-sys-typo-heading3-answer': {
32
+ family: 'lp-pri-font-family-variables-pretendard',
33
+ weight: 'lp-pri-font-weight-700',
34
+ lineHeight: 'lp-pri-font-lineheight-180',
35
+ size: 'lp-pri-font-size-20',
36
+ },
37
+ 'lp-sys-typo-heading4-answer': {
38
+ family: 'lp-pri-font-family-variables-pretendard',
39
+ weight: 'lp-pri-font-weight-700',
40
+ lineHeight: 'lp-pri-font-lineheight-180',
41
+ size: 'lp-pri-font-size-17',
42
+ },
43
+ 'lp-sys-typo-heading5-answer': {
44
+ family: 'lp-pri-font-family-variables-pretendard',
45
+ weight: 'lp-pri-font-weight-700',
46
+ lineHeight: 'lp-pri-font-lineheight-180',
47
+ size: 'lp-pri-font-size-17',
48
+ },
49
+ 'lp-sys-typo-heading6-answer': {
50
+ family: 'lp-pri-font-family-variables-pretendard',
51
+ weight: 'lp-pri-font-weight-700',
52
+ lineHeight: 'lp-pri-font-lineheight-180',
53
+ size: 'lp-pri-font-size-17',
54
+ },
55
+ 'lp-sys-typo-title1-accent-bold': {
56
+ family: 'lp-pri-font-family-variables-pretendard',
57
+ lineHeight: 'lp-pri-font-lineheight-130',
58
+ size: 'lp-pri-font-size-32',
59
+ weight: 'lp-pri-font-weight-600',
60
+ },
61
+ 'lp-sys-typo-title2-accent-bold': {
62
+ family: 'lp-pri-font-family-variables-pretendard',
63
+ weight: 'lp-pri-font-weight-600',
64
+ lineHeight: 'lp-pri-font-lineheight-130',
65
+ size: 'lp-pri-font-size-28',
66
+ },
67
+ 'lp-sys-typo-title3-accent-bold': {
68
+ family: 'lp-pri-font-family-variables-pretendard',
69
+ weight: 'lp-pri-font-weight-600',
70
+ lineHeight: 'lp-pri-font-lineheight-130',
71
+ size: 'lp-pri-font-size-24',
72
+ },
73
+ 'lp-sys-typo-title4-accent-bold': {
74
+ family: 'lp-pri-font-family-variables-pretendard',
75
+ weight: 'lp-pri-font-weight-600',
76
+ lineHeight: 'lp-pri-font-lineheight-130',
77
+ size: 'lp-pri-font-size-20',
78
+ },
79
+ 'lp-sys-typo-title1-normal-bold': {
80
+ family: 'lp-pri-font-family-variables-pretendard',
81
+ weight: 'lp-pri-font-weight-700',
82
+ lineHeight: 'lp-pri-font-lineheight-130',
83
+ size: 'lp-pri-font-size-32',
84
+ },
85
+ 'lp-sys-typo-title2-normal-bold': {
86
+ family: 'lp-pri-font-family-variables-pretendard',
87
+ weight: 'lp-pri-font-weight-700',
88
+ lineHeight: 'lp-pri-font-lineheight-130',
89
+ size: 'lp-pri-font-size-28',
90
+ },
91
+ 'lp-sys-typo-title3-normal-bold': {
92
+ family: 'lp-pri-font-family-variables-pretendard',
93
+ weight: 'lp-pri-font-weight-700',
94
+ lineHeight: 'lp-pri-font-lineheight-130',
95
+ size: 'lp-pri-font-size-24',
96
+ },
97
+ 'lp-sys-typo-title4-normal-bold': {
98
+ weight: 'lp-pri-font-weight-700',
99
+ lineHeight: 'lp-pri-font-lineheight-130',
100
+ size: 'lp-pri-font-size-20',
101
+ family: 'lp-pri-font-family-variables-pretendard',
102
+ },
103
+ 'lp-sys-typo-title1-normal-medium': {
104
+ family: 'lp-pri-font-family-variables-pretendard',
105
+ weight: 'lp-pri-font-weight-500',
106
+ size: 'lp-pri-font-size-32',
107
+ lineHeight: 'lp-pri-font-lineheight-130',
108
+ },
109
+ 'lp-sys-typo-title2-normal-medium': {
110
+ family: 'lp-pri-font-family-variables-pretendard',
111
+ weight: 'lp-pri-font-weight-500',
112
+ size: 'lp-pri-font-size-28',
113
+ lineHeight: 'lp-pri-font-lineheight-130',
114
+ },
115
+ 'lp-sys-typo-title3-normal-medium': {
116
+ family: 'lp-pri-font-family-variables-pretendard',
117
+ weight: 'lp-pri-font-weight-500',
118
+ size: 'lp-pri-font-size-24',
119
+ lineHeight: 'lp-pri-font-lineheight-130',
120
+ },
121
+ 'lp-sys-typo-title4-normal-medium': {
122
+ family: 'lp-pri-font-family-variables-pretendard',
123
+ weight: 'lp-pri-font-weight-500',
124
+ size: 'lp-pri-font-size-20',
125
+ lineHeight: 'lp-pri-font-lineheight-130',
126
+ },
127
+ 'lp-sys-typo-paragraph1-normal-bold': {
128
+ weight: 'lp-pri-font-weight-700',
129
+ lineHeight: 'lp-pri-font-lineheight-130',
130
+ size: 'lp-pri-font-size-17',
131
+ family: 'lp-pri-font-family-variables-pretendard',
132
+ },
133
+ 'lp-sys-typo-paragraph2-normal-bold': {
134
+ weight: 'lp-pri-font-weight-700',
135
+ lineHeight: 'lp-pri-font-lineheight-130',
136
+ size: 'lp-pri-font-size-16',
137
+ family: 'lp-pri-font-family-variables-pretendard',
138
+ },
139
+ 'lp-sys-typo-paragraph3-normal-bold': {
140
+ family: 'lp-pri-font-family-variables-pretendard',
141
+ weight: 'lp-pri-font-weight-700',
142
+ lineHeight: 'lp-pri-font-lineheight-130',
143
+ size: 'lp-pri-font-size-15',
144
+ },
145
+ 'lp-sys-typo-paragraph4-normal-bold': {
146
+ family: 'lp-pri-font-family-variables-pretendard',
147
+ weight: 'lp-pri-font-weight-700',
148
+ lineHeight: 'lp-pri-font-lineheight-130',
149
+ size: 'lp-pri-font-size-14',
150
+ },
151
+ 'lp-sys-typo-paragraph1-normal-medium': {
152
+ family: 'lp-pri-font-family-variables-pretendard',
153
+ weight: 'lp-pri-font-weight-500',
154
+ lineHeight: 'lp-pri-font-lineheight-130',
155
+ size: 'lp-pri-font-size-17',
156
+ },
157
+ 'lp-sys-typo-paragraph2-normal-medium': {
158
+ family: 'lp-pri-font-family-variables-pretendard',
159
+ weight: 'lp-pri-font-weight-500',
160
+ lineHeight: 'lp-pri-font-lineheight-130',
161
+ size: 'lp-pri-font-size-16',
162
+ },
163
+ 'lp-sys-typo-paragraph3-normal-medium': {
164
+ family: 'lp-pri-font-family-variables-pretendard',
165
+ weight: 'lp-pri-font-weight-500',
166
+ lineHeight: 'lp-pri-font-lineheight-130',
167
+ size: 'lp-pri-font-size-15',
168
+ },
169
+ 'lp-sys-typo-paragraph4-normal-medium': {
170
+ family: 'lp-pri-font-family-variables-pretendard',
171
+ weight: 'lp-pri-font-weight-500',
172
+ lineHeight: 'lp-pri-font-lineheight-130',
173
+ size: 'lp-pri-font-size-14',
174
+ },
175
+ 'lp-sys-typo-paragraph1-normal-regular': {
176
+ family: 'lp-pri-font-family-variables-pretendard',
177
+ weight: 'lp-pri-font-weight-350',
178
+ lineHeight: 'lp-pri-font-lineheight-130',
179
+ size: 'lp-pri-font-size-17',
180
+ },
181
+ 'lp-sys-typo-paragraph2-normal-regular': {
182
+ family: 'lp-pri-font-family-variables-pretendard',
183
+ weight: 'lp-pri-font-weight-350',
184
+ lineHeight: 'lp-pri-font-lineheight-130',
185
+ size: 'lp-pri-font-size-16',
186
+ },
187
+ 'lp-sys-typo-paragraph3-normal-regular': {
188
+ family: 'lp-pri-font-family-variables-pretendard',
189
+ weight: 'lp-pri-font-weight-350',
190
+ lineHeight: 'lp-pri-font-lineheight-130',
191
+ size: 'lp-pri-font-size-15',
192
+ },
193
+ 'lp-sys-typo-paragraph4-normal-regular': {
194
+ family: 'lp-pri-font-family-variables-pretendard',
195
+ weight: 'lp-pri-font-weight-350',
196
+ lineHeight: 'lp-pri-font-lineheight-130',
197
+ size: 'lp-pri-font-size-14',
198
+ },
199
+ 'lp-sys-typo-paragraph1-post-regular': {
200
+ family: 'lp-pri-font-family-variables-pretendard',
201
+ weight: 'lp-pri-font-weight-350',
202
+ lineHeight: 'lp-pri-font-lineheight-150',
203
+ size: 'lp-pri-font-size-17',
204
+ },
205
+ 'lp-sys-typo-paragraph3-post-regular': {
206
+ family: 'lp-pri-font-family-variables-pretendard',
207
+ weight: 'lp-pri-font-weight-350',
208
+ lineHeight: 'lp-pri-font-lineheight-150',
209
+ size: 'lp-pri-font-size-15',
210
+ },
211
+ 'lp-sys-typo-paragraph1-answer-bold': {
212
+ family: 'lp-pri-font-family-variables-pretendard',
213
+ weight: 'lp-pri-font-weight-800',
214
+ lineHeight: 'lp-pri-font-lineheight-180',
215
+ size: 'lp-pri-font-size-16',
216
+ },
217
+ 'lp-sys-typo-paragraph1-answer-regular': {
218
+ family: 'lp-pri-font-family-variables-pretendard',
219
+ weight: 'lp-pri-font-weight-350',
220
+ lineHeight: 'lp-pri-font-lineheight-180',
221
+ size: 'lp-pri-font-size-16',
222
+ },
223
+ 'lp-sys-typo-caption1-normal-bold': {
224
+ family: 'lp-pri-font-family-variables-pretendard',
225
+ weight: 'lp-pri-font-weight-700',
226
+ lineHeight: 'lp-pri-font-lineheight-130',
227
+ size: 'lp-pri-font-size-13',
228
+ },
229
+ 'lp-sys-typo-caption2-normal-bold': {
230
+ family: 'lp-pri-font-family-variables-pretendard',
231
+ weight: 'lp-pri-font-weight-700',
232
+ lineHeight: 'lp-pri-font-lineheight-130',
233
+ size: 'lp-pri-font-size-12',
234
+ },
235
+ 'lp-sys-typo-caption3-normal-bold': {
236
+ family: 'lp-pri-font-family-variables-pretendard',
237
+ weight: 'lp-pri-font-weight-700',
238
+ lineHeight: 'lp-pri-font-lineheight-130',
239
+ size: 'lp-pri-font-size-11',
240
+ },
241
+ 'lp-sys-typo-caption1-normal-medium': {
242
+ family: 'lp-pri-font-family-variables-pretendard',
243
+ weight: 'lp-pri-font-weight-500',
244
+ lineHeight: 'lp-pri-font-lineheight-130',
245
+ size: 'lp-pri-font-size-13',
246
+ },
247
+ 'lp-sys-typo-caption2-normal-medium': {
248
+ family: 'lp-pri-font-family-variables-pretendard',
249
+ weight: 'lp-pri-font-weight-500',
250
+ lineHeight: 'lp-pri-font-lineheight-130',
251
+ size: 'lp-pri-font-size-12',
252
+ },
253
+ 'lp-sys-typo-caption3-normal-medium': {
254
+ family: 'lp-pri-font-family-variables-pretendard',
255
+ weight: 'lp-pri-font-weight-500',
256
+ lineHeight: 'lp-pri-font-lineheight-130',
257
+ size: 'lp-pri-font-size-11',
258
+ },
259
+ 'lp-sys-typo-caption1-normal-regular': {
260
+ family: 'lp-pri-font-family-variables-pretendard',
261
+ weight: 'lp-pri-font-weight-350',
262
+ lineHeight: 'lp-pri-font-lineheight-130',
263
+ size: 'lp-pri-font-size-13',
264
+ },
265
+ 'lp-sys-typo-caption2-normal-regular': {
266
+ family: 'lp-pri-font-family-variables-pretendard',
267
+ weight: 'lp-pri-font-weight-350',
268
+ lineHeight: 'lp-pri-font-lineheight-130',
269
+ size: 'lp-pri-font-size-12',
270
+ },
271
+ 'lp-sys-typo-caption3-normal-regular': {
272
+ family: 'lp-pri-font-family-variables-pretendard',
273
+ weight: 'lp-pri-font-weight-350',
274
+ lineHeight: 'lp-pri-font-lineheight-130',
275
+ size: 'lp-pri-font-size-11',
276
+ },
277
+ };
278
+
279
+ export const typographyClassName = (() => {
280
+ const result: Partial<Record<TypographyKeys, TypographyKeys>> = {};
281
+
282
+ for (const key in typography) {
283
+ const typedKey = key as TypographyKeys;
284
+
285
+ result[typedKey] = typedKey;
286
+ }
287
+
288
+ return result;
289
+ })();
290
+
291
+ export const typographyEnglish: Partial<Record<TypographyKeys, TypographyValues>> = {
292
+ 'lp-sys-typo-title1-accent-bold': {
293
+ ...typography['lp-sys-typo-title1-accent-bold'],
294
+ family: 'lp-pri-font-family-flare',
295
+ size: 'lp-pri-font-size-34',
296
+ lineHeight: 'lp-pri-font-lineheight-120',
297
+ letterSpacing: 'lp-pri-font-letterspacing-tight',
298
+ },
299
+ 'lp-sys-typo-title2-accent-bold': {
300
+ ...typography['lp-sys-typo-title2-accent-bold'],
301
+ family: 'lp-pri-font-family-flare',
302
+ lineHeight: 'lp-pri-font-lineheight-120',
303
+ size: 'lp-pri-font-size-30',
304
+ letterSpacing: 'lp-pri-font-letterspacing-tight',
305
+ },
306
+ 'lp-sys-typo-title3-accent-bold': {
307
+ ...typography['lp-sys-typo-title3-accent-bold'],
308
+ family: 'lp-pri-font-family-flare',
309
+ lineHeight: 'lp-pri-font-lineheight-120',
310
+ size: 'lp-pri-font-size-26',
311
+ letterSpacing: 'lp-pri-font-letterspacing-tight',
312
+ },
313
+ 'lp-sys-typo-title4-accent-bold': {
314
+ ...typography['lp-sys-typo-title4-accent-bold'],
315
+ family: 'lp-pri-font-family-flare',
316
+ lineHeight: 'lp-pri-font-lineheight-120',
317
+ size: 'lp-pri-font-size-22',
318
+ letterSpacing: 'lp-pri-font-letterspacing-tight',
319
+ },
320
+ 'lp-sys-typo-paragraph1-answer-bold': {
321
+ ...typography['lp-sys-typo-paragraph1-answer-bold'],
322
+ family: 'lp-pri-font-family-merriweather',
323
+ },
324
+ 'lp-sys-typo-paragraph1-answer-regular': {
325
+ ...typography['lp-sys-typo-paragraph1-answer-regular'],
326
+ family: 'lp-pri-font-family-merriweather',
327
+ },
328
+ };
@@ -0,0 +1,46 @@
1
+ const lineHeight = {
2
+ 'lp-pri-font-lineheight-120': '120%',
3
+ 'lp-pri-font-lineheight-130': '130%',
4
+ 'lp-pri-font-lineheight-150': '150%',
5
+ 'lp-pri-font-lineheight-180': '180%',
6
+ } as const;
7
+
8
+ const size = {
9
+ 'lp-pri-font-size-8': 8,
10
+ 'lp-pri-font-size-11': 11,
11
+ 'lp-pri-font-size-12': 12,
12
+ 'lp-pri-font-size-13': 13,
13
+ 'lp-pri-font-size-14': 14,
14
+ 'lp-pri-font-size-15': 15,
15
+ 'lp-pri-font-size-16': 16,
16
+ 'lp-pri-font-size-17': 17,
17
+ 'lp-pri-font-size-20': 20,
18
+ 'lp-pri-font-size-22': 22,
19
+ 'lp-pri-font-size-24': 24,
20
+ 'lp-pri-font-size-26': 26,
21
+ 'lp-pri-font-size-28': 28,
22
+ 'lp-pri-font-size-30': 30,
23
+ 'lp-pri-font-size-32': 32,
24
+ 'lp-pri-font-size-34': 34,
25
+ 'lp-pri-font-size-40': 40,
26
+ 'lp-pri-font-size-56': 56,
27
+ 'lp-pri-font-size-64': 64,
28
+ 'lp-pri-font-size-72': 72,
29
+ } as const;
30
+
31
+ const weight = {
32
+ 'lp-pri-font-weight-300': 300,
33
+ 'lp-pri-font-weight-350': 350,
34
+ 'lp-pri-font-weight-400': 400,
35
+ 'lp-pri-font-weight-500': 500,
36
+ 'lp-pri-font-weight-600': 600,
37
+ 'lp-pri-font-weight-700': 700,
38
+ 'lp-pri-font-weight-800': 800,
39
+ 'lp-pri-font-weight-900': 900,
40
+ } as const;
41
+
42
+ const letterSpacing = {
43
+ 'lp-pri-font-letterspacing-tight': -2.5,
44
+ } as const;
45
+
46
+ export const font = { weight, lineHeight, size, letterSpacing };
@@ -0,0 +1,74 @@
1
+ export type TypographyPrefix = 'lp-sys-typo';
2
+
3
+ export type TypographyTitlePrefix = 'title';
4
+ export type TypographyTitle =
5
+ | '1-accent-bold'
6
+ | '2-accent-bold'
7
+ | '3-accent-bold'
8
+ | '4-accent-bold'
9
+ | '1-normal-bold'
10
+ | '2-normal-bold'
11
+ | '3-normal-bold'
12
+ | '4-normal-bold'
13
+ | '1-normal-medium'
14
+ | '2-normal-medium'
15
+ | '3-normal-medium'
16
+ | '4-normal-medium';
17
+ export type TypographyTitleType = `${TypographyTitlePrefix}${TypographyTitle}`;
18
+
19
+ export type TypographyHeadingPrefix = 'heading';
20
+ export type TypographyHeading =
21
+ | '1-answer'
22
+ | '2-answer'
23
+ | '3-answer'
24
+ | '4-answer'
25
+ | '5-answer'
26
+ | '6-answer';
27
+ export type TypographyHeadingType = `${TypographyHeadingPrefix}${TypographyHeading}`;
28
+
29
+ export type TypographyParagraphPrefix = 'paragraph';
30
+ export type TypographyParagraph =
31
+ | '1-normal-bold'
32
+ | '2-normal-bold'
33
+ | '3-normal-bold'
34
+ | '4-normal-bold'
35
+ | '1-normal-medium'
36
+ | '2-normal-medium'
37
+ | '3-normal-medium'
38
+ | '4-normal-medium'
39
+ | '1-normal-regular'
40
+ | '2-normal-regular'
41
+ | '3-normal-regular'
42
+ | '4-normal-regular'
43
+ | '1-post-regular'
44
+ | '3-post-regular'
45
+ | '1-answer-bold'
46
+ | '1-answer-regular';
47
+
48
+ export type TypographyParagraphType = `${TypographyParagraphPrefix}${TypographyParagraph}`;
49
+
50
+ export type TypographyCaptionPrefix = 'caption';
51
+ export type TypographyCaption =
52
+ | '1-normal-bold'
53
+ | '2-normal-bold'
54
+ | '3-normal-bold'
55
+ | '1-normal-medium'
56
+ | '2-normal-medium'
57
+ | '3-normal-medium'
58
+ | '1-normal-regular'
59
+ | '2-normal-regular'
60
+ | '3-normal-regular';
61
+
62
+ export type TypographyCaptionType = `${TypographyCaptionPrefix}${TypographyCaption}`;
63
+
64
+ export type TypographyKeys = `${TypographyPrefix}-${
65
+ | TypographyTitleType
66
+ | TypographyHeadingType
67
+ | TypographyParagraphType
68
+ | TypographyCaptionType}`;
69
+
70
+ export type TypographyType =
71
+ | TypographyCaptionPrefix
72
+ | TypographyParagraphPrefix
73
+ | TypographyHeadingPrefix
74
+ | TypographyTitlePrefix;
package/src/index.ts ADDED
@@ -0,0 +1,13 @@
1
+ export * from './constants/breakpoint';
2
+ export * from './constants/gap';
3
+ export * from './constants/icon';
4
+ export * from './constants/letterSpacing';
5
+ export * from './constants/opacity';
6
+ export * from './constants/padding';
7
+ export * from './constants/shadow';
8
+ export * from './constants/radius';
9
+ export * from './constants/size';
10
+ export * from './constants/color';
11
+ export * from './constants/typography';
12
+ export * from './constants/typography/primitive';
13
+ export * from './constants/typography/types';
package/tsconfig.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "outDir": "dist"
6
+ }
7
+ }