@transferwise/neptune-css 0.0.0-experimental-ab10359 → 0.0.0-experimental-7614895

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.
@@ -1093,6 +1093,59 @@ a,
1093
1093
  font-family: "Wise Sans", Inter, sans-serif;
1094
1094
  font-synthesis: none;
1095
1095
  }
1096
+ :lang(ja) .display-1,
1097
+ :lang(ja) .display-2,
1098
+ :lang(ja) .display-3,
1099
+ :lang(ja) .display-4,
1100
+ :lang(ja) .display-5,
1101
+ :lang(ja) .np-text-display-extra-large,
1102
+ :lang(ja) .np-text-display-large,
1103
+ :lang(ja) .np-text-display-medium,
1104
+ :lang(ja) .np-text-display-small,
1105
+ :lang(id) .display-1,
1106
+ :lang(id) .display-2,
1107
+ :lang(id) .display-3,
1108
+ :lang(id) .display-4,
1109
+ :lang(id) .display-5,
1110
+ :lang(id) .np-text-display-extra-large,
1111
+ :lang(id) .np-text-display-large,
1112
+ :lang(id) .np-text-display-medium,
1113
+ :lang(id) .np-text-display-small,
1114
+ :lang(th) .display-1,
1115
+ :lang(th) .display-2,
1116
+ :lang(th) .display-3,
1117
+ :lang(th) .display-4,
1118
+ :lang(th) .display-5,
1119
+ :lang(th) .np-text-display-extra-large,
1120
+ :lang(th) .np-text-display-large,
1121
+ :lang(th) .np-text-display-medium,
1122
+ :lang(th) .np-text-display-small,
1123
+ :lang(zh-CN) .display-1,
1124
+ :lang(zh-CN) .display-2,
1125
+ :lang(zh-CN) .display-3,
1126
+ :lang(zh-CN) .display-4,
1127
+ :lang(zh-CN) .display-5,
1128
+ :lang(zh-CN) .np-text-display-extra-large,
1129
+ :lang(zh-CN) .np-text-display-large,
1130
+ :lang(zh-CN) .np-text-display-medium,
1131
+ :lang(zh-CN) .np-text-display-small,
1132
+ :lang(zh-HK) .display-1,
1133
+ :lang(zh-HK) .display-2,
1134
+ :lang(zh-HK) .display-3,
1135
+ :lang(zh-HK) .display-4,
1136
+ :lang(zh-HK) .display-5,
1137
+ :lang(zh-HK) .np-text-display-extra-large,
1138
+ :lang(zh-HK) .np-text-display-large,
1139
+ :lang(zh-HK) .np-text-display-medium,
1140
+ :lang(zh-HK) .np-text-display-small {
1141
+ /**
1142
+ * Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
1143
+ * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
1144
+ * font files are browser-cached and we carried over to launchpad, where it causes issues
1145
+ * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
1146
+ */
1147
+ font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans, sans-serif;
1148
+ }
1096
1149
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
1097
1150
  .np-text-display-extra-large,
1098
1151
  .np-text-display-large,
@@ -3496,6 +3496,60 @@ a,
3496
3496
  font-synthesis: none;
3497
3497
  }
3498
3498
 
3499
+ :lang(ja) .display-1,
3500
+ :lang(ja) .display-2,
3501
+ :lang(ja) .display-3,
3502
+ :lang(ja) .display-4,
3503
+ :lang(ja) .display-5,
3504
+ :lang(ja) .np-text-display-extra-large,
3505
+ :lang(ja) .np-text-display-large,
3506
+ :lang(ja) .np-text-display-medium,
3507
+ :lang(ja) .np-text-display-small,
3508
+ :lang(id) .display-1,
3509
+ :lang(id) .display-2,
3510
+ :lang(id) .display-3,
3511
+ :lang(id) .display-4,
3512
+ :lang(id) .display-5,
3513
+ :lang(id) .np-text-display-extra-large,
3514
+ :lang(id) .np-text-display-large,
3515
+ :lang(id) .np-text-display-medium,
3516
+ :lang(id) .np-text-display-small,
3517
+ :lang(th) .display-1,
3518
+ :lang(th) .display-2,
3519
+ :lang(th) .display-3,
3520
+ :lang(th) .display-4,
3521
+ :lang(th) .display-5,
3522
+ :lang(th) .np-text-display-extra-large,
3523
+ :lang(th) .np-text-display-large,
3524
+ :lang(th) .np-text-display-medium,
3525
+ :lang(th) .np-text-display-small,
3526
+ :lang(zh-CN) .display-1,
3527
+ :lang(zh-CN) .display-2,
3528
+ :lang(zh-CN) .display-3,
3529
+ :lang(zh-CN) .display-4,
3530
+ :lang(zh-CN) .display-5,
3531
+ :lang(zh-CN) .np-text-display-extra-large,
3532
+ :lang(zh-CN) .np-text-display-large,
3533
+ :lang(zh-CN) .np-text-display-medium,
3534
+ :lang(zh-CN) .np-text-display-small,
3535
+ :lang(zh-HK) .display-1,
3536
+ :lang(zh-HK) .display-2,
3537
+ :lang(zh-HK) .display-3,
3538
+ :lang(zh-HK) .display-4,
3539
+ :lang(zh-HK) .display-5,
3540
+ :lang(zh-HK) .np-text-display-extra-large,
3541
+ :lang(zh-HK) .np-text-display-large,
3542
+ :lang(zh-HK) .np-text-display-medium,
3543
+ :lang(zh-HK) .np-text-display-small {
3544
+ /**
3545
+ * Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
3546
+ * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
3547
+ * font files are browser-cached and we carried over to launchpad, where it causes issues
3548
+ * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
3549
+ */
3550
+ font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans, sans-serif;
3551
+ }
3552
+
3499
3553
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
3500
3554
 
3501
3555
  .np-text-display-extra-large,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@transferwise/neptune-css",
3
3
  "description": "Neptune CSS library",
4
- "version": "0.0.0-experimental-ab10359",
4
+ "version": "0.0.0-experimental-7614895",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -8,7 +8,17 @@
8
8
 
9
9
  /* DEPRECATED: use .np-text-*-title instead */
10
10
  /* stylelint-disable-next-line selector-list-comma-newline-after */
11
- .h1, .h2, .h3, .h4, .h5, .h6, .title-1, .title-2, .title-3, .title-4, .title-5,
11
+ .h1,
12
+ .h2,
13
+ .h3,
14
+ .h4,
15
+ .h5,
16
+ .h6,
17
+ .title-1,
18
+ .title-2,
19
+ .title-3,
20
+ .title-4,
21
+ .title-5,
12
22
  h1,
13
23
  h2,
14
24
  h3,
@@ -25,7 +35,7 @@ h6,
25
35
  line-height: var(--line-height-title);
26
36
  letter-spacing: 0;
27
37
  .np-text-hyphenated;
28
-
38
+
29
39
  + p,
30
40
  + ul:not(.list-unstyled),
31
41
  + ol:not(.list-unstyled) {
@@ -114,8 +124,12 @@ h6,
114
124
 
115
125
  /* DEPRECATED: use .np-text-body-default instead */
116
126
  /* stylelint-disable-next-line selector-list-comma-newline-after */
117
- .body-2, .body-3, .small, .tiny,
118
- body, small,
127
+ .body-2,
128
+ .body-3,
129
+ .small,
130
+ .tiny,
131
+ body,
132
+ small,
119
133
  .np-text-body-default {
120
134
  font-size: var(--font-size-14);
121
135
  line-height: 155%;
@@ -139,7 +153,8 @@ body, small,
139
153
 
140
154
  /* DEPRECATED: use .np-text-body-large instead */
141
155
  /* stylelint-disable-next-line selector-list-comma-newline-after */
142
- .body-1, .value,
156
+ .body-1,
157
+ .value,
143
158
  .np-text-body-large {
144
159
  font-weight: var(--font-weight-regular);
145
160
  font-size: var(--font-size-16);
@@ -206,6 +221,20 @@ a,
206
221
  .np-text-display-small {
207
222
  font-family: "Wise Sans", Inter, sans-serif;
208
223
  font-synthesis: none;
224
+
225
+ :lang(ja) &,
226
+ :lang(id) &,
227
+ :lang(th) &,
228
+ :lang(zh-CN) &,
229
+ :lang(zh-HK) & {
230
+ /**
231
+ * Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
232
+ * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
233
+ * font files are browser-cached and we carried over to launchpad, where it causes issues
234
+ * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
235
+ */
236
+ font-family: Inter, system-ui, sans-serif;
237
+ }
209
238
  }
210
239
 
211
240
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */