@transferwise/neptune-css 0.0.0-experimental-ac22269 → 0.0.0-experimental-fa3cf43

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.
Files changed (49) hide show
  1. package/package.json +1 -1
  2. package/src/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  3. package/src/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  4. package/src/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  5. package/src/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  6. package/src/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  7. package/src/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  8. package/src/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  9. package/src/fonts/rubik/rubik-body-cyrillic-330-normal.woff2 +0 -0
  10. package/src/fonts/rubik/rubik-body-cyrillic-600-normal.woff2 +0 -0
  11. package/src/fonts/rubik/rubik-body-cyrillic-ext-330-normal.woff2 +0 -0
  12. package/src/fonts/rubik/rubik-body-cyrillic-ext-600-normal.woff2 +0 -0
  13. package/src/fonts/rubik/rubik-cyrillic-900-normal.woff2 +0 -0
  14. package/src/fonts/rubik/rubik-cyrillic-ext-900-normal.woff2 +0 -0
  15. package/src/less/addons/_background-utilities.less +0 -5
  16. package/src/less/badge.less +2 -2
  17. package/src/less/button-groups.less +2 -3
  18. package/src/less/buttons.less +7 -7
  19. package/src/less/core/_fonts.less +75 -7
  20. package/src/less/core/_scaffolding.less +4 -4
  21. package/src/less/core/_typography-utilities.less +3 -3
  22. package/src/less/core/_typography.less +235 -81
  23. package/src/less/decision.less +2 -2
  24. package/src/less/dropdowns.less +7 -8
  25. package/src/less/droppable.less +4 -4
  26. package/src/less/footer.less +3 -4
  27. package/src/less/forms/bootstrap-forms.less +72 -85
  28. package/src/less/forms/checkbox-radio.less +3 -3
  29. package/src/less/input-groups.less +10 -20
  30. package/src/less/list-group.less +5 -8
  31. package/src/less/mixins/_reset-text.less +1 -1
  32. package/src/less/mixins/_text-emphasis.less +1 -7
  33. package/src/less/modals.less +1 -1
  34. package/src/less/navbar.less +19 -19
  35. package/src/less/navs.less +8 -8
  36. package/src/less/panels.less +2 -2
  37. package/src/less/popovers.less +7 -7
  38. package/src/less/progress-bars.less +2 -2
  39. package/src/less/sequences.less +10 -15
  40. package/src/less/table.less +7 -7
  41. package/src/less/tooltip.less +1 -1
  42. package/src/variables/legacy-variables.less +3 -3
  43. package/src/less/core/fonts/_fonts-ar.less +0 -86
  44. package/src/less/core/fonts/_fonts-en.less +0 -99
  45. package/src/less/core/fonts/_fonts-he.less +0 -8
  46. package/src/less/core/fonts/_fonts-ja.less +0 -4247
  47. package/src/less/core/fonts/_fonts-ko.less +0 -1079
  48. package/src/less/core/fonts/_fonts-th.less +0 -8
  49. package/src/less/core/fonts/_fonts-zh.less +0 -872
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-ac22269",
4
+ "version": "0.0.0-experimental-fa3cf43",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -76,11 +76,6 @@
76
76
  .np-text-title-subsection,
77
77
  .np-text-title-body,
78
78
  .np-text-title-group,
79
- .wds-text-title-screen,
80
- .wds-text-title-section,
81
- .wds-text-title-subsection,
82
- .wds-text-title-body,
83
- .wds-text-title-group,
84
79
  strong {
85
80
  color: @color-navy-content-primary;
86
81
  }
@@ -7,9 +7,9 @@
7
7
  min-width: var(--size-16);
8
8
  padding: 5px var(--size-8);
9
9
  font-size: 10px;
10
- font-weight: var(--wds-font-weight-title-body);
10
+ font-weight: var(--font-weight-semi-bold);
11
11
  color: #fff;
12
- line-height: var(--wds-line-height-title-section);
12
+ line-height: var(--line-height-control);
13
13
  vertical-align: middle;
14
14
  white-space: nowrap;
15
15
  text-align: center;
@@ -404,9 +404,8 @@
404
404
  }
405
405
  }
406
406
 
407
- .body-2,
408
407
  .np-text-body-default,
409
- .wds-text-body-default,
408
+ .body-2,
410
409
  .small {
411
410
  color: var(--color-content-secondary);
412
411
  }
@@ -419,7 +418,7 @@
419
418
  }
420
419
 
421
420
  .btn-group .secondary {
422
- .wds-text-body-default;
421
+ .np-text-body-default;
423
422
 
424
423
  color: var(--color-content-secondary);
425
424
  }
@@ -8,7 +8,7 @@
8
8
  @import (reference) "./ring.less";
9
9
 
10
10
  .btn {
11
- .wds-text-body-large-bold;
11
+ .np-text-body-large-bold;
12
12
 
13
13
  display: inline-block;
14
14
  margin-bottom: 0;
@@ -22,11 +22,11 @@
22
22
  border: 1px solid transparent;
23
23
  white-space: nowrap;
24
24
  padding-bottom: 10px;
25
- font-weight: var(--wds-font-weight-title-body);
25
+ font-weight: var(--font-weight-semi-bold);
26
26
 
27
27
  .button-size(
28
28
  var(--btn-padding);
29
- var(--wds-font-size-body-large);
29
+ var(--font-size-16);
30
30
  var(--line-height-24);
31
31
  var(--btn-radius-base);
32
32
  var(--btn-height);
@@ -475,7 +475,7 @@
475
475
  .navbar .btn {
476
476
  .button-size(
477
477
  var(--btn-sm-padding);
478
- var(--wds-font-size-body);
478
+ var(--font-size-14);
479
479
  var(--line-height-22);
480
480
  var(--btn-sm-radius-base);
481
481
  var(--btn-sm-height);
@@ -512,7 +512,7 @@
512
512
  .navbar-collapse .btn {
513
513
  .button-size(
514
514
  var(--btn-padding);
515
- var(--wds-font-size-body-large);
515
+ var(--font-size-16);
516
516
  var(--line-height-24);
517
517
  var(--border-radius-base);
518
518
  var(--btn-height);
@@ -547,7 +547,7 @@ input[type="button"] {
547
547
 
548
548
  // @TODO Deprecate / Remove
549
549
  .btn-input {
550
- font-weight: var(--wds-font-weight-body-regular);
550
+ font-weight: var(--font-weight-regular);
551
551
  .padding(left, @padding-base-horizontal);
552
552
 
553
553
  .padding(right, @padding-base-horizontal);
@@ -584,7 +584,7 @@ input[type="button"] {
584
584
 
585
585
  &.btn-addon,
586
586
  &.btn-input-inverse {
587
- font-weight: var(--wds-font-weight-title-body);
587
+ font-weight: var(--font-weight-semi-bold);
588
588
  }
589
589
  }
590
590
  }
@@ -1,9 +1,77 @@
1
1
  /* See: https://github.com/fontsource/fontsource/blob/main/fonts/google/inter/variable.css */
2
2
 
3
- @import "fonts/_fonts-en";
4
- @import "fonts/_fonts-ar";
5
- @import "fonts/_fonts-he";
6
- @import "fonts/_fonts-ja";
7
- @import "fonts/_fonts-ko";
8
- @import "fonts/_fonts-th";
9
- @import "fonts/_fonts-zh";
3
+ @font-face {
4
+ font-family: Inter;
5
+ font-style: normal;
6
+ font-display: swap;
7
+ font-weight: 100 900;
8
+ src: url("../fonts/inter-cyrillic-variable-wghtOnly-normal.woff2") format("woff2");
9
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
10
+ }
11
+
12
+ @font-face {
13
+ font-family: Inter;
14
+ font-style: normal;
15
+ font-display: swap;
16
+ font-weight: 100 900;
17
+ src: url("../fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2") format("woff2");
18
+ unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
19
+ }
20
+
21
+ @font-face {
22
+ font-family: Inter;
23
+ font-style: normal;
24
+ font-display: swap;
25
+ font-weight: 100 900;
26
+ src: url("../fonts/inter-greek-variable-wghtOnly-normal.woff2") format("woff2");
27
+ unicode-range: U+0370-03FF;
28
+ }
29
+
30
+ @font-face {
31
+ font-family: Inter;
32
+ font-style: normal;
33
+ font-display: swap;
34
+ font-weight: 100 900;
35
+ src: url("../fonts/inter-greek-ext-variable-wghtOnly-normal.woff2") format("woff2");
36
+ unicode-range: U+1F00-1FFF;
37
+ }
38
+
39
+ @font-face {
40
+ font-family: Inter;
41
+ font-style: normal;
42
+ font-display: swap;
43
+ font-weight: 100 900;
44
+ src: url("../fonts/inter-latin-variable-wghtOnly-normal.woff2") format("woff2");
45
+ unicode-range:
46
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,
47
+ U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
48
+ }
49
+
50
+ @font-face {
51
+ font-family: Inter;
52
+ font-style: normal;
53
+ font-display: swap;
54
+ font-weight: 100 900;
55
+ src: url("../fonts/inter-latin-ext-variable-wghtOnly-normal.woff2") format("woff2");
56
+ unicode-range:
57
+ U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F,
58
+ U+A720-A7FF;
59
+ }
60
+
61
+ @font-face {
62
+ font-family: Inter;
63
+ font-style: normal;
64
+ font-display: swap;
65
+ font-weight: 100 900;
66
+ src: url("../fonts/inter-vietnamese-variable-wghtOnly-normal.woff2") format("woff2");
67
+ unicode-range:
68
+ U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9,
69
+ U+20AB;
70
+ }
71
+
72
+ @font-face {
73
+ font-family: "Wise Sans";
74
+ font-style: normal;
75
+ font-display: swap;
76
+ src: url("../fonts/WiseSans-Heavy.woff2") format("woff2");
77
+ }
@@ -37,7 +37,7 @@
37
37
  }
38
38
 
39
39
  .np-theme-personal {
40
- font-family: var(--wds-font-family-regular);
40
+ font-family: var(--font-family-regular);
41
41
  font-feature-settings: "calt";
42
42
 
43
43
  --input-group-addon-padding: @padding-large-vertical @padding-base-horizontal;
@@ -68,7 +68,7 @@
68
68
 
69
69
  html {
70
70
  font-size: var(--base-font-size);
71
- font-family: var(--wds-font-family-regular);
71
+ font-family: var(--font-family-regular);
72
72
  color: var(--color-content-secondary);
73
73
  background-color: var(--color-background-screen);
74
74
  -webkit-font-smoothing: antialiased;
@@ -221,11 +221,11 @@ ul {
221
221
 
222
222
  dt,
223
223
  dd {
224
- line-height: var(--wds-line-height-body-large);
224
+ line-height: var(--line-height-body);
225
225
  }
226
226
 
227
227
  dt {
228
- font-size: var(--wds-font-size-body);
228
+ font-size: var(--font-size-14);
229
229
  }
230
230
 
231
231
  dd {
@@ -145,15 +145,15 @@
145
145
  }
146
146
 
147
147
  .font-weight-bold {
148
- font-weight: var(--wds-font-weight-title-screen) !important;
148
+ font-weight: var(--font-weight-bold) !important;
149
149
  }
150
150
 
151
151
  .font-weight-semi-bold {
152
- font-weight: var(--wds-font-weight-title-group) !important;
152
+ font-weight: var(--font-weight-semi-bold) !important;
153
153
  }
154
154
 
155
155
  .font-weight-normal {
156
- font-weight: var(--wds-font-weight-body-regular) !important;
156
+ font-weight: var(--font-weight-regular) !important;
157
157
  }
158
158
 
159
159
  .font-italic {