@transferwise/neptune-css 12.5.7-beta-356d4e8581.30 → 12.5.8

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 (59) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/css/accordion.css +1 -1
  3. package/dist/css/alerts.css +1 -1
  4. package/dist/css/button-groups.css +1 -1
  5. package/dist/css/buttons.css +1 -1
  6. package/dist/css/close.css +1 -1
  7. package/dist/css/decision.css +1 -1
  8. package/dist/css/dropdowns.css +1 -1
  9. package/dist/css/droppable.css +1 -1
  10. package/dist/css/footer.css +1 -1
  11. package/dist/css/forms.css +1 -1
  12. package/dist/css/input-groups.css +1 -1
  13. package/dist/css/list-group.css +1 -1
  14. package/dist/css/navbar-base.css +1 -1
  15. package/dist/css/navbar.css +1 -1
  16. package/dist/css/navs.css +1 -1
  17. package/dist/css/neptune-addons.css +1 -1
  18. package/dist/css/neptune-core.css +1 -1
  19. package/dist/css/neptune.css +1 -1
  20. package/dist/css/popovers.css +1 -1
  21. package/dist/css/progress-bars.css +1 -1
  22. package/dist/css/sequences.css +1 -1
  23. package/dist/css/table.css +1 -1
  24. package/dist/css/tooltip.css +1 -1
  25. package/dist/less/neptune-tokens.less +10 -41
  26. package/dist/props/neptune-tokens.css +9 -40
  27. package/package.json +3 -3
  28. package/src/less/addons/_background-utilities.less +5 -5
  29. package/src/less/button-groups.less +1 -1
  30. package/src/less/buttons.less +8 -0
  31. package/src/less/core/_fonts.less +12 -27
  32. package/src/less/core/_scaffolding.less +3 -3
  33. package/src/less/core/_typography.less +36 -23
  34. package/src/less/decision.less +1 -2
  35. package/src/less/dropdowns.less +2 -2
  36. package/src/less/footer.less +1 -1
  37. package/src/less/forms/bootstrap-forms.less +1 -1
  38. package/src/less/mixins/_text-emphasis.less +6 -6
  39. package/src/less/sequences.less +1 -1
  40. package/src/less/variables/_typography.less +25 -0
  41. package/dist/fonts/Inter-Black.ttf +0 -0
  42. package/dist/fonts/Inter-Bold.ttf +0 -0
  43. package/dist/fonts/Inter-ExtraBold.ttf +0 -0
  44. package/dist/fonts/Inter-ExtraLight.ttf +0 -0
  45. package/dist/fonts/Inter-Light.ttf +0 -0
  46. package/dist/fonts/Inter-Medium.ttf +0 -0
  47. package/dist/fonts/Inter-Regular.ttf +0 -0
  48. package/dist/fonts/Inter-SemiBold.ttf +0 -0
  49. package/dist/fonts/Inter-Thin.ttf +0 -0
  50. package/src/fonts/Inter-Black.ttf +0 -0
  51. package/src/fonts/Inter-Bold.ttf +0 -0
  52. package/src/fonts/Inter-ExtraBold.ttf +0 -0
  53. package/src/fonts/Inter-ExtraLight.ttf +0 -0
  54. package/src/fonts/Inter-Light.ttf +0 -0
  55. package/src/fonts/Inter-Medium.ttf +0 -0
  56. package/src/fonts/Inter-Regular.ttf +0 -0
  57. package/src/fonts/Inter-SemiBold.ttf +0 -0
  58. package/src/fonts/Inter-Thin.ttf +0 -0
  59. package/src/less/core/_text.less +0 -120
@@ -103,7 +103,7 @@
103
103
  }
104
104
 
105
105
  .tiny,
106
- .np-Text {
106
+ .body-3 {
107
107
  color: @color-navy-content-primary;
108
108
  }
109
109
  }
@@ -888,7 +888,7 @@ input[type='checkbox'] {
888
888
 
889
889
  small,
890
890
  .small,
891
- .np-Text {
891
+ .body-2 {
892
892
  display: block;
893
893
  font-size: var(--font-size-14);
894
894
  color: var(--color-content-secondary);
@@ -16,18 +16,18 @@
16
16
  &.h1,
17
17
  &.h2,
18
18
  &.h3,
19
- &.np-Text-pageTitle,
20
- &.np-Text-title,
21
- &.np-Text-subTitle,
19
+ &.title-1,
20
+ &.title-2,
21
+ &.title-3,
22
22
  h1,
23
23
  h2,
24
24
  h3,
25
25
  .h1,
26
26
  .h2,
27
27
  .h3,
28
- .np-Text-pageTitle,
29
- .np-Text-title,
30
- .np-Text-subTitle {
28
+ .title-1,
29
+ .title-2,
30
+ .title-3 {
31
31
  color: @large-color !important;
32
32
  }
33
33
  }
@@ -189,7 +189,7 @@
189
189
  }
190
190
 
191
191
  .small,
192
- .np-Text {
192
+ .body-2 {
193
193
  color: var(--color-content-secondary);
194
194
  }
195
195
 
@@ -0,0 +1,25 @@
1
+ // Deprecated legacy variables. Use typography neptune-tokens instead
2
+
3
+ @font-family-base: "Averta", "Avenir W02", "Avenir", Helvetica, Arial, sans-serif;
4
+
5
+ @font-weight-base: 500;
6
+ @font-weight-semi-bold: 600;
7
+ @font-weight-bold: 800;
8
+
9
+ @font-size-xx-large: 2.625rem; // 42px
10
+ @font-size-x-large: 1.75rem; // 28px
11
+ @font-size-large: 1.375rem; // 22px
12
+ @font-size-medium: 1.125rem; // 18px
13
+ @font-size-base: 1rem; // 16px
14
+ @font-size-small: 0.875rem; // 14px
15
+ @font-size-x-small: 0.75rem; // 12px
16
+
17
+ // We will be revisiting these soon, do not use directly
18
+ /* stylelint-disable number-max-precision */
19
+ @line-height-x-large: 1.1428571429; // 32/28
20
+ @line-height-large: 1.3636363636; // 30/22
21
+ @line-height-medium: 1.3333333333; // 24/18
22
+ @line-height-base: 1.5; // 24/16
23
+ @line-height-small: 1.7142857143; // 24/14
24
+ @line-height-x-small: 2; // 24/12
25
+ /* stylelint-enable number-max-precision */
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,120 +0,0 @@
1
- .np-Text-screenTitle,
2
- .np-Text-sectionTitle,
3
- .np-Text-subsectionTitle,
4
- .np-Text-bodyTitle,
5
- .np-Text-groupTitle {
6
- margin: 0;
7
- }
8
-
9
- .np-Text-screenTitle {
10
- margin-bottom: var(--size-8);
11
- font-size: var(--font-size-30);
12
- letter-spacing: var(--letter-spacing-negative-xl);
13
- font-weight: var(--font-weight-semi-bold);
14
- line-height: var(--font-line-height-34);
15
- }
16
-
17
- .np-Text-sectionTitle {
18
- margin-bottom: var(--size-4);
19
- font-size: var(--font-size-26);
20
- font-weight: var(--font-weight-semi-bold);
21
- letter-spacing: var(--letter-spacing-negative-md);
22
- line-height: var(--font-line-height-32);
23
- }
24
-
25
- .np-Text-subsectionTitle {
26
- margin-bottom: 2px;
27
- font-size: var(--font-size-22);
28
- font-weight: var(--font-weight-semi-bold);
29
- letter-spacing: var(--letter-spacing-negative-md);
30
- line-height: var(--font-line-height-28);
31
- }
32
-
33
- .np-Text-bodyTitle {
34
- font-size: var(--font-size-18);
35
- font-weight: var(--font-weight-semi-bold);
36
- letter-spacing: var(--letter-spacing-negative-sm);
37
- line-height: var(--font-line-height-18);
38
- }
39
-
40
- .np-Text-groupTitle {
41
- font-size: var(--font-size-14);
42
- font-weight: var(--font-weight-medium);
43
- letter-spacing: var(--letter-spacing-md);
44
- line-height: var(--font-line-height-20);
45
- }
46
-
47
- .np-Text-bodyDefault {
48
- font-size: var(--font-size-14);
49
- line-height: var(--font-line-height-22);
50
- letter-spacing: var(--letter-spacing-sm);
51
-
52
- &--bold {
53
- font-weight: var(--font-weight-semi-bold);
54
- }
55
-
56
- &Large {
57
- font-size: var(--font-size-16);
58
- letter-spacing: var(--letter-spacing-negative-xs);
59
- line-height: var(--font-line-height-24);
60
-
61
- &--bold {
62
- font-weight: var(--font-weight-semi-bold);
63
- }
64
- }
65
- }
66
-
67
- .np-Text-bodyLarge {
68
- font-size: var(--font-size-16);
69
- letter-spacing: var(--letter-spacing-negative-xs);
70
- line-height: var(--font-line-height-24);
71
-
72
- &--bold {
73
- font-weight: var(--font-weight-semi-bold);
74
- }
75
- }
76
-
77
- .np-Text-link {
78
- font-size: var(--font-size-14);
79
- line-height: var(--font-line-height-22);
80
- letter-spacing: var(--letter-spacing-sm);
81
- font-weight: var(--font-weight-semi-bold);
82
- text-decoration: underline;
83
- color: var(--color-content-accent);
84
-
85
- &:hover,
86
- &:focus {
87
- color: var(--color-content-accent-hover);
88
- text-decoration: underline;
89
- }
90
-
91
- &:active {
92
- color: var(--color-content-accent-active);
93
- }
94
-
95
- &--bold {
96
- font-weight: var(--font-weight-semi-bold);
97
- }
98
-
99
- &Large {
100
- font-size: var(--font-size-16);
101
- letter-spacing: var(--letter-spacing-sm);
102
- line-height: var(--font-line-height-24);
103
- text-decoration: underline;
104
-
105
- &--bold {
106
- font-weight: var(--font-weight-semi-bold);
107
- }
108
- }
109
- }
110
-
111
- .np-Text-nav {
112
- font-weight: var(--font-weight-medium);
113
- font-size: var(--font-size-12);
114
- letter-spacing: var(--letter-spacing-lg);
115
- line-height: var(--font-line-height-18);
116
-
117
- &--bold {
118
- font-weight: var(--font-weight-bold);
119
- }
120
- }