@remember-web/mixin 0.2.4 → 0.2.6
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/src/typography/const.cjs.js +87 -66
- package/dist/src/typography/const.cjs.js.map +1 -1
- package/dist/src/typography/const.d.ts +81 -51
- package/dist/src/typography/const.d.ts.map +1 -1
- package/dist/src/typography/const.esm.js +87 -62
- package/dist/src/typography/const.esm.js.map +1 -1
- package/dist/src/typography/utils.cjs.js +1 -1
- package/dist/src/typography/utils.cjs.js.map +1 -1
- package/dist/src/typography/utils.esm.js +1 -1
- package/dist/src/typography/utils.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/colors/color.stories.tsx +1 -1
- package/src/typography/const.ts +85 -58
- package/src/typography/utils.ts +1 -1
|
@@ -1,113 +1,134 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
var TYPOGRAPHY_STYLES = {
|
|
4
|
+
// Title Style
|
|
5
|
+
DisplayTitle1: {
|
|
6
|
+
fontSize: 48,
|
|
7
|
+
lineHeight: 1.3,
|
|
8
|
+
fontWeight: 700
|
|
9
|
+
},
|
|
10
|
+
DisplayTitle2: {
|
|
11
|
+
fontSize: 40,
|
|
12
|
+
lineHeight: 1.3,
|
|
13
|
+
fontWeight: 700
|
|
14
|
+
},
|
|
15
|
+
DisplayTitle3: {
|
|
16
|
+
fontSize: 32,
|
|
17
|
+
lineHeight: 1.3,
|
|
18
|
+
fontWeight: 700
|
|
19
|
+
},
|
|
20
|
+
Headline: {
|
|
14
21
|
fontSize: 24,
|
|
15
|
-
lineHeight:
|
|
22
|
+
lineHeight: 1.3,
|
|
16
23
|
fontWeight: 600
|
|
17
24
|
},
|
|
18
|
-
|
|
25
|
+
Title1: {
|
|
19
26
|
fontSize: 20,
|
|
20
|
-
lineHeight:
|
|
27
|
+
lineHeight: 1.3,
|
|
21
28
|
fontWeight: 600
|
|
22
29
|
},
|
|
23
|
-
|
|
24
|
-
fontSize:
|
|
25
|
-
lineHeight:
|
|
30
|
+
Title2: {
|
|
31
|
+
fontSize: 18,
|
|
32
|
+
lineHeight: 1.3,
|
|
26
33
|
fontWeight: 600
|
|
27
34
|
},
|
|
28
|
-
|
|
35
|
+
SubTitle1: {
|
|
29
36
|
fontSize: 16,
|
|
30
|
-
lineHeight:
|
|
31
|
-
fontWeight:
|
|
37
|
+
lineHeight: 1.3,
|
|
38
|
+
fontWeight: 600
|
|
32
39
|
},
|
|
33
|
-
|
|
40
|
+
SubTitle2: {
|
|
34
41
|
fontSize: 14,
|
|
35
|
-
lineHeight:
|
|
42
|
+
lineHeight: 1.3,
|
|
36
43
|
fontWeight: 600
|
|
37
44
|
},
|
|
38
|
-
|
|
39
|
-
fontSize:
|
|
40
|
-
lineHeight:
|
|
45
|
+
DisplayBody: {
|
|
46
|
+
fontSize: 20,
|
|
47
|
+
lineHeight: 1.45,
|
|
41
48
|
fontWeight: 400
|
|
42
49
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
50
|
+
// Body Style
|
|
51
|
+
UIBody1: {
|
|
52
|
+
fontSize: 18,
|
|
53
|
+
lineHeight: 1.45,
|
|
54
|
+
fontWeight: 400
|
|
55
|
+
},
|
|
56
|
+
UIBody1_B: {
|
|
57
|
+
fontSize: 18,
|
|
58
|
+
lineHeight: 1.45,
|
|
46
59
|
fontWeight: 600
|
|
47
60
|
},
|
|
48
|
-
|
|
49
|
-
fontSize:
|
|
50
|
-
lineHeight:
|
|
61
|
+
UIBody2: {
|
|
62
|
+
fontSize: 16,
|
|
63
|
+
lineHeight: 1.45,
|
|
51
64
|
fontWeight: 400
|
|
52
65
|
},
|
|
53
|
-
|
|
54
|
-
fontSize:
|
|
55
|
-
lineHeight:
|
|
56
|
-
fontWeight: 600
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
var TYPOGRAPHY_STYLES = _objectSpread(_objectSpread({}, LEGACY_TYPOGRAPHY_STYLES), {}, {
|
|
60
|
-
Headline: {
|
|
61
|
-
fontSize: 24,
|
|
62
|
-
lineHeight: 34,
|
|
66
|
+
UIBody2_B: {
|
|
67
|
+
fontSize: 16,
|
|
68
|
+
lineHeight: 1.45,
|
|
63
69
|
fontWeight: 600
|
|
64
70
|
},
|
|
65
|
-
|
|
66
|
-
fontSize:
|
|
67
|
-
lineHeight:
|
|
71
|
+
UIBody3: {
|
|
72
|
+
fontSize: 14,
|
|
73
|
+
lineHeight: 1.45,
|
|
74
|
+
fontWeight: 400
|
|
75
|
+
},
|
|
76
|
+
UIBody3_B: {
|
|
77
|
+
fontSize: 14,
|
|
78
|
+
lineHeight: 1.45,
|
|
68
79
|
fontWeight: 600
|
|
69
80
|
},
|
|
70
|
-
|
|
71
|
-
fontSize:
|
|
72
|
-
lineHeight:
|
|
81
|
+
ArticleBody1: {
|
|
82
|
+
fontSize: 18,
|
|
83
|
+
lineHeight: 1.55,
|
|
73
84
|
fontWeight: 400
|
|
74
85
|
},
|
|
75
|
-
|
|
76
|
-
fontSize:
|
|
77
|
-
lineHeight:
|
|
86
|
+
ArticleBody1_B: {
|
|
87
|
+
fontSize: 18,
|
|
88
|
+
lineHeight: 1.55,
|
|
78
89
|
fontWeight: 600
|
|
79
90
|
},
|
|
80
|
-
|
|
91
|
+
ArticleBody2: {
|
|
81
92
|
fontSize: 16,
|
|
82
|
-
lineHeight:
|
|
93
|
+
lineHeight: 1.6,
|
|
83
94
|
fontWeight: 400
|
|
84
95
|
},
|
|
85
|
-
|
|
86
|
-
fontSize:
|
|
87
|
-
lineHeight:
|
|
96
|
+
ArticleBody2_B: {
|
|
97
|
+
fontSize: 16,
|
|
98
|
+
lineHeight: 1.6,
|
|
88
99
|
fontWeight: 600
|
|
89
100
|
},
|
|
90
|
-
|
|
101
|
+
ArticleBody3: {
|
|
91
102
|
fontSize: 14,
|
|
92
|
-
lineHeight:
|
|
103
|
+
lineHeight: 1.6,
|
|
93
104
|
fontWeight: 400
|
|
94
105
|
},
|
|
95
|
-
|
|
96
|
-
fontSize:
|
|
97
|
-
lineHeight:
|
|
106
|
+
ArticleBody3_B: {
|
|
107
|
+
fontSize: 14,
|
|
108
|
+
lineHeight: 1.6,
|
|
98
109
|
fontWeight: 600
|
|
99
110
|
},
|
|
100
|
-
|
|
111
|
+
Caption1: {
|
|
101
112
|
fontSize: 12,
|
|
102
|
-
lineHeight:
|
|
103
|
-
fontWeight:
|
|
113
|
+
lineHeight: 1.35,
|
|
114
|
+
fontWeight: 500
|
|
104
115
|
},
|
|
105
|
-
|
|
116
|
+
Caption1_B: {
|
|
117
|
+
fontSize: 12,
|
|
118
|
+
lineHeight: 1.35,
|
|
119
|
+
fontWeight: 600
|
|
120
|
+
},
|
|
121
|
+
Caption2: {
|
|
106
122
|
fontSize: 10,
|
|
107
|
-
lineHeight:
|
|
123
|
+
lineHeight: 1.35,
|
|
124
|
+
fontWeight: 500
|
|
125
|
+
},
|
|
126
|
+
Caption2_B: {
|
|
127
|
+
fontSize: 10,
|
|
128
|
+
lineHeight: 1.35,
|
|
108
129
|
fontWeight: 600
|
|
109
130
|
}
|
|
110
|
-
}
|
|
131
|
+
};
|
|
111
132
|
|
|
112
133
|
/**
|
|
113
134
|
* {@link https://github.com/orioncactus/pretendard#html-1}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"const.cjs.js","sources":["../../../src/typography/const.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"const.cjs.js","sources":["../../../src/typography/const.ts"],"sourcesContent":["export const TYPOGRAPHY_STYLES = {\n // Title Style\n DisplayTitle1: {\n fontSize: 48,\n lineHeight: 1.3,\n fontWeight: 700,\n },\n DisplayTitle2: {\n fontSize: 40,\n lineHeight: 1.3,\n fontWeight: 700,\n },\n DisplayTitle3: {\n fontSize: 32,\n lineHeight: 1.3,\n fontWeight: 700,\n },\n Headline: {\n fontSize: 24,\n lineHeight: 1.3,\n fontWeight: 600,\n },\n Title1: {\n fontSize: 20,\n lineHeight: 1.3,\n fontWeight: 600,\n },\n Title2: {\n fontSize: 18,\n lineHeight: 1.3,\n fontWeight: 600,\n },\n SubTitle1: {\n fontSize: 16,\n lineHeight: 1.3,\n fontWeight: 600,\n },\n SubTitle2: {\n fontSize: 14,\n lineHeight: 1.3,\n fontWeight: 600,\n },\n DisplayBody: {\n fontSize: 20,\n lineHeight: 1.45,\n fontWeight: 400,\n },\n // Body Style\n UIBody1: {\n fontSize: 18,\n lineHeight: 1.45,\n fontWeight: 400,\n },\n UIBody1_B: {\n fontSize: 18,\n lineHeight: 1.45,\n fontWeight: 600,\n },\n UIBody2: {\n fontSize: 16,\n lineHeight: 1.45,\n fontWeight: 400,\n },\n UIBody2_B: {\n fontSize: 16,\n lineHeight: 1.45,\n fontWeight: 600,\n },\n UIBody3: {\n fontSize: 14,\n lineHeight: 1.45,\n fontWeight: 400,\n },\n UIBody3_B: {\n fontSize: 14,\n lineHeight: 1.45,\n fontWeight: 600,\n },\n ArticleBody1: {\n fontSize: 18,\n lineHeight: 1.55,\n fontWeight: 400,\n },\n ArticleBody1_B: {\n fontSize: 18,\n lineHeight: 1.55,\n fontWeight: 600,\n },\n ArticleBody2: {\n fontSize: 16,\n lineHeight: 1.6,\n fontWeight: 400,\n },\n ArticleBody2_B: {\n fontSize: 16,\n lineHeight: 1.6,\n fontWeight: 600,\n },\n ArticleBody3: {\n fontSize: 14,\n lineHeight: 1.6,\n fontWeight: 400,\n },\n ArticleBody3_B: {\n fontSize: 14,\n lineHeight: 1.6,\n fontWeight: 600,\n },\n Caption1: {\n fontSize: 12,\n lineHeight: 1.35,\n fontWeight: 500,\n },\n Caption1_B: {\n fontSize: 12,\n lineHeight: 1.35,\n fontWeight: 600,\n },\n Caption2: {\n fontSize: 10,\n lineHeight: 1.35,\n fontWeight: 500,\n },\n Caption2_B: {\n fontSize: 10,\n lineHeight: 1.35,\n fontWeight: 600,\n },\n} as const;\n\n/**\n * {@link https://github.com/orioncactus/pretendard#html-1}\n */\nexport const PRETENDARD_FONT_FAMILY =\n \"Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif\";\n"],"names":["TYPOGRAPHY_STYLES","DisplayTitle1","fontSize","lineHeight","fontWeight","DisplayTitle2","DisplayTitle3","Headline","Title1","Title2","SubTitle1","SubTitle2","DisplayBody","UIBody1","UIBody1_B","UIBody2","UIBody2_B","UIBody3","UIBody3_B","ArticleBody1","ArticleBody1_B","ArticleBody2","ArticleBody2_B","ArticleBody3","ArticleBody3_B","Caption1","Caption1_B","Caption2","Caption2_B","PRETENDARD_FONT_FAMILY"],"mappings":";;AAAO,IAAMA,iBAAiB,GAAG;AAC/B;AACAC,EAAAA,aAAa,EAAE;AACbC,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,GAAG;AACfC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDC,EAAAA,aAAa,EAAE;AACbH,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,GAAG;AACfC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDE,EAAAA,aAAa,EAAE;AACbJ,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,GAAG;AACfC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDG,EAAAA,QAAQ,EAAE;AACRL,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,GAAG;AACfC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDI,EAAAA,MAAM,EAAE;AACNN,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,GAAG;AACfC,IAAAA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U,EAAE;AACV1B,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,IAAI;AAChBC,IAAAA,UAAU,EAAE,GAAA;AACd,GAAA;AACF,EAAU;;AAEV;AACA;AACA;AACO,IAAMyB,sBAAsB,GACjC;;;;;"}
|
|
@@ -1,97 +1,127 @@
|
|
|
1
1
|
export declare const TYPOGRAPHY_STYLES: {
|
|
2
|
+
readonly DisplayTitle1: {
|
|
3
|
+
readonly fontSize: 48;
|
|
4
|
+
readonly lineHeight: 1.3;
|
|
5
|
+
readonly fontWeight: 700;
|
|
6
|
+
};
|
|
7
|
+
readonly DisplayTitle2: {
|
|
8
|
+
readonly fontSize: 40;
|
|
9
|
+
readonly lineHeight: 1.3;
|
|
10
|
+
readonly fontWeight: 700;
|
|
11
|
+
};
|
|
12
|
+
readonly DisplayTitle3: {
|
|
13
|
+
readonly fontSize: 32;
|
|
14
|
+
readonly lineHeight: 1.3;
|
|
15
|
+
readonly fontWeight: 700;
|
|
16
|
+
};
|
|
2
17
|
readonly Headline: {
|
|
3
18
|
readonly fontSize: 24;
|
|
4
|
-
readonly lineHeight:
|
|
19
|
+
readonly lineHeight: 1.3;
|
|
5
20
|
readonly fontWeight: 600;
|
|
6
21
|
};
|
|
7
22
|
readonly Title1: {
|
|
8
23
|
readonly fontSize: 20;
|
|
9
|
-
readonly lineHeight:
|
|
24
|
+
readonly lineHeight: 1.3;
|
|
10
25
|
readonly fontWeight: 600;
|
|
11
26
|
};
|
|
12
|
-
readonly Display: {
|
|
13
|
-
readonly fontSize: 20;
|
|
14
|
-
readonly lineHeight: 26;
|
|
15
|
-
readonly fontWeight: 400;
|
|
16
|
-
};
|
|
17
27
|
readonly Title2: {
|
|
18
|
-
readonly fontSize:
|
|
19
|
-
readonly lineHeight:
|
|
28
|
+
readonly fontSize: 18;
|
|
29
|
+
readonly lineHeight: 1.3;
|
|
20
30
|
readonly fontWeight: 600;
|
|
21
31
|
};
|
|
22
|
-
readonly
|
|
32
|
+
readonly SubTitle1: {
|
|
23
33
|
readonly fontSize: 16;
|
|
24
|
-
readonly lineHeight:
|
|
25
|
-
readonly fontWeight:
|
|
34
|
+
readonly lineHeight: 1.3;
|
|
35
|
+
readonly fontWeight: 600;
|
|
26
36
|
};
|
|
27
|
-
readonly
|
|
37
|
+
readonly SubTitle2: {
|
|
28
38
|
readonly fontSize: 14;
|
|
29
|
-
readonly lineHeight:
|
|
39
|
+
readonly lineHeight: 1.3;
|
|
30
40
|
readonly fontWeight: 600;
|
|
31
41
|
};
|
|
32
|
-
readonly
|
|
33
|
-
readonly fontSize:
|
|
34
|
-
readonly lineHeight:
|
|
42
|
+
readonly DisplayBody: {
|
|
43
|
+
readonly fontSize: 20;
|
|
44
|
+
readonly lineHeight: 1.45;
|
|
35
45
|
readonly fontWeight: 400;
|
|
36
46
|
};
|
|
37
|
-
readonly
|
|
38
|
-
readonly fontSize:
|
|
39
|
-
readonly lineHeight:
|
|
47
|
+
readonly UIBody1: {
|
|
48
|
+
readonly fontSize: 18;
|
|
49
|
+
readonly lineHeight: 1.45;
|
|
50
|
+
readonly fontWeight: 400;
|
|
51
|
+
};
|
|
52
|
+
readonly UIBody1_B: {
|
|
53
|
+
readonly fontSize: 18;
|
|
54
|
+
readonly lineHeight: 1.45;
|
|
40
55
|
readonly fontWeight: 600;
|
|
41
56
|
};
|
|
42
|
-
readonly
|
|
43
|
-
readonly fontSize:
|
|
44
|
-
readonly lineHeight:
|
|
57
|
+
readonly UIBody2: {
|
|
58
|
+
readonly fontSize: 16;
|
|
59
|
+
readonly lineHeight: 1.45;
|
|
45
60
|
readonly fontWeight: 400;
|
|
46
61
|
};
|
|
47
|
-
readonly
|
|
48
|
-
readonly fontSize:
|
|
49
|
-
readonly lineHeight:
|
|
62
|
+
readonly UIBody2_B: {
|
|
63
|
+
readonly fontSize: 16;
|
|
64
|
+
readonly lineHeight: 1.45;
|
|
50
65
|
readonly fontWeight: 600;
|
|
51
66
|
};
|
|
52
|
-
readonly
|
|
53
|
-
readonly fontSize:
|
|
54
|
-
readonly lineHeight:
|
|
55
|
-
readonly fontWeight:
|
|
67
|
+
readonly UIBody3: {
|
|
68
|
+
readonly fontSize: 14;
|
|
69
|
+
readonly lineHeight: 1.45;
|
|
70
|
+
readonly fontWeight: 400;
|
|
56
71
|
};
|
|
57
|
-
readonly
|
|
58
|
-
readonly fontSize:
|
|
59
|
-
readonly lineHeight:
|
|
72
|
+
readonly UIBody3_B: {
|
|
73
|
+
readonly fontSize: 14;
|
|
74
|
+
readonly lineHeight: 1.45;
|
|
60
75
|
readonly fontWeight: 600;
|
|
61
76
|
};
|
|
62
|
-
readonly
|
|
63
|
-
readonly fontSize:
|
|
64
|
-
readonly lineHeight:
|
|
77
|
+
readonly ArticleBody1: {
|
|
78
|
+
readonly fontSize: 18;
|
|
79
|
+
readonly lineHeight: 1.55;
|
|
80
|
+
readonly fontWeight: 400;
|
|
81
|
+
};
|
|
82
|
+
readonly ArticleBody1_B: {
|
|
83
|
+
readonly fontSize: 18;
|
|
84
|
+
readonly lineHeight: 1.55;
|
|
65
85
|
readonly fontWeight: 600;
|
|
66
86
|
};
|
|
67
|
-
readonly
|
|
87
|
+
readonly ArticleBody2: {
|
|
68
88
|
readonly fontSize: 16;
|
|
69
|
-
readonly lineHeight:
|
|
89
|
+
readonly lineHeight: 1.6;
|
|
70
90
|
readonly fontWeight: 400;
|
|
71
91
|
};
|
|
72
|
-
readonly
|
|
73
|
-
readonly fontSize:
|
|
74
|
-
readonly lineHeight:
|
|
92
|
+
readonly ArticleBody2_B: {
|
|
93
|
+
readonly fontSize: 16;
|
|
94
|
+
readonly lineHeight: 1.6;
|
|
75
95
|
readonly fontWeight: 600;
|
|
76
96
|
};
|
|
77
|
-
readonly
|
|
97
|
+
readonly ArticleBody3: {
|
|
78
98
|
readonly fontSize: 14;
|
|
79
|
-
readonly lineHeight:
|
|
99
|
+
readonly lineHeight: 1.6;
|
|
80
100
|
readonly fontWeight: 400;
|
|
81
101
|
};
|
|
82
|
-
readonly
|
|
83
|
-
readonly fontSize:
|
|
84
|
-
readonly lineHeight:
|
|
102
|
+
readonly ArticleBody3_B: {
|
|
103
|
+
readonly fontSize: 14;
|
|
104
|
+
readonly lineHeight: 1.6;
|
|
85
105
|
readonly fontWeight: 600;
|
|
86
106
|
};
|
|
87
|
-
readonly
|
|
107
|
+
readonly Caption1: {
|
|
88
108
|
readonly fontSize: 12;
|
|
89
|
-
readonly lineHeight:
|
|
90
|
-
readonly fontWeight:
|
|
109
|
+
readonly lineHeight: 1.35;
|
|
110
|
+
readonly fontWeight: 500;
|
|
111
|
+
};
|
|
112
|
+
readonly Caption1_B: {
|
|
113
|
+
readonly fontSize: 12;
|
|
114
|
+
readonly lineHeight: 1.35;
|
|
115
|
+
readonly fontWeight: 600;
|
|
116
|
+
};
|
|
117
|
+
readonly Caption2: {
|
|
118
|
+
readonly fontSize: 10;
|
|
119
|
+
readonly lineHeight: 1.35;
|
|
120
|
+
readonly fontWeight: 500;
|
|
91
121
|
};
|
|
92
|
-
readonly
|
|
122
|
+
readonly Caption2_B: {
|
|
93
123
|
readonly fontSize: 10;
|
|
94
|
-
readonly lineHeight:
|
|
124
|
+
readonly lineHeight: 1.35;
|
|
95
125
|
readonly fontWeight: 600;
|
|
96
126
|
};
|
|
97
127
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/typography/const.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/typography/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgIpB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,sBAAsB,iOAC6L,CAAC"}
|
|
@@ -1,107 +1,132 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
var TYPOGRAPHY_STYLES = {
|
|
2
|
+
// Title Style
|
|
3
|
+
DisplayTitle1: {
|
|
4
|
+
fontSize: 48,
|
|
5
|
+
lineHeight: 1.3,
|
|
6
|
+
fontWeight: 700
|
|
7
|
+
},
|
|
8
|
+
DisplayTitle2: {
|
|
9
|
+
fontSize: 40,
|
|
10
|
+
lineHeight: 1.3,
|
|
11
|
+
fontWeight: 700
|
|
12
|
+
},
|
|
13
|
+
DisplayTitle3: {
|
|
14
|
+
fontSize: 32,
|
|
15
|
+
lineHeight: 1.3,
|
|
16
|
+
fontWeight: 700
|
|
17
|
+
},
|
|
18
|
+
Headline: {
|
|
8
19
|
fontSize: 24,
|
|
9
|
-
lineHeight:
|
|
20
|
+
lineHeight: 1.3,
|
|
10
21
|
fontWeight: 600
|
|
11
22
|
},
|
|
12
|
-
|
|
23
|
+
Title1: {
|
|
13
24
|
fontSize: 20,
|
|
14
|
-
lineHeight:
|
|
25
|
+
lineHeight: 1.3,
|
|
15
26
|
fontWeight: 600
|
|
16
27
|
},
|
|
17
|
-
|
|
18
|
-
fontSize:
|
|
19
|
-
lineHeight:
|
|
28
|
+
Title2: {
|
|
29
|
+
fontSize: 18,
|
|
30
|
+
lineHeight: 1.3,
|
|
20
31
|
fontWeight: 600
|
|
21
32
|
},
|
|
22
|
-
|
|
33
|
+
SubTitle1: {
|
|
23
34
|
fontSize: 16,
|
|
24
|
-
lineHeight:
|
|
25
|
-
fontWeight:
|
|
35
|
+
lineHeight: 1.3,
|
|
36
|
+
fontWeight: 600
|
|
26
37
|
},
|
|
27
|
-
|
|
38
|
+
SubTitle2: {
|
|
28
39
|
fontSize: 14,
|
|
29
|
-
lineHeight:
|
|
40
|
+
lineHeight: 1.3,
|
|
30
41
|
fontWeight: 600
|
|
31
42
|
},
|
|
32
|
-
|
|
33
|
-
fontSize:
|
|
34
|
-
lineHeight:
|
|
43
|
+
DisplayBody: {
|
|
44
|
+
fontSize: 20,
|
|
45
|
+
lineHeight: 1.45,
|
|
35
46
|
fontWeight: 400
|
|
36
47
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
48
|
+
// Body Style
|
|
49
|
+
UIBody1: {
|
|
50
|
+
fontSize: 18,
|
|
51
|
+
lineHeight: 1.45,
|
|
52
|
+
fontWeight: 400
|
|
53
|
+
},
|
|
54
|
+
UIBody1_B: {
|
|
55
|
+
fontSize: 18,
|
|
56
|
+
lineHeight: 1.45,
|
|
40
57
|
fontWeight: 600
|
|
41
58
|
},
|
|
42
|
-
|
|
43
|
-
fontSize:
|
|
44
|
-
lineHeight:
|
|
59
|
+
UIBody2: {
|
|
60
|
+
fontSize: 16,
|
|
61
|
+
lineHeight: 1.45,
|
|
45
62
|
fontWeight: 400
|
|
46
63
|
},
|
|
47
|
-
|
|
48
|
-
fontSize:
|
|
49
|
-
lineHeight:
|
|
50
|
-
fontWeight: 600
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
var TYPOGRAPHY_STYLES = _objectSpread(_objectSpread({}, LEGACY_TYPOGRAPHY_STYLES), {}, {
|
|
54
|
-
Headline: {
|
|
55
|
-
fontSize: 24,
|
|
56
|
-
lineHeight: 34,
|
|
64
|
+
UIBody2_B: {
|
|
65
|
+
fontSize: 16,
|
|
66
|
+
lineHeight: 1.45,
|
|
57
67
|
fontWeight: 600
|
|
58
68
|
},
|
|
59
|
-
|
|
60
|
-
fontSize:
|
|
61
|
-
lineHeight:
|
|
69
|
+
UIBody3: {
|
|
70
|
+
fontSize: 14,
|
|
71
|
+
lineHeight: 1.45,
|
|
72
|
+
fontWeight: 400
|
|
73
|
+
},
|
|
74
|
+
UIBody3_B: {
|
|
75
|
+
fontSize: 14,
|
|
76
|
+
lineHeight: 1.45,
|
|
62
77
|
fontWeight: 600
|
|
63
78
|
},
|
|
64
|
-
|
|
65
|
-
fontSize:
|
|
66
|
-
lineHeight:
|
|
79
|
+
ArticleBody1: {
|
|
80
|
+
fontSize: 18,
|
|
81
|
+
lineHeight: 1.55,
|
|
67
82
|
fontWeight: 400
|
|
68
83
|
},
|
|
69
|
-
|
|
70
|
-
fontSize:
|
|
71
|
-
lineHeight:
|
|
84
|
+
ArticleBody1_B: {
|
|
85
|
+
fontSize: 18,
|
|
86
|
+
lineHeight: 1.55,
|
|
72
87
|
fontWeight: 600
|
|
73
88
|
},
|
|
74
|
-
|
|
89
|
+
ArticleBody2: {
|
|
75
90
|
fontSize: 16,
|
|
76
|
-
lineHeight:
|
|
91
|
+
lineHeight: 1.6,
|
|
77
92
|
fontWeight: 400
|
|
78
93
|
},
|
|
79
|
-
|
|
80
|
-
fontSize:
|
|
81
|
-
lineHeight:
|
|
94
|
+
ArticleBody2_B: {
|
|
95
|
+
fontSize: 16,
|
|
96
|
+
lineHeight: 1.6,
|
|
82
97
|
fontWeight: 600
|
|
83
98
|
},
|
|
84
|
-
|
|
99
|
+
ArticleBody3: {
|
|
85
100
|
fontSize: 14,
|
|
86
|
-
lineHeight:
|
|
101
|
+
lineHeight: 1.6,
|
|
87
102
|
fontWeight: 400
|
|
88
103
|
},
|
|
89
|
-
|
|
90
|
-
fontSize:
|
|
91
|
-
lineHeight:
|
|
104
|
+
ArticleBody3_B: {
|
|
105
|
+
fontSize: 14,
|
|
106
|
+
lineHeight: 1.6,
|
|
92
107
|
fontWeight: 600
|
|
93
108
|
},
|
|
94
|
-
|
|
109
|
+
Caption1: {
|
|
95
110
|
fontSize: 12,
|
|
96
|
-
lineHeight:
|
|
97
|
-
fontWeight:
|
|
111
|
+
lineHeight: 1.35,
|
|
112
|
+
fontWeight: 500
|
|
113
|
+
},
|
|
114
|
+
Caption1_B: {
|
|
115
|
+
fontSize: 12,
|
|
116
|
+
lineHeight: 1.35,
|
|
117
|
+
fontWeight: 600
|
|
98
118
|
},
|
|
99
|
-
|
|
119
|
+
Caption2: {
|
|
100
120
|
fontSize: 10,
|
|
101
|
-
lineHeight:
|
|
121
|
+
lineHeight: 1.35,
|
|
122
|
+
fontWeight: 500
|
|
123
|
+
},
|
|
124
|
+
Caption2_B: {
|
|
125
|
+
fontSize: 10,
|
|
126
|
+
lineHeight: 1.35,
|
|
102
127
|
fontWeight: 600
|
|
103
128
|
}
|
|
104
|
-
}
|
|
129
|
+
};
|
|
105
130
|
|
|
106
131
|
/**
|
|
107
132
|
* {@link https://github.com/orioncactus/pretendard#html-1}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"const.esm.js","sources":["../../../src/typography/const.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"const.esm.js","sources":["../../../src/typography/const.ts"],"sourcesContent":["export const TYPOGRAPHY_STYLES = {\n // Title Style\n DisplayTitle1: {\n fontSize: 48,\n lineHeight: 1.3,\n fontWeight: 700,\n },\n DisplayTitle2: {\n fontSize: 40,\n lineHeight: 1.3,\n fontWeight: 700,\n },\n DisplayTitle3: {\n fontSize: 32,\n lineHeight: 1.3,\n fontWeight: 700,\n },\n Headline: {\n fontSize: 24,\n lineHeight: 1.3,\n fontWeight: 600,\n },\n Title1: {\n fontSize: 20,\n lineHeight: 1.3,\n fontWeight: 600,\n },\n Title2: {\n fontSize: 18,\n lineHeight: 1.3,\n fontWeight: 600,\n },\n SubTitle1: {\n fontSize: 16,\n lineHeight: 1.3,\n fontWeight: 600,\n },\n SubTitle2: {\n fontSize: 14,\n lineHeight: 1.3,\n fontWeight: 600,\n },\n DisplayBody: {\n fontSize: 20,\n lineHeight: 1.45,\n fontWeight: 400,\n },\n // Body Style\n UIBody1: {\n fontSize: 18,\n lineHeight: 1.45,\n fontWeight: 400,\n },\n UIBody1_B: {\n fontSize: 18,\n lineHeight: 1.45,\n fontWeight: 600,\n },\n UIBody2: {\n fontSize: 16,\n lineHeight: 1.45,\n fontWeight: 400,\n },\n UIBody2_B: {\n fontSize: 16,\n lineHeight: 1.45,\n fontWeight: 600,\n },\n UIBody3: {\n fontSize: 14,\n lineHeight: 1.45,\n fontWeight: 400,\n },\n UIBody3_B: {\n fontSize: 14,\n lineHeight: 1.45,\n fontWeight: 600,\n },\n ArticleBody1: {\n fontSize: 18,\n lineHeight: 1.55,\n fontWeight: 400,\n },\n ArticleBody1_B: {\n fontSize: 18,\n lineHeight: 1.55,\n fontWeight: 600,\n },\n ArticleBody2: {\n fontSize: 16,\n lineHeight: 1.6,\n fontWeight: 400,\n },\n ArticleBody2_B: {\n fontSize: 16,\n lineHeight: 1.6,\n fontWeight: 600,\n },\n ArticleBody3: {\n fontSize: 14,\n lineHeight: 1.6,\n fontWeight: 400,\n },\n ArticleBody3_B: {\n fontSize: 14,\n lineHeight: 1.6,\n fontWeight: 600,\n },\n Caption1: {\n fontSize: 12,\n lineHeight: 1.35,\n fontWeight: 500,\n },\n Caption1_B: {\n fontSize: 12,\n lineHeight: 1.35,\n fontWeight: 600,\n },\n Caption2: {\n fontSize: 10,\n lineHeight: 1.35,\n fontWeight: 500,\n },\n Caption2_B: {\n fontSize: 10,\n lineHeight: 1.35,\n fontWeight: 600,\n },\n} as const;\n\n/**\n * {@link https://github.com/orioncactus/pretendard#html-1}\n */\nexport const PRETENDARD_FONT_FAMILY =\n \"Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif\";\n"],"names":["TYPOGRAPHY_STYLES","DisplayTitle1","fontSize","lineHeight","fontWeight","DisplayTitle2","DisplayTitle3","Headline","Title1","Title2","SubTitle1","SubTitle2","DisplayBody","UIBody1","UIBody1_B","UIBody2","UIBody2_B","UIBody3","UIBody3_B","ArticleBody1","ArticleBody1_B","ArticleBody2","ArticleBody2_B","ArticleBody3","ArticleBody3_B","Caption1","Caption1_B","Caption2","Caption2_B","PRETENDARD_FONT_FAMIL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A,YAAY,EAAE;AACZrB,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,GAAG;AACfC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDoB,EAAAA,cAAc,EAAE;AACdtB,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,GAAG;AACfC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDqB,EAAAA,QAAQ,EAAE;AACRvB,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,IAAI;AAChBC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDsB,EAAAA,UAAU,EAAE;AACVxB,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,IAAI;AAChBC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDuB,EAAAA,QAAQ,EAAE;AACRzB,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,IAAI;AAChBC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDwB,EAAAA,UAAU,EAAE;AACV1B,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,IAAI;AAChBC,IAAAA,UAAU,EAAE,GAAA;AACd,GAAA;AACF,EAAU;;AAEV;AACA;AACA;AACO,IAAMyB,sBAAsB,GACjC;;;;"}
|
|
@@ -19,7 +19,7 @@ var getTypographyStyles = function getTypographyStyles(typographyStyle) {
|
|
|
19
19
|
fontSize = _TYPOGRAPHY_STYLES$ty.fontSize,
|
|
20
20
|
lineHeight = _TYPOGRAPHY_STYLES$ty.lineHeight,
|
|
21
21
|
fontWeight = _TYPOGRAPHY_STYLES$ty.fontWeight;
|
|
22
|
-
return styledComponents.css(_templateObject || (_templateObject = _taggedTemplateLiteral__default.default(["\n font-family: ", ";\n font-size: ", "px;\n line-height: ", "
|
|
22
|
+
return styledComponents.css(_templateObject || (_templateObject = _taggedTemplateLiteral__default.default(["\n font-family: ", ";\n font-size: ", "px;\n line-height: ", ";\n font-weight: ", ";\n "])), _const.PRETENDARD_FONT_FAMILY, fontSize, lineHeight, fontWeight);
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.cjs.js","sources":["../../../src/typography/utils.ts"],"sourcesContent":["'use client';\n\nimport { css } from 'styled-components';\n\nimport { PRETENDARD_FONT_FAMILY, TYPOGRAPHY_STYLES } from './const';\nimport type { TypographyStyle } from './types';\n\n/**\n * 해당 스타일명에 해당하는 css 조각을 반환\n * @see TYPOGRAPHY_STYLES\n */\nexport const getTypographyStyles = (typographyStyle: TypographyStyle) => {\n const { fontSize, lineHeight, fontWeight } =\n TYPOGRAPHY_STYLES[typographyStyle];\n return css`\n font-family: ${PRETENDARD_FONT_FAMILY};\n font-size: ${fontSize}px;\n line-height: ${lineHeight}
|
|
1
|
+
{"version":3,"file":"utils.cjs.js","sources":["../../../src/typography/utils.ts"],"sourcesContent":["'use client';\n\nimport { css } from 'styled-components';\n\nimport { PRETENDARD_FONT_FAMILY, TYPOGRAPHY_STYLES } from './const';\nimport type { TypographyStyle } from './types';\n\n/**\n * 해당 스타일명에 해당하는 css 조각을 반환\n * @see TYPOGRAPHY_STYLES\n */\nexport const getTypographyStyles = (typographyStyle: TypographyStyle) => {\n const { fontSize, lineHeight, fontWeight } =\n TYPOGRAPHY_STYLES[typographyStyle];\n return css`\n font-family: ${PRETENDARD_FONT_FAMILY};\n font-size: ${fontSize}px;\n line-height: ${lineHeight};\n font-weight: ${fontWeight};\n `;\n};\n\n/**\n * 말줄임표 표시 (1줄)\n *\n * white-space: nowrap; \\\n * overflow: hidden; \\\n * text-overflow: ellipsis;\n */\nexport const textEllipsis = css`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\n/**\n * 말줄임표 표시\n *\n * line = 1 인 경우, \\\n * white-space: nowrap; \\\n * overflow: hidden; \\\n * text-overflow: ellipsis;\n *\n * line > 1 인 경우, \\\n * overflow: hidden; \\\n * text-overflow: ellipsis; \\\n * display: -webkit-box; \\\n * -webkit-box-orient: vertical; \\\n * -webkit-line-clamp: ${line};\n */\nexport const ellipsis = (line = 1) => {\n if (line === 1) {\n return textEllipsis;\n }\n\n return css`\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ${line};\n `;\n};\n"],"names":[],"mappings":";;;;;;;;;;;AAAa;AAOb;AACA;AACA;AACA;;AAEE;;;;AAEA;AAMF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;;AAMP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACsC;;AAElC;AACF;;AASF;;;;"}
|
|
@@ -13,7 +13,7 @@ var getTypographyStyles = function getTypographyStyles(typographyStyle) {
|
|
|
13
13
|
fontSize = _TYPOGRAPHY_STYLES$ty.fontSize,
|
|
14
14
|
lineHeight = _TYPOGRAPHY_STYLES$ty.lineHeight,
|
|
15
15
|
fontWeight = _TYPOGRAPHY_STYLES$ty.fontWeight;
|
|
16
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-family: ", ";\n font-size: ", "px;\n line-height: ", "
|
|
16
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-family: ", ";\n font-size: ", "px;\n line-height: ", ";\n font-weight: ", ";\n "])), PRETENDARD_FONT_FAMILY, fontSize, lineHeight, fontWeight);
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.esm.js","sources":["../../../src/typography/utils.ts"],"sourcesContent":["'use client';\n\nimport { css } from 'styled-components';\n\nimport { PRETENDARD_FONT_FAMILY, TYPOGRAPHY_STYLES } from './const';\nimport type { TypographyStyle } from './types';\n\n/**\n * 해당 스타일명에 해당하는 css 조각을 반환\n * @see TYPOGRAPHY_STYLES\n */\nexport const getTypographyStyles = (typographyStyle: TypographyStyle) => {\n const { fontSize, lineHeight, fontWeight } =\n TYPOGRAPHY_STYLES[typographyStyle];\n return css`\n font-family: ${PRETENDARD_FONT_FAMILY};\n font-size: ${fontSize}px;\n line-height: ${lineHeight}
|
|
1
|
+
{"version":3,"file":"utils.esm.js","sources":["../../../src/typography/utils.ts"],"sourcesContent":["'use client';\n\nimport { css } from 'styled-components';\n\nimport { PRETENDARD_FONT_FAMILY, TYPOGRAPHY_STYLES } from './const';\nimport type { TypographyStyle } from './types';\n\n/**\n * 해당 스타일명에 해당하는 css 조각을 반환\n * @see TYPOGRAPHY_STYLES\n */\nexport const getTypographyStyles = (typographyStyle: TypographyStyle) => {\n const { fontSize, lineHeight, fontWeight } =\n TYPOGRAPHY_STYLES[typographyStyle];\n return css`\n font-family: ${PRETENDARD_FONT_FAMILY};\n font-size: ${fontSize}px;\n line-height: ${lineHeight};\n font-weight: ${fontWeight};\n `;\n};\n\n/**\n * 말줄임표 표시 (1줄)\n *\n * white-space: nowrap; \\\n * overflow: hidden; \\\n * text-overflow: ellipsis;\n */\nexport const textEllipsis = css`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\n/**\n * 말줄임표 표시\n *\n * line = 1 인 경우, \\\n * white-space: nowrap; \\\n * overflow: hidden; \\\n * text-overflow: ellipsis;\n *\n * line > 1 인 경우, \\\n * overflow: hidden; \\\n * text-overflow: ellipsis; \\\n * display: -webkit-box; \\\n * -webkit-box-orient: vertical; \\\n * -webkit-line-clamp: ${line};\n */\nexport const ellipsis = (line = 1) => {\n if (line === 1) {\n return textEllipsis;\n }\n\n return css`\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ${line};\n `;\n};\n"],"names":[],"mappings":";;;;;AAAa;AAOb;AACA;AACA;AACA;;AAEE;;;;AAEA;AAMF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;;AAMP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACsC;;AAElC;AACF;;AASF;;"}
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ const ColorChip = ({
|
|
|
31
31
|
style={{ padding: 8, display: 'flex', justifyContent: 'space-between' }}
|
|
32
32
|
>
|
|
33
33
|
<Typography variant="Title1">{colorName}</Typography>
|
|
34
|
-
<Typography variant="
|
|
34
|
+
<Typography variant="UIBody2" color={colors.contents100}>
|
|
35
35
|
{getHexFromRuiCssVariable({
|
|
36
36
|
colorVariable: color as RUIColorVariable,
|
|
37
37
|
theme,
|
package/src/typography/const.ts
CHANGED
|
@@ -1,102 +1,129 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export const TYPOGRAPHY_STYLES = {
|
|
2
|
+
// Title Style
|
|
3
|
+
DisplayTitle1: {
|
|
4
|
+
fontSize: 48,
|
|
5
|
+
lineHeight: 1.3,
|
|
6
|
+
fontWeight: 700,
|
|
7
|
+
},
|
|
8
|
+
DisplayTitle2: {
|
|
9
|
+
fontSize: 40,
|
|
10
|
+
lineHeight: 1.3,
|
|
11
|
+
fontWeight: 700,
|
|
12
|
+
},
|
|
13
|
+
DisplayTitle3: {
|
|
14
|
+
fontSize: 32,
|
|
15
|
+
lineHeight: 1.3,
|
|
16
|
+
fontWeight: 700,
|
|
17
|
+
},
|
|
18
|
+
Headline: {
|
|
4
19
|
fontSize: 24,
|
|
5
|
-
lineHeight:
|
|
20
|
+
lineHeight: 1.3,
|
|
6
21
|
fontWeight: 600,
|
|
7
22
|
},
|
|
8
|
-
|
|
23
|
+
Title1: {
|
|
9
24
|
fontSize: 20,
|
|
10
|
-
lineHeight:
|
|
25
|
+
lineHeight: 1.3,
|
|
11
26
|
fontWeight: 600,
|
|
12
27
|
},
|
|
13
|
-
|
|
14
|
-
fontSize:
|
|
15
|
-
lineHeight:
|
|
28
|
+
Title2: {
|
|
29
|
+
fontSize: 18,
|
|
30
|
+
lineHeight: 1.3,
|
|
16
31
|
fontWeight: 600,
|
|
17
32
|
},
|
|
18
|
-
|
|
33
|
+
SubTitle1: {
|
|
19
34
|
fontSize: 16,
|
|
20
|
-
lineHeight:
|
|
21
|
-
fontWeight:
|
|
35
|
+
lineHeight: 1.3,
|
|
36
|
+
fontWeight: 600,
|
|
22
37
|
},
|
|
23
|
-
|
|
38
|
+
SubTitle2: {
|
|
24
39
|
fontSize: 14,
|
|
25
|
-
lineHeight:
|
|
40
|
+
lineHeight: 1.3,
|
|
26
41
|
fontWeight: 600,
|
|
27
42
|
},
|
|
28
|
-
|
|
29
|
-
fontSize:
|
|
30
|
-
lineHeight:
|
|
43
|
+
DisplayBody: {
|
|
44
|
+
fontSize: 20,
|
|
45
|
+
lineHeight: 1.45,
|
|
31
46
|
fontWeight: 400,
|
|
32
47
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
48
|
+
// Body Style
|
|
49
|
+
UIBody1: {
|
|
50
|
+
fontSize: 18,
|
|
51
|
+
lineHeight: 1.45,
|
|
52
|
+
fontWeight: 400,
|
|
53
|
+
},
|
|
54
|
+
UIBody1_B: {
|
|
55
|
+
fontSize: 18,
|
|
56
|
+
lineHeight: 1.45,
|
|
36
57
|
fontWeight: 600,
|
|
37
58
|
},
|
|
38
|
-
|
|
39
|
-
fontSize:
|
|
40
|
-
lineHeight:
|
|
59
|
+
UIBody2: {
|
|
60
|
+
fontSize: 16,
|
|
61
|
+
lineHeight: 1.45,
|
|
41
62
|
fontWeight: 400,
|
|
42
63
|
},
|
|
43
|
-
|
|
44
|
-
fontSize:
|
|
45
|
-
lineHeight:
|
|
64
|
+
UIBody2_B: {
|
|
65
|
+
fontSize: 16,
|
|
66
|
+
lineHeight: 1.45,
|
|
46
67
|
fontWeight: 600,
|
|
47
68
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
Headline: {
|
|
53
|
-
fontSize: 24,
|
|
54
|
-
lineHeight: 34,
|
|
55
|
-
fontWeight: 600,
|
|
69
|
+
UIBody3: {
|
|
70
|
+
fontSize: 14,
|
|
71
|
+
lineHeight: 1.45,
|
|
72
|
+
fontWeight: 400,
|
|
56
73
|
},
|
|
57
|
-
|
|
58
|
-
fontSize:
|
|
59
|
-
lineHeight:
|
|
74
|
+
UIBody3_B: {
|
|
75
|
+
fontSize: 14,
|
|
76
|
+
lineHeight: 1.45,
|
|
60
77
|
fontWeight: 600,
|
|
61
78
|
},
|
|
62
|
-
|
|
63
|
-
fontSize:
|
|
64
|
-
lineHeight:
|
|
79
|
+
ArticleBody1: {
|
|
80
|
+
fontSize: 18,
|
|
81
|
+
lineHeight: 1.55,
|
|
65
82
|
fontWeight: 400,
|
|
66
83
|
},
|
|
67
|
-
|
|
68
|
-
fontSize:
|
|
69
|
-
lineHeight:
|
|
84
|
+
ArticleBody1_B: {
|
|
85
|
+
fontSize: 18,
|
|
86
|
+
lineHeight: 1.55,
|
|
70
87
|
fontWeight: 600,
|
|
71
88
|
},
|
|
72
|
-
|
|
89
|
+
ArticleBody2: {
|
|
73
90
|
fontSize: 16,
|
|
74
|
-
lineHeight:
|
|
91
|
+
lineHeight: 1.6,
|
|
75
92
|
fontWeight: 400,
|
|
76
93
|
},
|
|
77
|
-
|
|
78
|
-
fontSize:
|
|
79
|
-
lineHeight:
|
|
94
|
+
ArticleBody2_B: {
|
|
95
|
+
fontSize: 16,
|
|
96
|
+
lineHeight: 1.6,
|
|
80
97
|
fontWeight: 600,
|
|
81
98
|
},
|
|
82
|
-
|
|
99
|
+
ArticleBody3: {
|
|
83
100
|
fontSize: 14,
|
|
84
|
-
lineHeight:
|
|
101
|
+
lineHeight: 1.6,
|
|
85
102
|
fontWeight: 400,
|
|
86
103
|
},
|
|
87
|
-
|
|
88
|
-
fontSize:
|
|
89
|
-
lineHeight:
|
|
104
|
+
ArticleBody3_B: {
|
|
105
|
+
fontSize: 14,
|
|
106
|
+
lineHeight: 1.6,
|
|
90
107
|
fontWeight: 600,
|
|
91
108
|
},
|
|
92
|
-
|
|
109
|
+
Caption1: {
|
|
93
110
|
fontSize: 12,
|
|
94
|
-
lineHeight:
|
|
95
|
-
fontWeight:
|
|
111
|
+
lineHeight: 1.35,
|
|
112
|
+
fontWeight: 500,
|
|
113
|
+
},
|
|
114
|
+
Caption1_B: {
|
|
115
|
+
fontSize: 12,
|
|
116
|
+
lineHeight: 1.35,
|
|
117
|
+
fontWeight: 600,
|
|
118
|
+
},
|
|
119
|
+
Caption2: {
|
|
120
|
+
fontSize: 10,
|
|
121
|
+
lineHeight: 1.35,
|
|
122
|
+
fontWeight: 500,
|
|
96
123
|
},
|
|
97
|
-
|
|
124
|
+
Caption2_B: {
|
|
98
125
|
fontSize: 10,
|
|
99
|
-
lineHeight:
|
|
126
|
+
lineHeight: 1.35,
|
|
100
127
|
fontWeight: 600,
|
|
101
128
|
},
|
|
102
129
|
} as const;
|
package/src/typography/utils.ts
CHANGED
|
@@ -15,7 +15,7 @@ export const getTypographyStyles = (typographyStyle: TypographyStyle) => {
|
|
|
15
15
|
return css`
|
|
16
16
|
font-family: ${PRETENDARD_FONT_FAMILY};
|
|
17
17
|
font-size: ${fontSize}px;
|
|
18
|
-
line-height: ${lineHeight}
|
|
18
|
+
line-height: ${lineHeight};
|
|
19
19
|
font-weight: ${fontWeight};
|
|
20
20
|
`;
|
|
21
21
|
};
|