@stn-uiux/pub-ui 0.1.75 → 0.1.77

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.
@@ -0,0 +1,166 @@
1
+ @charset "utf-8";
2
+ /**
3
+ * STN Design System — Typography Utilities (Type Scale)
4
+ * Foundation › Typography 문서의 Type Scale 이름을 그대로 클래스화합니다.
5
+ * 모든 값은 --stn-text-* / --stn-font-* 시맨틱 토큰만 사용합니다.
6
+ *
7
+ * 사용: <h1 class="stn-text-heading-1">페이지 제목</h1>
8
+ * 수정자: .stn-text-weight-*, .stn-text-color-*, .stn-text-truncate
9
+ */
10
+
11
+ /* ── Display ───────────────────────────────────────────── */
12
+ .stn-text-display-1 {
13
+ font-family: var(--stn-font-display);
14
+ font-size: var(--stn-text-display-xlarge-size);
15
+ font-weight: var(--stn-text-display-xlarge-weight);
16
+ line-height: var(--stn-text-display-xlarge-line-height);
17
+ }
18
+ .stn-text-display-2 {
19
+ font-family: var(--stn-font-display);
20
+ font-size: var(--stn-text-display-large-size);
21
+ font-weight: var(--stn-text-display-large-weight);
22
+ line-height: var(--stn-text-display-large-line-height);
23
+ }
24
+ .stn-text-display-3 {
25
+ font-family: var(--stn-font-display);
26
+ font-size: var(--stn-text-display-medium-size);
27
+ font-weight: var(--stn-text-display-medium-weight);
28
+ line-height: var(--stn-text-display-medium-line-height);
29
+ }
30
+
31
+ /* ── Heading ───────────────────────────────────────────── */
32
+ .stn-text-heading-1 {
33
+ font-family: var(--stn-font-display);
34
+ font-size: var(--stn-text-heading-large-size);
35
+ font-weight: var(--stn-text-heading-large-weight);
36
+ line-height: var(--stn-text-heading-large-line-height);
37
+ }
38
+ .stn-text-heading-2 {
39
+ font-family: var(--stn-font-display);
40
+ font-size: var(--stn-text-heading-medium-size);
41
+ font-weight: var(--stn-text-heading-medium-weight);
42
+ line-height: var(--stn-text-heading-medium-line-height);
43
+ }
44
+ .stn-text-heading-3 {
45
+ font-family: var(--stn-font-display);
46
+ font-size: var(--stn-text-heading-small-size);
47
+ font-weight: var(--stn-text-heading-small-weight);
48
+ line-height: var(--stn-text-heading-small-line-height);
49
+ }
50
+
51
+ /* ── Title ─────────────────────────────────────────────── */
52
+ .stn-text-title-1 {
53
+ font-family: var(--stn-font-body);
54
+ font-size: var(--stn-text-title-large-size);
55
+ font-weight: var(--stn-text-title-large-weight);
56
+ line-height: var(--stn-text-title-large-line-height);
57
+ }
58
+ .stn-text-title-2 {
59
+ font-family: var(--stn-font-body);
60
+ font-size: var(--stn-text-title-medium-size);
61
+ font-weight: var(--stn-text-title-medium-weight);
62
+ line-height: var(--stn-text-title-medium-line-height);
63
+ }
64
+ .stn-text-title-3 {
65
+ font-family: var(--stn-font-body);
66
+ font-size: var(--stn-text-title-small-size);
67
+ font-weight: var(--stn-text-title-small-weight);
68
+ line-height: var(--stn-text-title-small-line-height);
69
+ }
70
+
71
+ /* ── Body ──────────────────────────────────────────────── */
72
+ .stn-text-body-1 {
73
+ font-family: var(--stn-font-body);
74
+ font-size: var(--stn-text-body-large-size);
75
+ font-weight: var(--stn-text-body-large-weight);
76
+ line-height: var(--stn-text-body-large-line-height);
77
+ }
78
+ .stn-text-body-2 {
79
+ font-family: var(--stn-font-body);
80
+ font-size: var(--stn-text-body-medium-large-size);
81
+ font-weight: var(--stn-text-body-medium-large-weight);
82
+ line-height: var(--stn-text-body-medium-large-line-height);
83
+ }
84
+ .stn-text-body-3 {
85
+ font-family: var(--stn-font-body);
86
+ font-size: var(--stn-text-body-medium-size);
87
+ font-weight: var(--stn-text-body-medium-weight);
88
+ line-height: var(--stn-text-body-medium-line-height);
89
+ }
90
+ .stn-text-body-small {
91
+ font-family: var(--stn-font-body);
92
+ font-size: var(--stn-text-body-small-size);
93
+ font-weight: var(--stn-text-body-small-weight);
94
+ line-height: var(--stn-text-body-small-line-height);
95
+ }
96
+
97
+ /* ── Label ─────────────────────────────────────────────── */
98
+ .stn-text-label-1 {
99
+ font-family: var(--stn-font-body);
100
+ font-size: var(--stn-text-label-large-size);
101
+ font-weight: var(--stn-text-label-large-weight);
102
+ line-height: var(--stn-text-label-large-line-height);
103
+ }
104
+ .stn-text-label-2 {
105
+ font-family: var(--stn-font-body);
106
+ font-size: var(--stn-text-label-medium-size);
107
+ font-weight: var(--stn-text-label-medium-weight);
108
+ line-height: var(--stn-text-label-medium-line-height);
109
+ }
110
+ .stn-text-label-3 {
111
+ font-family: var(--stn-font-body);
112
+ font-size: var(--stn-text-label-small-size);
113
+ font-weight: var(--stn-text-label-small-weight);
114
+ line-height: var(--stn-text-label-small-line-height);
115
+ }
116
+ .stn-text-label-4 {
117
+ font-family: var(--stn-font-body);
118
+ font-size: var(--stn-text-label-xsmall-size);
119
+ font-weight: var(--stn-text-label-xsmall-weight);
120
+ line-height: var(--stn-text-label-xsmall-line-height);
121
+ }
122
+
123
+ /* ── Caption ───────────────────────────────────────────── */
124
+ .stn-text-caption-large {
125
+ font-family: var(--stn-font-body);
126
+ font-size: var(--stn-text-caption-large-size);
127
+ font-weight: var(--stn-text-caption-large-weight);
128
+ line-height: var(--stn-text-caption-large-line-height);
129
+ }
130
+ .stn-text-caption {
131
+ font-family: var(--stn-font-body);
132
+ font-size: var(--stn-text-caption-medium-size);
133
+ font-weight: var(--stn-text-caption-medium-weight);
134
+ line-height: var(--stn-text-caption-medium-line-height);
135
+ }
136
+
137
+ /* ── Weight modifiers ──────────────────────────────────── */
138
+ .stn-text-weight-regular { font-weight: var(--stn-font-weight-regular); }
139
+ .stn-text-weight-medium { font-weight: var(--stn-font-weight-medium); }
140
+ .stn-text-weight-semibold { font-weight: var(--stn-font-weight-semibold); }
141
+ .stn-text-weight-bold { font-weight: var(--stn-font-weight-bold); }
142
+
143
+ /* ── Color modifiers ───────────────────────────────────── */
144
+ .stn-text-color-primary { color: var(--stn-text-primary); }
145
+ .stn-text-color-secondary { color: var(--stn-text-secondary); }
146
+ .stn-text-color-tertiary { color: var(--stn-text-tertiary); }
147
+ .stn-text-color-muted { color: var(--stn-text-muted); }
148
+ .stn-text-color-success { color: var(--stn-feedback-success); }
149
+ .stn-text-color-error { color: var(--stn-feedback-error); }
150
+ .stn-text-color-info { color: var(--stn-feedback-info); }
151
+ .stn-text-color-critical { color: var(--stn-grade-critical); }
152
+ .stn-text-color-major { color: var(--stn-grade-major); }
153
+ .stn-text-color-minor { color: var(--stn-grade-minor); }
154
+ .stn-text-color-warning { color: var(--stn-grade-warning); }
155
+
156
+ /* ── Layout helpers ────────────────────────────────────── */
157
+ .stn-text-truncate {
158
+ overflow: hidden;
159
+ text-overflow: ellipsis;
160
+ white-space: nowrap;
161
+ }
162
+ .stn-text-reset-margin { margin: 0; }
163
+ .stn-text-numeric {
164
+ font-family: var(--stn-font-number);
165
+ font-variant-numeric: tabular-nums;
166
+ }
@@ -26,6 +26,7 @@
26
26
 
27
27
  /* --- 2. Utils & Reset --- */
28
28
  @import './utils/reset.css';
29
+ @import './foundations/stn-typography.css';
29
30
 
30
31
  /* --- 3. Layouts (Pure Screen Skeletons) --- */
31
32
  @import './layouts/stn-layout.css';
@@ -9,13 +9,14 @@
9
9
  :root {
10
10
  --stn-font-display: var(--stn-font-family-pretendard);
11
11
  --stn-font-body: var(--stn-font-family-pretendard);
12
- --stn-text-display-xlarge-size: var(--stn-font-size-60);
12
+ --stn-font-number: var(--stn-font-family-pretendard);
13
+ --stn-text-display-xlarge-size: var(--stn-font-size-52);
13
14
  --stn-text-display-xlarge-weight: var(--stn-font-weight-bold);
14
15
  --stn-text-display-xlarge-line-height: var(--stn-line-height-reading-3);
15
- --stn-text-display-large-size: var(--stn-font-size-40);
16
+ --stn-text-display-large-size: var(--stn-font-size-44);
16
17
  --stn-text-display-large-weight: var(--stn-font-weight-bold);
17
18
  --stn-text-display-large-line-height: var(--stn-line-height-reading-3);
18
- --stn-text-display-medium-size: var(--stn-font-size-36);
19
+ --stn-text-display-medium-size: var(--stn-font-size-40);
19
20
  --stn-text-display-medium-weight: var(--stn-font-weight-bold);
20
21
  --stn-text-display-medium-line-height: var(--stn-line-height-default);
21
22
  --stn-text-heading-large-size: var(--stn-font-size-32);
@@ -39,6 +40,9 @@
39
40
  --stn-text-body-large-size: var(--stn-font-size-16);
40
41
  --stn-text-body-large-weight: var(--stn-font-weight-regular);
41
42
  --stn-text-body-large-line-height: var(--stn-line-height-default);
43
+ --stn-text-body-medium-large-size: var(--stn-font-size-15);
44
+ --stn-text-body-medium-large-weight: var(--stn-font-weight-regular);
45
+ --stn-text-body-medium-large-line-height: var(--stn-line-height-default);
42
46
  --stn-text-body-medium-size: var(--stn-font-size-14);
43
47
  --stn-text-body-medium-weight: var(--stn-font-weight-regular);
44
48
  --stn-text-body-medium-line-height: var(--stn-line-height-default);
@@ -9,9 +9,9 @@
9
9
  :root {
10
10
  --stn-font-family-pretendard: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
11
11
  --stn-font-size-base: 16px;
12
- --stn-font-size-60: calc(var(--stn-font-size-base) * 60 / 16);
13
- --stn-font-size-45: calc(var(--stn-font-size-base) * 45 / 16);
14
- --stn-font-size-42: calc(var(--stn-font-size-base) * 42 / 16);
12
+ --stn-font-size-52: calc(var(--stn-font-size-base) * 52 / 16);
13
+ --stn-font-size-48: calc(var(--stn-font-size-base) * 48 / 16);
14
+ --stn-font-size-44: calc(var(--stn-font-size-base) * 44 / 16);
15
15
  --stn-font-size-40: calc(var(--stn-font-size-base) * 40 / 16);
16
16
  --stn-font-size-36: calc(var(--stn-font-size-base) * 36 / 16);
17
17
  --stn-font-size-32: calc(var(--stn-font-size-base) * 32 / 16);