@rescui/typography 0.16.4 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/create-text-cn.d.ts +31 -24
- package/lib/create-text-cn.js +10 -6
- package/lib/index-moduled.css +1314 -0
- package/lib/index-moduled.p.module.css.js +123 -0
- package/lib/index.css +89 -78
- package/lib/index.d.ts +2 -3
- package/lib/index.js +2 -2
- package/lib/mixins.p.css +255 -347
- package/lib/mixins.pcss +255 -347
- package/lib/public-api.p.css +228 -141
- package/lib/public-api.pcss +228 -141
- package/package.json +6 -6
- package/lib/any.d.ts +0 -1
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
var styles = {
|
|
2
|
+
"rs-reset-letter-spacing": "_rs-reset-letter-spacing_mixd87_1",
|
|
3
|
+
"rs-typography_theme_light": "_rs-typography_theme_light_mixd87_1",
|
|
4
|
+
"rs-typography_theme_dark": "_rs-typography_theme_dark_mixd87_1",
|
|
5
|
+
"rs-text_hardness_hard": "_rs-text_hardness_hard_mixd87_1",
|
|
6
|
+
"rs-text_hardness_average": "_rs-text_hardness_average_mixd87_1",
|
|
7
|
+
"rs-text_hardness_pale": "_rs-text_hardness_pale_mixd87_1",
|
|
8
|
+
"rs-text_hardness_auto": "_rs-text_hardness_auto_mixd87_1",
|
|
9
|
+
"rs-text_color_hard": "_rs-text_color_hard_mixd87_1",
|
|
10
|
+
"rs-text_color_average": "_rs-text_color_average_mixd87_1",
|
|
11
|
+
"rs-text_color_pale": "_rs-text_color_pale_mixd87_1",
|
|
12
|
+
"rs-text_color_base": "_rs-text_color_base_mixd87_1",
|
|
13
|
+
"rs-digits-1": "_rs-digits-1_mixd87_1",
|
|
14
|
+
"rs-digits-2": "_rs-digits-2_mixd87_1",
|
|
15
|
+
"rs-super-hero": "_rs-super-hero_mixd87_1",
|
|
16
|
+
"rs-middle-hero": "_rs-middle-hero_mixd87_1",
|
|
17
|
+
"rs-hero": "_rs-hero_mixd87_1",
|
|
18
|
+
"rs-h1": "_rs-h1_mixd87_1",
|
|
19
|
+
"rs-h2": "_rs-h2_mixd87_1",
|
|
20
|
+
"rs-h3": "_rs-h3_mixd87_1",
|
|
21
|
+
"rs-h4": "_rs-h4_mixd87_1",
|
|
22
|
+
"rs-h5": "_rs-h5_mixd87_1",
|
|
23
|
+
"rs-subtitle-1": "_rs-subtitle-1_mixd87_1",
|
|
24
|
+
"rs-subtitle-2": "_rs-subtitle-2_mixd87_1",
|
|
25
|
+
"rs-overline": "_rs-overline_mixd87_1",
|
|
26
|
+
"rs-text-1": "_rs-text-1_mixd87_1",
|
|
27
|
+
"rs-text-2": "_rs-text-2_mixd87_1",
|
|
28
|
+
"rs-text-3": "_rs-text-3_mixd87_1",
|
|
29
|
+
"rs-digits-1_theme_light": "_rs-digits-1_theme_light_mixd87_1",
|
|
30
|
+
"rs-digits-2_theme_light": "_rs-digits-2_theme_light_mixd87_1",
|
|
31
|
+
"rs-super-hero_theme_light": "_rs-super-hero_theme_light_mixd87_1",
|
|
32
|
+
"rs-middle-hero_theme_light": "_rs-middle-hero_theme_light_mixd87_1",
|
|
33
|
+
"rs-hero_theme_light": "_rs-hero_theme_light_mixd87_1",
|
|
34
|
+
"rs-h1_theme_light": "_rs-h1_theme_light_mixd87_1",
|
|
35
|
+
"rs-h2_theme_light": "_rs-h2_theme_light_mixd87_1",
|
|
36
|
+
"rs-h3_theme_light": "_rs-h3_theme_light_mixd87_1",
|
|
37
|
+
"rs-h4_theme_light": "_rs-h4_theme_light_mixd87_1",
|
|
38
|
+
"rs-h5_theme_light": "_rs-h5_theme_light_mixd87_1",
|
|
39
|
+
"rs-subtitle-1_theme_light": "_rs-subtitle-1_theme_light_mixd87_1",
|
|
40
|
+
"rs-subtitle-2_theme_light": "_rs-subtitle-2_theme_light_mixd87_1",
|
|
41
|
+
"rs-text-1_theme_light": "_rs-text-1_theme_light_mixd87_1",
|
|
42
|
+
"rs-text-2_theme_light": "_rs-text-2_theme_light_mixd87_1",
|
|
43
|
+
"rs-text-3_theme_light": "_rs-text-3_theme_light_mixd87_1",
|
|
44
|
+
"rs-overline_theme_light": "_rs-overline_theme_light_mixd87_1",
|
|
45
|
+
"rs-digits-1_theme_dark": "_rs-digits-1_theme_dark_mixd87_1",
|
|
46
|
+
"rs-digits-2_theme_dark": "_rs-digits-2_theme_dark_mixd87_1",
|
|
47
|
+
"rs-super-hero_theme_dark": "_rs-super-hero_theme_dark_mixd87_1",
|
|
48
|
+
"rs-middle-hero_theme_dark": "_rs-middle-hero_theme_dark_mixd87_1",
|
|
49
|
+
"rs-hero_theme_dark": "_rs-hero_theme_dark_mixd87_1",
|
|
50
|
+
"rs-h1_theme_dark": "_rs-h1_theme_dark_mixd87_1",
|
|
51
|
+
"rs-h2_theme_dark": "_rs-h2_theme_dark_mixd87_1",
|
|
52
|
+
"rs-h3_theme_dark": "_rs-h3_theme_dark_mixd87_1",
|
|
53
|
+
"rs-h4_theme_dark": "_rs-h4_theme_dark_mixd87_1",
|
|
54
|
+
"rs-h5_theme_dark": "_rs-h5_theme_dark_mixd87_1",
|
|
55
|
+
"rs-subtitle-1_theme_dark": "_rs-subtitle-1_theme_dark_mixd87_1",
|
|
56
|
+
"rs-subtitle-2_theme_dark": "_rs-subtitle-2_theme_dark_mixd87_1",
|
|
57
|
+
"rs-text-1_theme_dark": "_rs-text-1_theme_dark_mixd87_1",
|
|
58
|
+
"rs-text-2_theme_dark": "_rs-text-2_theme_dark_mixd87_1",
|
|
59
|
+
"rs-text-3_theme_dark": "_rs-text-3_theme_dark_mixd87_1",
|
|
60
|
+
"rs-overline_theme_dark": "_rs-overline_theme_dark_mixd87_1",
|
|
61
|
+
"rs-digits-1_theme_auto": "_rs-digits-1_theme_auto_mixd87_1",
|
|
62
|
+
"rs-digits-2_theme_auto": "_rs-digits-2_theme_auto_mixd87_1",
|
|
63
|
+
"rs-super-hero_theme_auto": "_rs-super-hero_theme_auto_mixd87_1",
|
|
64
|
+
"rs-middle-hero_theme_auto": "_rs-middle-hero_theme_auto_mixd87_1",
|
|
65
|
+
"rs-hero_theme_auto": "_rs-hero_theme_auto_mixd87_1",
|
|
66
|
+
"rs-h1_theme_auto": "_rs-h1_theme_auto_mixd87_1",
|
|
67
|
+
"rs-h2_theme_auto": "_rs-h2_theme_auto_mixd87_1",
|
|
68
|
+
"rs-h3_theme_auto": "_rs-h3_theme_auto_mixd87_1",
|
|
69
|
+
"rs-h4_theme_auto": "_rs-h4_theme_auto_mixd87_1",
|
|
70
|
+
"rs-h5_theme_auto": "_rs-h5_theme_auto_mixd87_1",
|
|
71
|
+
"rs-subtitle-1_theme_auto": "_rs-subtitle-1_theme_auto_mixd87_1",
|
|
72
|
+
"rs-subtitle-2_theme_auto": "_rs-subtitle-2_theme_auto_mixd87_1",
|
|
73
|
+
"rs-text-1_theme_auto": "_rs-text-1_theme_auto_mixd87_1",
|
|
74
|
+
"rs-text-2_theme_auto": "_rs-text-2_theme_auto_mixd87_1",
|
|
75
|
+
"rs-text-3_theme_auto": "_rs-text-3_theme_auto_mixd87_1",
|
|
76
|
+
"rs-overline_theme_auto": "_rs-overline_theme_auto_mixd87_1",
|
|
77
|
+
"rs-text-1_hardness_hard": "_rs-text-1_hardness_hard_mixd87_1",
|
|
78
|
+
"rs-text-2_hardness_hard": "_rs-text-2_hardness_hard_mixd87_1",
|
|
79
|
+
"rs-text-3_hardness_hard": "_rs-text-3_hardness_hard_mixd87_1",
|
|
80
|
+
"rs-text-1_hardness_average": "_rs-text-1_hardness_average_mixd87_1",
|
|
81
|
+
"rs-text-2_hardness_average": "_rs-text-2_hardness_average_mixd87_1",
|
|
82
|
+
"rs-text-3_hardness_average": "_rs-text-3_hardness_average_mixd87_1",
|
|
83
|
+
"rs-text-1_hardness_pale": "_rs-text-1_hardness_pale_mixd87_1",
|
|
84
|
+
"rs-text-2_hardness_pale": "_rs-text-2_hardness_pale_mixd87_1",
|
|
85
|
+
"rs-text-3_hardness_pale": "_rs-text-3_hardness_pale_mixd87_1",
|
|
86
|
+
"rs-text-1_paragraph-offset-auto": "_rs-text-1_paragraph-offset-auto_mixd87_1",
|
|
87
|
+
"rs-text-2_paragraph-offset-auto": "_rs-text-2_paragraph-offset-auto_mixd87_1",
|
|
88
|
+
"rs-text-3_paragraph-offset-auto": "_rs-text-3_paragraph-offset-auto_mixd87_1",
|
|
89
|
+
"rs-text_paragraph-offset-auto": "_rs-text_paragraph-offset-auto_mixd87_1",
|
|
90
|
+
"rs-ul": "_rs-ul_mixd87_1",
|
|
91
|
+
"rs-ol": "_rs-ol_mixd87_1",
|
|
92
|
+
"rs-ul_offset-items_8": "_rs-ul_offset-items_8_mixd87_1",
|
|
93
|
+
"rs-ol_offset-items_8": "_rs-ol_offset-items_8_mixd87_1",
|
|
94
|
+
"rs-ul_offset-items_12": "_rs-ul_offset-items_12_mixd87_1",
|
|
95
|
+
"rs-ol_offset-items_12": "_rs-ol_offset-items_12_mixd87_1",
|
|
96
|
+
"rs-ul_offset-items_16": "_rs-ul_offset-items_16_mixd87_1",
|
|
97
|
+
"rs-ol_offset-items_16": "_rs-ol_offset-items_16_mixd87_1",
|
|
98
|
+
"rs-ul_offset-items_24": "_rs-ul_offset-items_24_mixd87_1",
|
|
99
|
+
"rs-ol_offset-items_24": "_rs-ol_offset-items_24_mixd87_1",
|
|
100
|
+
"rs-ol_alpha_lower": "_rs-ol_alpha_lower_mixd87_1",
|
|
101
|
+
"rs-ol_alpha_upper": "_rs-ol_alpha_upper_mixd87_1",
|
|
102
|
+
"rs-code": "_rs-code_mixd87_1",
|
|
103
|
+
"rs-pre": "_rs-pre_mixd87_1",
|
|
104
|
+
"rs-link_mode_classic": "_rs-link_mode_classic_mixd87_1",
|
|
105
|
+
"rs-link_mode_rock": "_rs-link_mode_rock_mixd87_1",
|
|
106
|
+
"rs-link_mode_standalone": "_rs-link_mode_standalone_mixd87_1",
|
|
107
|
+
"rs-link_mode_clear": "_rs-link_mode_clear_mixd87_1",
|
|
108
|
+
"rs-link_hardness_hard": "_rs-link_hardness_hard_mixd87_1",
|
|
109
|
+
"rs-link_hardness_average": "_rs-link_hardness_average_mixd87_1",
|
|
110
|
+
"rs-link_hardness_pale": "_rs-link_hardness_pale_mixd87_1",
|
|
111
|
+
"rs-link_external": "_rs-link_external_mixd87_1",
|
|
112
|
+
"rs-link": "_rs-link_mixd87_1",
|
|
113
|
+
"rs-code_theme_light": "_rs-code_theme_light_mixd87_1",
|
|
114
|
+
"rs-pre_theme_light": "_rs-pre_theme_light_mixd87_1",
|
|
115
|
+
"rs-link_theme_light": "_rs-link_theme_light_mixd87_1",
|
|
116
|
+
"rs-code_theme_dark": "_rs-code_theme_dark_mixd87_1",
|
|
117
|
+
"rs-pre_theme_dark": "_rs-pre_theme_dark_mixd87_1",
|
|
118
|
+
"rs-link_theme_dark": "_rs-link_theme_dark_mixd87_1",
|
|
119
|
+
"rs-code_theme_auto": "_rs-code_theme_auto_mixd87_1",
|
|
120
|
+
"rs-pre_theme_auto": "_rs-pre_theme_auto_mixd87_1",
|
|
121
|
+
"rs-link_theme_auto": "_rs-link_theme_auto_mixd87_1"
|
|
122
|
+
};
|
|
123
|
+
export { styles as default };
|
package/lib/index.css
CHANGED
|
@@ -25,6 +25,30 @@
|
|
|
25
25
|
rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.5)
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
|
+
.rs-text_hardness_auto{
|
|
29
|
+
--_rs-typography-hardness-color:initial;
|
|
30
|
+
}
|
|
31
|
+
.rs-text_color_hard{
|
|
32
|
+
color:var(
|
|
33
|
+
--rs-color-hard,
|
|
34
|
+
rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227))
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
.rs-text_color_average{
|
|
38
|
+
color:var(
|
|
39
|
+
--rs-color-average,
|
|
40
|
+
rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.7)
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
.rs-text_color_pale{
|
|
44
|
+
color:var(
|
|
45
|
+
--rs-color-pale,
|
|
46
|
+
rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.5)
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
.rs-text_color_base{
|
|
50
|
+
color:var(--_rs-typography-base-color);
|
|
51
|
+
}
|
|
28
52
|
.rs-digits-1{
|
|
29
53
|
--_rs-typography-letter-spacing:-0.005em;
|
|
30
54
|
--_rs-typography-text-transform:initial;
|
|
@@ -48,9 +72,12 @@
|
|
|
48
72
|
71px
|
|
49
73
|
);
|
|
50
74
|
--_rs-typography-base-color:var(
|
|
75
|
+
--_rs-typography-hardness-color,
|
|
76
|
+
var(
|
|
51
77
|
--rs-color-hard,
|
|
52
78
|
rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227))
|
|
53
|
-
)
|
|
79
|
+
)
|
|
80
|
+
);
|
|
54
81
|
--_rs-typography-text-auto-offset:0;
|
|
55
82
|
--_rs-typography-ul-list-li-padding-left:initial;
|
|
56
83
|
--_rs-typography-ol-list-li-padding-left:initial;
|
|
@@ -90,9 +117,12 @@
|
|
|
90
117
|
44px
|
|
91
118
|
);
|
|
92
119
|
--_rs-typography-base-color:var(
|
|
120
|
+
--_rs-typography-hardness-color,
|
|
121
|
+
var(
|
|
93
122
|
--rs-color-hard,
|
|
94
123
|
rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227))
|
|
95
|
-
)
|
|
124
|
+
)
|
|
125
|
+
);
|
|
96
126
|
--_rs-typography-text-auto-offset:0;
|
|
97
127
|
--_rs-typography-ul-list-li-padding-left:initial;
|
|
98
128
|
--_rs-typography-ol-list-li-padding-left:initial;
|
|
@@ -124,9 +154,12 @@
|
|
|
124
154
|
142px
|
|
125
155
|
);
|
|
126
156
|
--_rs-typography-base-color:var(
|
|
157
|
+
--_rs-typography-heading-hardness-color,
|
|
158
|
+
var(
|
|
127
159
|
--rs-color-hard,
|
|
128
160
|
rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227))
|
|
129
|
-
)
|
|
161
|
+
)
|
|
162
|
+
);
|
|
130
163
|
--_rs-typography-text-auto-offset:0;
|
|
131
164
|
--_rs-typography-ul-list-li-padding-left:initial;
|
|
132
165
|
--_rs-typography-ol-list-li-padding-left:initial;
|
|
@@ -188,9 +221,12 @@
|
|
|
188
221
|
92px
|
|
189
222
|
);
|
|
190
223
|
--_rs-typography-base-color:var(
|
|
224
|
+
--_rs-typography-heading-hardness-color,
|
|
225
|
+
var(
|
|
191
226
|
--rs-color-hard,
|
|
192
227
|
rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227))
|
|
193
|
-
)
|
|
228
|
+
)
|
|
229
|
+
);
|
|
194
230
|
--_rs-typography-text-auto-offset:0;
|
|
195
231
|
--_rs-typography-ul-list-li-padding-left:initial;
|
|
196
232
|
--_rs-typography-ol-list-li-padding-left:initial;
|
|
@@ -234,9 +270,12 @@
|
|
|
234
270
|
72px
|
|
235
271
|
);
|
|
236
272
|
--_rs-typography-base-color:var(
|
|
273
|
+
--_rs-typography-heading-hardness-color,
|
|
274
|
+
var(
|
|
237
275
|
--rs-color-hard,
|
|
238
276
|
rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227))
|
|
239
|
-
)
|
|
277
|
+
)
|
|
278
|
+
);
|
|
240
279
|
--_rs-typography-text-auto-offset:0;
|
|
241
280
|
--_rs-typography-ul-list-li-padding-left:initial;
|
|
242
281
|
--_rs-typography-ol-list-li-padding-left:initial;
|
|
@@ -277,9 +316,12 @@
|
|
|
277
316
|
);
|
|
278
317
|
--_rs-typography-line-height:var(--rs-h1-line-height, 49px);
|
|
279
318
|
--_rs-typography-base-color:var(
|
|
319
|
+
--_rs-typography-heading-hardness-color,
|
|
320
|
+
var(
|
|
280
321
|
--rs-color-hard,
|
|
281
322
|
rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227))
|
|
282
|
-
)
|
|
323
|
+
)
|
|
324
|
+
);
|
|
283
325
|
--_rs-typography-text-auto-offset:0;
|
|
284
326
|
--_rs-typography-ul-list-li-padding-left:initial;
|
|
285
327
|
--_rs-typography-ol-list-li-padding-left:initial;
|
|
@@ -318,9 +360,12 @@
|
|
|
318
360
|
);
|
|
319
361
|
--_rs-typography-line-height:var(--rs-h2-line-height, 42px);
|
|
320
362
|
--_rs-typography-base-color:var(
|
|
363
|
+
--_rs-typography-heading-hardness-color,
|
|
364
|
+
var(
|
|
321
365
|
--rs-color-hard,
|
|
322
366
|
rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227))
|
|
323
|
-
)
|
|
367
|
+
)
|
|
368
|
+
);
|
|
324
369
|
--_rs-typography-text-auto-offset:0;
|
|
325
370
|
--_rs-typography-ul-list-li-padding-left:initial;
|
|
326
371
|
--_rs-typography-ol-list-li-padding-left:initial;
|
|
@@ -358,9 +403,12 @@
|
|
|
358
403
|
);
|
|
359
404
|
--_rs-typography-line-height:var(--rs-h3-line-height, 28px);
|
|
360
405
|
--_rs-typography-base-color:var(
|
|
406
|
+
--_rs-typography-heading-hardness-color,
|
|
407
|
+
var(
|
|
361
408
|
--rs-color-hard,
|
|
362
409
|
rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227))
|
|
363
|
-
)
|
|
410
|
+
)
|
|
411
|
+
);
|
|
364
412
|
--_rs-typography-text-auto-offset:0;
|
|
365
413
|
--_rs-typography-ul-list-li-padding-left:initial;
|
|
366
414
|
--_rs-typography-ol-list-li-padding-left:initial;
|
|
@@ -386,9 +434,12 @@
|
|
|
386
434
|
);
|
|
387
435
|
--_rs-typography-line-height:var(--rs-h4-line-height, 24px);
|
|
388
436
|
--_rs-typography-base-color:var(
|
|
437
|
+
--_rs-typography-heading-hardness-color,
|
|
438
|
+
var(
|
|
389
439
|
--rs-color-hard,
|
|
390
440
|
rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227))
|
|
391
|
-
)
|
|
441
|
+
)
|
|
442
|
+
);
|
|
392
443
|
--_rs-typography-text-auto-offset:0;
|
|
393
444
|
--_rs-typography-ul-list-li-padding-left:initial;
|
|
394
445
|
--_rs-typography-ol-list-li-padding-left:initial;
|
|
@@ -414,9 +465,12 @@
|
|
|
414
465
|
);
|
|
415
466
|
--_rs-typography-line-height:var(--rs-h5-line-height, 20px);
|
|
416
467
|
--_rs-typography-base-color:var(
|
|
468
|
+
--_rs-typography-heading-hardness-color,
|
|
469
|
+
var(
|
|
417
470
|
--rs-color-hard,
|
|
418
471
|
rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227))
|
|
419
|
-
)
|
|
472
|
+
)
|
|
473
|
+
);
|
|
420
474
|
--_rs-typography-text-auto-offset:0;
|
|
421
475
|
--_rs-typography-ul-list-li-padding-left:initial;
|
|
422
476
|
--_rs-typography-ol-list-li-padding-left:initial;
|
|
@@ -448,9 +502,12 @@
|
|
|
448
502
|
49px
|
|
449
503
|
);
|
|
450
504
|
--_rs-typography-base-color:var(
|
|
505
|
+
--_rs-typography-hardness-color,
|
|
506
|
+
var(
|
|
451
507
|
--rs-color-hard,
|
|
452
508
|
rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227))
|
|
453
|
-
)
|
|
509
|
+
)
|
|
510
|
+
);
|
|
454
511
|
--_rs-typography-text-auto-offset:0;
|
|
455
512
|
--_rs-typography-ul-list-li-padding-left:initial;
|
|
456
513
|
--_rs-typography-ol-list-li-padding-left:initial;
|
|
@@ -494,9 +551,12 @@
|
|
|
494
551
|
39px
|
|
495
552
|
);
|
|
496
553
|
--_rs-typography-base-color:var(
|
|
554
|
+
--_rs-typography-hardness-color,
|
|
555
|
+
var(
|
|
497
556
|
--rs-color-hard,
|
|
498
557
|
rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227))
|
|
499
|
-
)
|
|
558
|
+
)
|
|
559
|
+
);
|
|
500
560
|
--_rs-typography-text-auto-offset:0;
|
|
501
561
|
--_rs-typography-ul-list-li-padding-left:initial;
|
|
502
562
|
--_rs-typography-ol-list-li-padding-left:initial;
|
|
@@ -540,9 +600,12 @@
|
|
|
540
600
|
18px
|
|
541
601
|
);
|
|
542
602
|
--_rs-typography-base-color:var(
|
|
603
|
+
--_rs-typography-heading-hardness-color,
|
|
604
|
+
var(
|
|
543
605
|
--rs-color-hard,
|
|
544
606
|
rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227))
|
|
545
|
-
)
|
|
607
|
+
)
|
|
608
|
+
);
|
|
546
609
|
--_rs-typography-text-auto-offset:0px;
|
|
547
610
|
--_rs-typography-ul-list-li-padding-left:initial;
|
|
548
611
|
--_rs-typography-ol-list-li-padding-left:initial;
|
|
@@ -698,58 +761,6 @@
|
|
|
698
761
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
699
762
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
700
763
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
701
|
-
}
|
|
702
|
-
.rs-digits-1 > p:not(:nth-child(1)),
|
|
703
|
-
.rs-digits-1 > pre:not(:nth-child(1)),
|
|
704
|
-
.rs-digits-2 > p:not(:nth-child(1)),
|
|
705
|
-
.rs-digits-2 > pre:not(:nth-child(1)),
|
|
706
|
-
.rs-super-hero > p:not(:nth-child(1)),
|
|
707
|
-
.rs-super-hero > pre:not(:nth-child(1)),
|
|
708
|
-
.rs-middle-hero > p:not(:nth-child(1)),
|
|
709
|
-
.rs-middle-hero > pre:not(:nth-child(1)),
|
|
710
|
-
.rs-hero > p:not(:nth-child(1)),
|
|
711
|
-
.rs-hero > pre:not(:nth-child(1)),
|
|
712
|
-
.rs-h1 > p:not(:nth-child(1)),
|
|
713
|
-
.rs-h1 > pre:not(:nth-child(1)),
|
|
714
|
-
.rs-h2 > p:not(:nth-child(1)),
|
|
715
|
-
.rs-h2 > pre:not(:nth-child(1)),
|
|
716
|
-
.rs-h3 > p:not(:nth-child(1)),
|
|
717
|
-
.rs-h3 > pre:not(:nth-child(1)),
|
|
718
|
-
.rs-h4 > p:not(:nth-child(1)),
|
|
719
|
-
.rs-h4 > pre:not(:nth-child(1)),
|
|
720
|
-
.rs-h5 > p:not(:nth-child(1)),
|
|
721
|
-
.rs-h5 > pre:not(:nth-child(1)),
|
|
722
|
-
.rs-subtitle-1 > p:not(:nth-child(1)),
|
|
723
|
-
.rs-subtitle-1 > pre:not(:nth-child(1)),
|
|
724
|
-
.rs-subtitle-2 > p:not(:nth-child(1)),
|
|
725
|
-
.rs-subtitle-2 > pre:not(:nth-child(1)),
|
|
726
|
-
.rs-text-1 > p:not(:nth-child(1)),
|
|
727
|
-
.rs-text-1 > pre:not(:nth-child(1)),
|
|
728
|
-
.rs-text-2 > p:not(:nth-child(1)),
|
|
729
|
-
.rs-text-2 > pre:not(:nth-child(1)),
|
|
730
|
-
.rs-text-3 > p:not(:nth-child(1)),
|
|
731
|
-
.rs-text-3 > pre:not(:nth-child(1)),
|
|
732
|
-
.rs-overline > p:not(:nth-child(1)),
|
|
733
|
-
.rs-overline > pre:not(:nth-child(1)){
|
|
734
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
735
|
-
}
|
|
736
|
-
.rs-digits-1,
|
|
737
|
-
.rs-digits-2,
|
|
738
|
-
.rs-super-hero,
|
|
739
|
-
.rs-middle-hero,
|
|
740
|
-
.rs-hero,
|
|
741
|
-
.rs-h1,
|
|
742
|
-
.rs-h2,
|
|
743
|
-
.rs-h3,
|
|
744
|
-
.rs-h4,
|
|
745
|
-
.rs-h5,
|
|
746
|
-
.rs-subtitle-1,
|
|
747
|
-
.rs-subtitle-2,
|
|
748
|
-
.rs-text-1,
|
|
749
|
-
.rs-text-2,
|
|
750
|
-
.rs-text-3,
|
|
751
|
-
.rs-overline{
|
|
752
|
-
|
|
753
764
|
color:var(--_rs-typography-base-color);
|
|
754
765
|
}
|
|
755
766
|
.rs-digits-1_theme_light, .rs-digits-2_theme_light, .rs-super-hero_theme_light, .rs-middle-hero_theme_light, .rs-hero_theme_light, .rs-h1_theme_light, .rs-h2_theme_light, .rs-h3_theme_light, .rs-h4_theme_light, .rs-h5_theme_light, .rs-subtitle-1_theme_light, .rs-subtitle-2_theme_light, .rs-text-1_theme_light, .rs-text-2_theme_light, .rs-text-3_theme_light, .rs-overline_theme_light{
|
|
@@ -779,18 +790,18 @@
|
|
|
779
790
|
rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.5)
|
|
780
791
|
);
|
|
781
792
|
}
|
|
782
|
-
.rs-text-1_paragraph-offset-auto
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
)
|
|
793
|
+
.rs-text-1_paragraph-offset-auto > p:not(:nth-child(1)),
|
|
794
|
+
.rs-text-1_paragraph-offset-auto > pre:not(:nth-child(1)),
|
|
795
|
+
.rs-text-2_paragraph-offset-auto > p:not(:nth-child(1)),
|
|
796
|
+
.rs-text-2_paragraph-offset-auto > pre:not(:nth-child(1)),
|
|
797
|
+
.rs-text-3_paragraph-offset-auto > p:not(:nth-child(1)),
|
|
798
|
+
.rs-text-3_paragraph-offset-auto > pre:not(:nth-child(1)){
|
|
799
|
+
margin-top:var(--_rs-typography-text-auto-offset, 0);
|
|
800
|
+
}
|
|
801
|
+
.rs-text_paragraph-offset-auto > p:not(:nth-child(1)),
|
|
802
|
+
.rs-text_paragraph-offset-auto > pre:not(:nth-child(1)){
|
|
803
|
+
margin-top:var(--_rs-typography-text-auto-offset, 0);
|
|
787
804
|
}
|
|
788
|
-
.rs-text_paragraph-offset-auto{
|
|
789
|
-
--_rs-typography-auto-offset-or-initial:var(
|
|
790
|
-
--_rs-typography-text-auto-offset,
|
|
791
|
-
0
|
|
792
|
-
);
|
|
793
|
-
}
|
|
794
805
|
.rs-ul{
|
|
795
806
|
--_rs-typography-list-li-content-base:'\2022';
|
|
796
807
|
--_rs-typography-list-counter:initial;
|
|
@@ -964,14 +975,14 @@
|
|
|
964
975
|
line-height:24px;
|
|
965
976
|
}
|
|
966
977
|
.rs-pre > code,
|
|
967
|
-
.rs-pre >
|
|
978
|
+
.rs-pre > [class*='rs-code']{
|
|
968
979
|
border:0;
|
|
969
980
|
|
|
970
981
|
white-space:pre;
|
|
971
982
|
word-break:normal;
|
|
972
983
|
}
|
|
973
984
|
.rs-pre code,
|
|
974
|
-
.rs-pre
|
|
985
|
+
.rs-pre [class*='rs-code']{
|
|
975
986
|
display:inline;
|
|
976
987
|
overflow:visible;
|
|
977
988
|
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
export type { TextsParams, LinkParams, OrderedListParams, UnorderedListParams, Texts, Link, OrderedList, UnorderedList, Others, Hardness, Mode, Alpha, OffsetItems } from './create-text-cn';
|
|
1
|
+
export { createTextCn, useTextStyles, textCn, colorCn } from './create-text-cn';
|
|
2
|
+
export type { TextsParams, LinkParams, OrderedListParams, UnorderedListParams, SubtitlesAndDigitsParams, Texts, Link, OrderedList, UnorderedList, SubtitlesAndDigits, Others, Type, Hardness, Mode, Alpha, OffsetItems, TypeToParams } from './create-text-cn';
|
|
4
3
|
export * from './text-color-utils';
|
package/lib/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
export { createTextCn, textCn, useTextStyles } from './create-text-cn.js';
|
|
1
|
+
import './index-moduled.css';
|
|
2
|
+
export { colorCn, createTextCn, textCn, useTextStyles } from './create-text-cn.js';
|
|
3
3
|
export { resetTypographyColorVariables, typographyDark, typographyLight } from './text-color-utils.js';
|