@rescui/typography 0.17.0 → 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 -22
- package/lib/create-text-cn.js +6 -3
- package/lib/index-moduled.css +187 -125
- package/lib/index-moduled.p.module.css.js +120 -115
- package/lib/index.css +76 -14
- package/lib/index.d.ts +2 -2
- package/lib/index.js +1 -1
- package/lib/mixins.p.css +100 -31
- package/lib/mixins.pcss +100 -31
- package/lib/public-api.p.css +227 -55
- package/lib/public-api.pcss +227 -55
- package/package.json +4 -4
|
@@ -1,118 +1,123 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"rs-reset-letter-spacing": "_rs-reset-letter-
|
|
3
|
-
"rs-typography_theme_light": "_rs-
|
|
4
|
-
"rs-typography_theme_dark": "_rs-
|
|
5
|
-
"rs-text_hardness_hard": "_rs-
|
|
6
|
-
"rs-text_hardness_average": "_rs-
|
|
7
|
-
"rs-text_hardness_pale": "_rs-
|
|
8
|
-
"rs-
|
|
9
|
-
"rs-
|
|
10
|
-
"rs-
|
|
11
|
-
"rs-
|
|
12
|
-
"rs-
|
|
13
|
-
"rs-
|
|
14
|
-
"rs-
|
|
15
|
-
"rs-
|
|
16
|
-
"rs-
|
|
17
|
-
"rs-
|
|
18
|
-
"rs-
|
|
19
|
-
"rs-
|
|
20
|
-
"rs-
|
|
21
|
-
"rs-
|
|
22
|
-
"rs-
|
|
23
|
-
"rs-
|
|
24
|
-
"rs-
|
|
25
|
-
"rs-
|
|
26
|
-
"rs-
|
|
27
|
-
"rs-
|
|
28
|
-
"rs-
|
|
29
|
-
"rs-
|
|
30
|
-
"rs-
|
|
31
|
-
"rs-
|
|
32
|
-
"rs-
|
|
33
|
-
"rs-
|
|
34
|
-
"rs-
|
|
35
|
-
"rs-
|
|
36
|
-
"rs-
|
|
37
|
-
"rs-
|
|
38
|
-
"rs-
|
|
39
|
-
"rs-
|
|
40
|
-
"rs-
|
|
41
|
-
"rs-
|
|
42
|
-
"rs-
|
|
43
|
-
"rs-
|
|
44
|
-
"rs-
|
|
45
|
-
"rs-
|
|
46
|
-
"rs-
|
|
47
|
-
"rs-
|
|
48
|
-
"rs-
|
|
49
|
-
"rs-
|
|
50
|
-
"rs-
|
|
51
|
-
"rs-
|
|
52
|
-
"rs-
|
|
53
|
-
"rs-
|
|
54
|
-
"rs-
|
|
55
|
-
"rs-
|
|
56
|
-
"rs-
|
|
57
|
-
"rs-
|
|
58
|
-
"rs-
|
|
59
|
-
"rs-
|
|
60
|
-
"rs-
|
|
61
|
-
"rs-
|
|
62
|
-
"rs-
|
|
63
|
-
"rs-
|
|
64
|
-
"rs-
|
|
65
|
-
"rs-
|
|
66
|
-
"rs-
|
|
67
|
-
"rs-
|
|
68
|
-
"rs-
|
|
69
|
-
"rs-
|
|
70
|
-
"rs-
|
|
71
|
-
"rs-
|
|
72
|
-
"rs-
|
|
73
|
-
"rs-text-
|
|
74
|
-
"rs-text-
|
|
75
|
-
"rs-text-
|
|
76
|
-
"rs-
|
|
77
|
-
"rs-text-
|
|
78
|
-
"rs-text-
|
|
79
|
-
"rs-text-
|
|
80
|
-
"rs-text-
|
|
81
|
-
"rs-text-
|
|
82
|
-
"rs-text-
|
|
83
|
-
"rs-text-
|
|
84
|
-
"rs-
|
|
85
|
-
"rs-
|
|
86
|
-
"rs-
|
|
87
|
-
"rs-
|
|
88
|
-
"rs-
|
|
89
|
-
"rs-
|
|
90
|
-
"rs-
|
|
91
|
-
"rs-
|
|
92
|
-
"rs-
|
|
93
|
-
"rs-
|
|
94
|
-
"rs-
|
|
95
|
-
"rs-
|
|
96
|
-
"rs-
|
|
97
|
-
"rs-
|
|
98
|
-
"rs-
|
|
99
|
-
"rs-
|
|
100
|
-
"rs-
|
|
101
|
-
"rs-
|
|
102
|
-
"rs-
|
|
103
|
-
"rs-
|
|
104
|
-
"rs-
|
|
105
|
-
"rs-
|
|
106
|
-
"rs-
|
|
107
|
-
"rs-
|
|
108
|
-
"rs-
|
|
109
|
-
"rs-
|
|
110
|
-
"rs-
|
|
111
|
-
"rs-
|
|
112
|
-
"rs-
|
|
113
|
-
"rs-
|
|
114
|
-
"rs-
|
|
115
|
-
"rs-
|
|
116
|
-
"rs-
|
|
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"
|
|
117
122
|
};
|
|
118
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,7 +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
764
|
color:var(--_rs-typography-base-color);
|
|
703
765
|
}
|
|
704
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{
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createTextCn, useTextStyles, textCn } from './create-text-cn';
|
|
2
|
-
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';
|
|
3
3
|
export * from './text-color-utils';
|
package/lib/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './index-moduled.css';
|
|
2
|
-
export { createTextCn, textCn, useTextStyles } from './create-text-cn.js';
|
|
2
|
+
export { colorCn, createTextCn, textCn, useTextStyles } from './create-text-cn.js';
|
|
3
3
|
export { resetTypographyColorVariables, typographyDark, typographyLight } from './text-color-utils.js';
|