@bonniernews/dn-design-system-web 25.0.5 → 25.0.6-beta.1

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 (107) hide show
  1. package/assets/form-field/form-field.scss +6 -6
  2. package/assets/teaser/teaser.scss +5 -5
  3. package/components/article-top-image/article-top-image.scss +1 -1
  4. package/components/badge/badge.scss +5 -5
  5. package/components/blocked-content/blocked-content.scss +9 -9
  6. package/components/buddy-menu/buddy-menu.scss +15 -15
  7. package/components/button/button.scss +49 -33
  8. package/components/checkbox/checkbox.scss +9 -9
  9. package/components/disclaimer/disclaimer.scss +10 -10
  10. package/components/divider/divider.scss +3 -3
  11. package/components/empty-state/empty-state.scss +3 -3
  12. package/components/factbox/factbox.scss +13 -13
  13. package/components/footer/footer.scss +16 -16
  14. package/components/game-header/game-header.scss +6 -6
  15. package/components/group-header/group-header.scss +6 -6
  16. package/components/icon-with-wrapper/icon-with-wrapper.njk +1 -1
  17. package/components/image-caption/image-caption.scss +3 -3
  18. package/components/link-box/link-box-item.scss +4 -4
  19. package/components/link-box/link-box.scss +1 -1
  20. package/components/list-item/list-item.scss +24 -24
  21. package/components/modal/modal.scss +4 -4
  22. package/components/pagination/pagination.scss +4 -4
  23. package/components/pictogram/pictogram.scss +3 -3
  24. package/components/profile-header/profile-header.scss +7 -7
  25. package/components/quote/quote.scss +2 -2
  26. package/components/radio-button/radio-button.scss +9 -9
  27. package/components/spinner/spinner.scss +14 -14
  28. package/components/switch/switch.scss +13 -13
  29. package/components/tag-header/tag-header.scss +8 -8
  30. package/components/teaser-centered/teaser-centered.scss +1 -1
  31. package/components/teaser-footer/teaser-footer.scss +5 -5
  32. package/components/teaser-image/teaser-image.scss +4 -4
  33. package/components/teaser-large/teaser-large.scss +7 -6
  34. package/components/teaser-list-vertical/teaser-list-vertical.scss +8 -8
  35. package/components/teaser-longlife/teaser-longlife.scss +7 -7
  36. package/components/teaser-native/teaser-native.scss +19 -19
  37. package/components/teaser-onsite/teaser-onsite.scss +2 -2
  38. package/components/teaser-package/teaser-package.scss +2 -2
  39. package/components/teaser-right-now/teaser-right-now.scss +1 -1
  40. package/components/teaser-slideshow/teaser-slideshow.scss +3 -3
  41. package/components/teaser-split/teaser-split.scss +5 -5
  42. package/components/teaser-standard/teaser-standard.scss +5 -5
  43. package/components/teaser-swipe-card/teaser-swipe-card.scss +10 -10
  44. package/components/teaser-tipsa/teaser-tipsa.scss +2 -2
  45. package/components/text-button/text-button.scss +7 -7
  46. package/components/text-button-toggle/text-button-toggle.scss +7 -7
  47. package/components/text-input/text-input.scss +22 -23
  48. package/components/tooltip/tooltip.scss +5 -5
  49. package/components/video-caption/video-caption.scss +4 -4
  50. package/components/vip-badge/vip-badge.scss +10 -10
  51. package/foundations/colors.scss +6 -18
  52. package/foundations/cssVariables.scss +1 -0
  53. package/foundations/gradients.scss +25 -0
  54. package/foundations/helpers/colors.scss +10 -18
  55. package/foundations/helpers/forward.helpers.scss +1 -0
  56. package/foundations/helpers/gradients.scss +33 -0
  57. package/foundations/helpers/hover.scss +2 -2
  58. package/foundations/helpers/links.scss +4 -3
  59. package/foundations/helpers/metrics.scss +4 -6
  60. package/foundations/helpers/shadows.scss +5 -5
  61. package/foundations/helpers/typography.scss +11 -12
  62. package/foundations/shadows.scss +4 -4
  63. package/foundations/variables/border-width.scss +5 -0
  64. package/foundations/variables/colorsCssVariables.scss +84 -82
  65. package/foundations/variables/colorsDnDark.scss +89 -0
  66. package/foundations/variables/colorsDnLight.scss +89 -0
  67. package/foundations/variables/gradientsDnDark.scss +46 -0
  68. package/foundations/variables/gradientsDnLight.scss +46 -0
  69. package/foundations/variables/gradientsList.scss +4 -0
  70. package/foundations/variables/radius.scss +6 -0
  71. package/foundations/variables/shadowsDnDark.scss +30 -0
  72. package/foundations/variables/shadowsDnLight.scss +30 -0
  73. package/foundations/variables/shadowsList.scss +4 -0
  74. package/foundations/variables/spacingBase.scss +1 -0
  75. package/foundations/variables/spacingBaseList.scss +1 -0
  76. package/foundations/variables/spacingDetail.scss +3 -16
  77. package/foundations/variables/spacingDetailList.scss +3 -16
  78. package/foundations/variables/spacingDetailScreenLarge.scss +3 -16
  79. package/foundations/variables/typographyLetterSpacing.scss +1 -1
  80. package/foundations/variables/typographyLineHeight.scss +3 -3
  81. package/foundations/variables/typographyList.scss +54 -0
  82. package/foundations/variables/{typographyTokensScreenExtraLarge.scss → typographyScreenExtraLarge.scss} +267 -302
  83. package/foundations/variables/typographyScreenLarge.scss +387 -0
  84. package/foundations/variables/{typographyTokensScreenSmall.scss → typographyScreenSmall.scss} +271 -306
  85. package/package.json +2 -2
  86. package/preact/components/icon-with-wrapper/icon-with-wrapper.js +86 -84
  87. package/preact/components/icon-with-wrapper/icon-with-wrapper.js.map +3 -3
  88. package/types-lib/ds-color.d.ts +97 -93
  89. package/variables/colors-dark-mode.json +109 -0
  90. package/variables/colors-light-mode.json +109 -0
  91. package/variables/gradients-dark-mode.json +58 -0
  92. package/variables/gradients-light-mode.json +58 -0
  93. package/variables/typography-list.json +56 -0
  94. package/foundations/variables/colorsDnDarkTokens.scss +0 -88
  95. package/foundations/variables/colorsDnLightTokens.scss +0 -87
  96. package/foundations/variables/decorations.scss +0 -1
  97. package/foundations/variables/metrics.scss +0 -12
  98. package/foundations/variables/shadowsDnDarkTokens.scss +0 -34
  99. package/foundations/variables/shadowsDnLightTokens.scss +0 -34
  100. package/foundations/variables/shadowsTokensList.scss +0 -4
  101. package/foundations/variables/typographyTokensList.scss +0 -59
  102. package/foundations/variables/typographyTokensScreenLarge.scss +0 -422
  103. package/tokens/colors-dark-mode.json +0 -106
  104. package/tokens/colors-light-mode.json +0 -105
  105. package/tokens/typography-list.json +0 -61
  106. package/variables/shadows-css-variables.json +0 -6
  107. /package/{tokens → variables}/icon-list.json +0 -0
@@ -6,8 +6,8 @@ $ds-form-field__error-icon-size: 20px;
6
6
  .ds-form-field__help-text {
7
7
  margin-top: ds-spacing($ds-s-050);
8
8
  margin-bottom: 0;
9
- color: $ds-color-text-primary-02;
10
- @include ds-typography($ds-typography-functionalbody01);
9
+ color: $ds-color-text-primary-subtle;
10
+ @include ds-typography($ds-typography-functional-body-sm);
11
11
  }
12
12
 
13
13
  .ds-form-field__error-message {
@@ -27,11 +27,11 @@ $ds-form-field__error-icon-size: 20px;
27
27
  line-height: 0;
28
28
  flex-shrink: 0;
29
29
  svg {
30
- fill: $ds-color-icon-critical;
30
+ fill: $ds-color-text-critical;
31
31
  }
32
32
  }
33
33
  span {
34
- @include ds-typography($ds-typography-functionalbody01);
34
+ @include ds-typography($ds-typography-functional-body-sm);
35
35
  }
36
36
  }
37
37
 
@@ -50,12 +50,12 @@ $ds-form-field__error-icon-size: 20px;
50
50
  width: $ds-form-field__error-icon-size;
51
51
  }
52
52
  span {
53
- @include ds-typography($ds-typography-functionalbody01, true);
53
+ @include ds-typography($ds-typography-functional-body-sm, true);
54
54
  }
55
55
  }
56
56
  }
57
57
 
58
58
  .ds-form-field__help-text {
59
- @include ds-typography($ds-typography-functionalbody01, true);
59
+ @include ds-typography($ds-typography-functional-body-sm, true);
60
60
  }
61
61
  }
@@ -16,7 +16,7 @@ $ds-teaser-standard-image-width-desktop: 196px;
16
16
 
17
17
  .ds-teaser {
18
18
  display: block;
19
- background-color: $ds-color-surface-background;
19
+ background-color: $ds-color-surface-primary;
20
20
  text-decoration: none;
21
21
  position: relative;
22
22
 
@@ -31,7 +31,7 @@ $ds-teaser-standard-image-width-desktop: 196px;
31
31
  .ds-teaser__vignette {
32
32
  display: block;
33
33
  margin-bottom: ds-spacing($ds-s-025);
34
- @include ds-typography($ds-typography-functionallabel01) {
34
+ @include ds-typography($ds-typography-functional-label-sm) {
35
35
  color: $ds-theme-color;
36
36
  }
37
37
  }
@@ -57,7 +57,7 @@ $ds-teaser-standard-image-width-desktop: 196px;
57
57
  .ds-teaser__text {
58
58
  // Should be replaced with dynamic spacing layout token when available
59
59
  margin: ds-spacing($ds-s-050 0 0);
60
- @include ds-typography($ds-typography-detailmedryckare) {
60
+ @include ds-typography($ds-typography-detail-medryckare) {
61
61
  color: $ds-color-text-primary;
62
62
  }
63
63
  @include ds-mq-smallest-breakpoint(tablet) {
@@ -68,7 +68,7 @@ $ds-teaser-standard-image-width-desktop: 196px;
68
68
  .ds-teaser__sticker {
69
69
  display: inline;
70
70
  color: $ds-theme-color;
71
- @include ds-typography($ds-typography-functionallabel01);
71
+ @include ds-typography($ds-typography-functional-label-sm);
72
72
  }
73
73
 
74
74
  .ds-teaser__media {
@@ -77,7 +77,7 @@ $ds-teaser-standard-image-width-desktop: 196px;
77
77
  box-sizing: border-box;
78
78
 
79
79
  &--rounded {
80
- border-radius: ds-border-radius(x1);
80
+ border-radius: ds-border-radius(012);
81
81
  overflow: hidden;
82
82
  }
83
83
  }
@@ -2,5 +2,5 @@
2
2
  @use "../../assets/article-image/article-image.scss" as *;
3
3
 
4
4
  .ds-article-image--top {
5
- padding-bottom: ds-spacing($ds-s-spacing-lg);
5
+ padding-bottom: ds-spacing($ds-s-lg);
6
6
  }
@@ -7,8 +7,8 @@ $ds-badge__min-size: 8px;
7
7
  box-sizing: content-box;
8
8
 
9
9
  .ds-badge__inner {
10
- background-color: $ds-color-component-brand;
11
- border: $ds-color-border-secondary ds-border-width(x2) solid;
10
+ background-color: $ds-color-surface-brand;
11
+ border: $ds-color-border-primaryinvert-strongest ds-border-width(xs) solid;
12
12
  border-radius: 100px;
13
13
  display: inline-flex;
14
14
  align-items: center;
@@ -16,15 +16,15 @@ $ds-badge__min-size: 8px;
16
16
  min-height: ds-px-to-rem($ds-badge__min-size);
17
17
  min-width: ds-px-to-rem($ds-badge__min-size);
18
18
  padding: ds-spacing($ds-s-025, rem);
19
- @include ds-typography($ds-typography-functionalmeta02, $lineHeight: 0, $fontWeight: $ds-fontweight-semibold) {
20
- color: $ds-color-static-white;
19
+ @include ds-typography($ds-typography-functional-meta-md, $lineHeight: 0, $fontWeight: $ds-fontweight-semibold) {
20
+ color: $ds-color-neutral-white;
21
21
  }
22
22
  @at-root .ds-force-px#{&} {
23
23
  min-height: $ds-badge__min-size;
24
24
  min-width: $ds-badge__min-size;
25
25
  padding: ds-spacing($ds-s-025);
26
26
  @include ds-typography(
27
- $ds-typography-functionalmeta02,
27
+ $ds-typography-functional-meta-md,
28
28
  $forcePx: true,
29
29
  $lineHeight: 0,
30
30
  $fontWeight: $ds-fontweight-semibold
@@ -2,24 +2,24 @@
2
2
  @use "../button/button.scss" as *;
3
3
 
4
4
  .ds-blocked-content {
5
- background-color: $ds-color-surface-background;
5
+ background-color: $ds-color-surface-primary;
6
6
  margin: 0;
7
7
  padding: ds-spacing($ds-s-100 0 $ds-s-200);
8
8
 
9
9
  .ds-blocked-content__inner {
10
10
  text-align: center;
11
- border: ds-border-width(x1) solid $ds-color-border-primary;
12
- border-radius: ds-border-radius(x1);
11
+ border: ds-border-width(xxs) solid $ds-color-border-primary;
12
+ border-radius: ds-border-radius(012);
13
13
  padding: ds-spacing($ds-s-200 $ds-s-100 $ds-s-100);
14
14
  }
15
15
 
16
16
  .ds-blocked-content__body {
17
17
  margin: ds-spacing(0 0 $ds-s-200);
18
- @include ds-typography($ds-typography-functionalbody02) {
18
+ @include ds-typography($ds-typography-functional-body-md) {
19
19
  color: $ds-color-text-primary;
20
20
  }
21
21
  @at-root .ds-force-px#{&} {
22
- @include ds-typography($ds-typography-functionalbody02, true);
22
+ @include ds-typography($ds-typography-functional-body-md, true);
23
23
  }
24
24
  }
25
25
 
@@ -33,17 +33,17 @@
33
33
  .ds-blocked-content__title {
34
34
  margin: ds-spacing(0 0 $ds-s-050);
35
35
  @include ds-typography(
36
- $ds-typography-functionalheading01,
37
- $lineHeight: $ds-lineheight-m,
36
+ $ds-typography-functional-heading-xxs,
37
+ $lineHeight: $ds-lineheight-md,
38
38
  $fontWeight: $ds-fontweight-semibold
39
39
  ) {
40
40
  color: $ds-color-text-primary;
41
41
  }
42
42
  @at-root .ds-force-px#{&} {
43
43
  @include ds-typography(
44
- $ds-typography-functionalheading01,
44
+ $ds-typography-functional-heading-xxs,
45
45
  $forcePx: true,
46
- $lineHeight: $ds-lineheight-m,
46
+ $lineHeight: $ds-lineheight-md,
47
47
  $fontWeight: $ds-fontweight-semibold
48
48
  );
49
49
  }
@@ -24,9 +24,9 @@
24
24
  }
25
25
 
26
26
  .ds-buddy-menu__inner {
27
- background-color: $ds-color-surface-elevated;
28
- border-radius: ds-border-radius(x2);
29
- box-shadow: ds-shadow-get-box-shadow($ds-shadow-elevation-s);
27
+ background-color: $ds-color-surface-primary-elevated;
28
+ border-radius: ds-border-radius(025);
29
+ box-shadow: ds-shadow-get-box-shadow($ds-shadow-elevation-sm);
30
30
  position: relative;
31
31
  z-index: 1;
32
32
  }
@@ -50,7 +50,7 @@
50
50
  .ds-buddy-menu__greeting {
51
51
  margin: ds-spacing(0 0 $ds-s-100);
52
52
  display: block;
53
- @include ds-typography($ds-typography-functionalheading03) {
53
+ @include ds-typography($ds-typography-functional-heading-sm) {
54
54
  color: $ds-color-text-primary;
55
55
  }
56
56
  }
@@ -58,7 +58,7 @@
58
58
  .ds-buddy-menu__addons-title,
59
59
  .ds-buddy-menu__links-title {
60
60
  margin: ds-spacing(0 0 $ds-s-025);
61
- @include ds-typography($ds-typography-functionalbody02, $fontWeight: $ds-fontweight-semibold) {
61
+ @include ds-typography($ds-typography-functional-body-md, $fontWeight: $ds-fontweight-semibold) {
62
62
  color: $ds-color-text-primary;
63
63
  }
64
64
  }
@@ -71,21 +71,21 @@
71
71
  margin: ds-spacing(0 0 $ds-s-100);
72
72
  a {
73
73
  @include ds-link($ds-link-list);
74
- @include ds-typography($ds-typography-functionalbody02) {
75
- color: $ds-color-text-primary-02;
74
+ @include ds-typography($ds-typography-functional-body-md) {
75
+ color: $ds-color-text-primary-subtle;
76
76
  }
77
77
  }
78
78
  }
79
79
  .ds-buddy-menu__account-level {
80
80
  margin: ds-spacing(0 0 $ds-s-100);
81
81
  display: block;
82
- @include ds-typography($ds-typography-functionalbody02) {
83
- color: $ds-color-text-primary-02;
82
+ @include ds-typography($ds-typography-functional-body-md) {
83
+ color: $ds-color-text-primary-subtle;
84
84
  }
85
85
  }
86
86
  .ds-buddy-menu__links-list {
87
- border-bottom-left-radius: ds-border-radius(x2);
88
- border-bottom-right-radius: ds-border-radius(x2);
87
+ border-bottom-left-radius: ds-border-radius(025);
88
+ border-bottom-right-radius: ds-border-radius(025);
89
89
  overflow: hidden;
90
90
  margin: 0;
91
91
  padding: ds-spacing(0 $ds-s-100);
@@ -93,18 +93,18 @@
93
93
 
94
94
  &.ds-force-px {
95
95
  .ds-buddy-menu__greeting {
96
- @include ds-typography($ds-typography-functionalheading03, true);
96
+ @include ds-typography($ds-typography-functional-heading-sm, true);
97
97
  }
98
98
  .ds-buddy-menu__account-title,
99
99
  .ds-buddy-menu__addons-title,
100
100
  .ds-buddy-menu__links-title {
101
- @include ds-typography($ds-typography-functionalbody02, $forcePx: true, $fontWeight: $ds-fontweight-semibold);
101
+ @include ds-typography($ds-typography-functional-body-md, $forcePx: true, $fontWeight: $ds-fontweight-semibold);
102
102
  }
103
103
  .ds-buddy-menu__addons-list a {
104
- @include ds-typography($ds-typography-functionalbody02, true);
104
+ @include ds-typography($ds-typography-functional-body-md, true);
105
105
  }
106
106
  .ds-buddy-menu__account-level {
107
- @include ds-typography($ds-typography-functionalbody02, true);
107
+ @include ds-typography($ds-typography-functional-body-md, true);
108
108
  }
109
109
  }
110
110
 
@@ -2,7 +2,7 @@
2
2
  @use "../icon-sprite/icon-sprite.scss";
3
3
  @use "../spinner/spinner.scss" as *;
4
4
 
5
- $ds-btn-outlined__border-width: ds-border-width(x1);
5
+ $ds-btn-outlined__border-width: ds-border-width(xxs);
6
6
  @function _btn-brdr($value, $rem: false) {
7
7
  $value: (ds-strip-unit($value) - ds-strip-unit($ds-btn-outlined__border-width)) * 1px;
8
8
  @if $rem {
@@ -12,14 +12,14 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
12
12
  }
13
13
 
14
14
  .ds-btn {
15
- --ds-btn__background-color: #{$ds-color-surface-background};
15
+ --ds-btn__background-color: #{$ds-color-surface-primary};
16
16
  --ds-btn__border-color: transparent;
17
- --ds-btn__outline-color: #{$ds-color-border-focus-02};
17
+ --ds-btn__outline-color: #{$ds-color-border-primary-strongest};
18
18
  --ds-btn__icon-size: #{ds-px-to-rem(24px)};
19
19
 
20
20
  cursor: pointer;
21
21
  border: $ds-btn-outlined__border-width solid var(--ds-btn__border-color);
22
- border-radius: ds-border-radius(x1);
22
+ border-radius: ds-border-radius(012);
23
23
  position: relative;
24
24
  background-color: var(--ds-btn__background-color);
25
25
  color: var(--ds-btn__color);
@@ -34,11 +34,11 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
34
34
  &.ds-btn--primary {
35
35
  &.ds-btn--default,
36
36
  &.ds-btn--elevated {
37
- --ds-btn__background-color: #{$ds-color-component-primary};
38
- --ds-btn__color: #{$ds-color-text-secondary};
37
+ --ds-btn__background-color: #{$ds-color-surface-primaryinvert};
38
+ --ds-btn__color: #{$ds-color-text-primaryinvert};
39
39
  }
40
40
  &.ds-btn--outline {
41
- --ds-btn__border-color: #{$ds-color-component-primary};
41
+ --ds-btn__border-color: #{$ds-color-border-primary-strongest};
42
42
  --ds-btn__color: #{$ds-color-text-primary};
43
43
  }
44
44
  &.ds-btn--transparent {
@@ -49,11 +49,11 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
49
49
  &.ds-btn--secondary {
50
50
  &.ds-btn--default,
51
51
  &.ds-btn--elevated {
52
- --ds-btn__background-color: #{$ds-color-component-primary-overlay};
52
+ --ds-btn__background-color: #{$ds-color-surface-primary-raised-strong};
53
53
  --ds-btn__color: #{$ds-color-text-primary};
54
54
  }
55
55
  &.ds-btn--outline {
56
- --ds-btn__border-color: #{$ds-color-border-primary-02};
56
+ --ds-btn__border-color: #{$ds-color-border-primary-strong};
57
57
  --ds-btn__color: #{$ds-color-text-primary};
58
58
  }
59
59
  &.ds-btn--transparent {
@@ -62,14 +62,14 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
62
62
  }
63
63
 
64
64
  &.ds-btn--brand {
65
- --ds-btn__outline-color: #{$ds-color-border-focus};
65
+ --ds-btn__outline-color: #{$ds-color-border-brand};
66
66
  &.ds-btn--default,
67
67
  &.ds-btn--elevated {
68
- --ds-btn__background-color: #{$ds-color-component-brand};
69
- --ds-btn__color: #{$ds-color-static-white};
68
+ --ds-btn__background-color: #{$ds-color-surface-brand};
69
+ --ds-btn__color: #{$ds-color-neutral-white};
70
70
  }
71
71
  &.ds-btn--outline {
72
- --ds-btn__border-color: #{$ds-color-component-brand};
72
+ --ds-btn__border-color: #{$ds-color-surface-brand};
73
73
  --ds-btn__color: #{$ds-color-text-brand};
74
74
  }
75
75
  &.ds-btn--transparent {
@@ -78,27 +78,27 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
78
78
  }
79
79
 
80
80
  &.ds-btn--staticWhite {
81
- --ds-btn__outline-color: #{$ds-color-static-white};
81
+ --ds-btn__outline-color: #{$ds-color-neutral-white};
82
82
  &.ds-btn--default,
83
83
  &.ds-btn--elevated {
84
- --ds-btn__background-color: #{$ds-color-static-white};
85
- --ds-btn__color: #{$ds-color-static-black};
84
+ --ds-btn__background-color: #{$ds-color-neutral-white};
85
+ --ds-btn__color: #{$ds-color-neutral-black};
86
86
  }
87
87
  &.ds-btn--outline {
88
88
  --ds-btn__background-color: transparent;
89
- --ds-btn__border-color: #{$ds-color-static-white};
90
- --ds-btn__color: #{$ds-color-static-white};
89
+ --ds-btn__border-color: #{$ds-color-neutral-white};
90
+ --ds-btn__color: #{$ds-color-neutral-white};
91
91
  }
92
92
  &.ds-btn--transparent {
93
- --ds-btn__color: #{$ds-color-static-white};
93
+ --ds-btn__color: #{$ds-color-neutral-white};
94
94
  }
95
95
  }
96
96
 
97
97
  &.ds-btn--toggle.ds-btn--selected:not(.ds-btn--icon-only) {
98
98
  --ds-btn__background-color: transparent;
99
99
  --ds-btn__color: #{$ds-color-text-primary};
100
- --ds-btn__border-color: #{$ds-color-component-primary};
101
- --ds-btn__outline-color: #{$ds-color-border-focus-02};
100
+ --ds-btn__border-color: #{$ds-color-border-primary-strongest};
101
+ --ds-btn__outline-color: #{$ds-color-border-primary-strongest};
102
102
  }
103
103
  &.ds-btn--transparent {
104
104
  --ds-btn__background-color: transparent;
@@ -109,42 +109,54 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
109
109
  }
110
110
 
111
111
  &.ds-btn--elevated {
112
- box-shadow: ds-shadow-get-box-shadow($ds-shadow-elevation-m);
112
+ box-shadow: ds-shadow-get-box-shadow($ds-shadow-elevation-md);
113
113
  }
114
114
 
115
115
  &.ds-btn--small {
116
116
  --ds-btn__icon-size: #{ds-px-to-rem(20px)};
117
117
  --ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-050), true)};
118
118
  padding: _btn-brdr(ds-spacing($ds-s-025), true) _btn-brdr(ds-spacing($ds-s-075), true);
119
- @include ds-typography($ds-typography-detailstandard-button-small);
119
+ @include ds-typography($token: $ds-typography-functional-body-sm, $fontWeight: $ds-fontweight-semibold);
120
120
  @at-root .ds-force-px#{&} {
121
121
  --ds-btn__icon-size: 20px;
122
122
  --ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-050))};
123
123
  padding: _btn-brdr(ds-spacing($ds-s-025)) _btn-brdr(ds-spacing($ds-s-075));
124
- @include ds-typography($ds-typography-detailstandard-button-small, true);
124
+ @include ds-typography(
125
+ $token: $ds-typography-functional-body-sm,
126
+ $fontWeight: $ds-fontweight-semibold,
127
+ $forcePx: true
128
+ );
125
129
  }
126
130
  }
127
131
 
128
132
  &.ds-btn--medium {
129
133
  --ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-100), true)};
130
134
  padding: _btn-brdr(ds-spacing($ds-s-050), true) _btn-brdr(ds-spacing($ds-s-125), true);
131
- @include ds-typography($ds-typography-detailstandard-button);
135
+ @include ds-typography($token: $ds-typography-functional-body-md, $fontWeight: $ds-fontweight-semibold);
132
136
  @at-root .ds-force-px#{&} {
133
137
  --ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-100))};
134
138
  padding: _btn-brdr(ds-spacing($ds-s-050)) _btn-brdr(ds-spacing($ds-s-125));
135
- @include ds-typography($ds-typography-detailstandard-button, true);
139
+ @include ds-typography(
140
+ $token: $ds-typography-functional-body-md,
141
+ $fontWeight: $ds-fontweight-semibold,
142
+ $forcePx: true
143
+ );
136
144
  }
137
145
  }
138
146
 
139
147
  &.ds-btn--large {
140
148
  --ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-125), true)};
141
149
  padding: _btn-brdr(ds-spacing($ds-s-075), true) _btn-brdr(ds-spacing($ds-s-150), true);
142
- @include ds-typography($ds-typography-detailstandard-button);
150
+ @include ds-typography($token: $ds-typography-functional-body-md, $fontWeight: $ds-fontweight-semibold);
143
151
 
144
152
  @at-root .ds-force-px#{&} {
145
153
  --ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-125))};
146
154
  padding: _btn-brdr(ds-spacing($ds-s-075)) _btn-brdr(ds-spacing($ds-s-150));
147
- @include ds-typography($ds-typography-detailstandard-button, true);
155
+ @include ds-typography(
156
+ $token: $ds-typography-functional-body-md,
157
+ $fontWeight: $ds-fontweight-semibold,
158
+ $forcePx: true
159
+ );
148
160
  }
149
161
  }
150
162
 
@@ -152,12 +164,16 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
152
164
  --ds-btn__icon-size: #{ds-px-to-rem(32px)};
153
165
  --ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-200), true) - ds-px-to-rem(4px)};
154
166
  padding: _btn-brdr(ds-spacing($ds-s-075), true) _btn-brdr(ds-spacing($ds-s-200), true);
155
- @include ds-typography($ds-typography-detailstandard-button-xlarge);
167
+ @include ds-typography($token: $ds-typography-functional-body-lg, $fontWeight: $ds-fontweight-semibold);
156
168
  @at-root .ds-force-px#{&} {
157
169
  --ds-btn__icon-size: 32px;
158
170
  --ds-btn__icon-padding: #{_btn-brdr(ds-spacing($ds-s-200)) - 4px};
159
171
  padding: _btn-brdr(ds-spacing($ds-s-075)) _btn-brdr(ds-spacing($ds-s-200));
160
- @include ds-typography($ds-typography-detailstandard-button-xlarge, true);
172
+ @include ds-typography(
173
+ $token: $ds-typography-functional-body-lg,
174
+ $fontWeight: $ds-fontweight-semibold,
175
+ $forcePx: true
176
+ );
161
177
  }
162
178
  }
163
179
 
@@ -166,7 +182,7 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
166
182
  }
167
183
 
168
184
  &:focus-visible {
169
- outline: ds-border-width(x2) solid var(--ds-btn__outline-color);
185
+ outline: ds-border-width(xs) solid var(--ds-btn__outline-color);
170
186
  outline-offset: 2px;
171
187
  }
172
188
 
@@ -299,9 +315,9 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
299
315
  // we have to override spinner styling since spinner variant is based on "off" button variant
300
316
  &.ds-btn--selected.ds-loading:not(.ds-btn--icon-only) {
301
317
  .ds-spinner__inner {
302
- border-top-color: $ds-color-icon-primary;
318
+ border-top-color: $ds-color-text-primary;
303
319
  &::before {
304
- border-color: $ds-color-icon-primary;
320
+ border-color: $ds-color-text-primary;
305
321
  }
306
322
  }
307
323
  }
@@ -21,7 +21,7 @@ $ds-checkbox__icon-size: 24px;
21
21
  &::before {
22
22
  content: "";
23
23
  position: absolute;
24
- border-radius: ds-border-radius(x1);
24
+ border-radius: ds-border-radius(012);
25
25
  top: 0;
26
26
  left: 0;
27
27
  right: 0;
@@ -38,11 +38,11 @@ $ds-checkbox__icon-size: 24px;
38
38
 
39
39
  .ds-checkbox__text {
40
40
  margin: ds-spacing(0 0 0 $ds-s-050, rem);
41
- @include ds-typography($ds-typography-functionalbody02);
41
+ @include ds-typography($ds-typography-functional-body-md);
42
42
 
43
43
  @at-root .ds-force-px#{&} {
44
44
  margin: ds-spacing(0 0 0 $ds-s-050);
45
- @include ds-typography($ds-typography-functionalbody02, true);
45
+ @include ds-typography($ds-typography-functional-body-md, true);
46
46
  }
47
47
  }
48
48
 
@@ -52,7 +52,7 @@ $ds-checkbox__icon-size: 24px;
52
52
  position: relative;
53
53
  height: ds-px-to-rem($ds-checkbox__icon-size);
54
54
  width: ds-px-to-rem($ds-checkbox__icon-size);
55
- color: $ds-color-icon-primary;
55
+ color: $ds-color-text-primary;
56
56
  @at-root .ds-force-px#{&} {
57
57
  height: $ds-checkbox__icon-size;
58
58
  width: $ds-checkbox__icon-size;
@@ -87,8 +87,8 @@ $ds-checkbox__icon-size: 24px;
87
87
  }
88
88
 
89
89
  &:focus-visible + .ds-checkbox__inner {
90
- border-radius: ds-border-radius(x1);
91
- outline: ds-border-width(x2) solid $ds-color-border-focus-02;
90
+ border-radius: ds-border-radius(012);
91
+ outline: ds-border-width(xs) solid $ds-color-border-primary-strongest;
92
92
  outline-offset: 2px;
93
93
  }
94
94
  }
@@ -96,7 +96,7 @@ $ds-checkbox__icon-size: 24px;
96
96
  &.ds-form-field__error,
97
97
  .invalid {
98
98
  .ds-checkbox__inner .ds-checkbox__icon {
99
- color: $ds-color-icon-critical;
99
+ color: $ds-color-text-critical;
100
100
  }
101
101
 
102
102
  .ds-form-field__error-message {
@@ -116,10 +116,10 @@ $ds-checkbox__icon-size: 24px;
116
116
  .ds-checkbox input:disabled + .ds-checkbox__inner {
117
117
  cursor: not-allowed;
118
118
  .ds-checkbox__icon {
119
- color: $ds-color-icon-disabled;
119
+ color: $ds-color-text-primary-disabled;
120
120
  }
121
121
  .ds-checkbox__text {
122
- color: $ds-color-text-disabled;
122
+ color: $ds-color-text-primary-disabled;
123
123
  }
124
124
  &::before {
125
125
  background-color: unset;
@@ -2,7 +2,7 @@
2
2
  @use "../icon-sprite/icon-sprite.scss";
3
3
 
4
4
  $ds-disclaimer__icon-size: 20px;
5
- $ds-btn-outlined__border-width: ds-border-width(x1);
5
+ $ds-btn-outlined__border-width: ds-border-width(xxs);
6
6
 
7
7
  .ds-disclaimer {
8
8
  padding-bottom: ds-spacing($ds-s-100);
@@ -10,7 +10,7 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
10
10
 
11
11
  .ds-disclaimer__body-html,
12
12
  .ds-disclaimer__icon-wrapper {
13
- background-color: $ds-color-surface-raised;
13
+ background-color: $ds-color-surface-primary-raised-soft;
14
14
  padding: ds-spacing($ds-s-075 $ds-s-100);
15
15
  }
16
16
 
@@ -22,12 +22,12 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
22
22
  .ds-disclaimer__body-html {
23
23
  margin: 0;
24
24
  flex-grow: 1;
25
- @include ds-typography($ds-typography-functionalbody01) {
26
- color: $ds-color-text-primary-02;
25
+ @include ds-typography($ds-typography-functional-body-sm) {
26
+ color: $ds-color-text-primary-subtle;
27
27
  }
28
28
 
29
29
  @at-root .ds-force-px#{&} {
30
- @include ds-typography($ds-typography-functionalbody01, true);
30
+ @include ds-typography($ds-typography-functional-body-sm, true);
31
31
  }
32
32
 
33
33
  a {
@@ -35,11 +35,11 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
35
35
  }
36
36
  b,
37
37
  strong {
38
- @include ds-typography($ds-typography-functionalbody01, $fontWeight: $ds-fontweight-semibold) {
38
+ @include ds-typography($ds-typography-functional-body-sm, $fontWeight: $ds-fontweight-semibold) {
39
39
  color: $ds-color-text-primary;
40
40
  }
41
41
  @at-root .ds-force-px#{&} {
42
- @include ds-typography($ds-typography-functionalbody01, $forcePx: true, $fontWeight: $ds-fontweight-semibold);
42
+ @include ds-typography($ds-typography-functional-body-sm, $forcePx: true, $fontWeight: $ds-fontweight-semibold);
43
43
  }
44
44
  }
45
45
  }
@@ -50,7 +50,7 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
50
50
  height: ds-px-to-rem($ds-disclaimer__icon-size);
51
51
  width: ds-px-to-rem($ds-disclaimer__icon-size);
52
52
  margin: 0;
53
- color: $ds-color-icon-primary;
53
+ color: $ds-color-text-primary;
54
54
  @at-root .ds-force-px#{&} {
55
55
  height: $ds-disclaimer__icon-size;
56
56
  width: $ds-disclaimer__icon-size;
@@ -72,14 +72,14 @@ $ds-btn-outlined__border-width: ds-border-width(x1);
72
72
  &.ds-disclaimer--native {
73
73
  .ds-disclaimer__body-html,
74
74
  .ds-disclaimer__icon-wrapper {
75
- background-color: $ds-color-static-ad-yellow;
75
+ background-color: $ds-color-surface-ad-yellow;
76
76
  }
77
77
 
78
78
  .ds-icon,
79
79
  .ds-disclaimer__body-html,
80
80
  .ds-disclaimer__body-html b,
81
81
  .ds-disclaimer__body-html strong {
82
- color: $ds-color-static-black;
82
+ color: $ds-color-neutral-black;
83
83
  }
84
84
  }
85
85
  }
@@ -8,7 +8,7 @@
8
8
  margin: 0 auto;
9
9
  border: none;
10
10
  background-color: $ds-color-border-primary;
11
- height: ds-border-width(x1);
11
+ height: ds-border-width(xxs);
12
12
  width: 100%;
13
13
  }
14
14
  }
@@ -17,8 +17,8 @@
17
17
  background-color: $ds-color-border-primary;
18
18
  }
19
19
  .ds-divider--medium hr {
20
- background-color: $ds-color-border-primary-02;
20
+ background-color: $ds-color-border-primary-strong;
21
21
  }
22
22
  .ds-divider--strong hr {
23
- background-color: $ds-color-border-primary-03;
23
+ background-color: $ds-color-border-primary-strongest;
24
24
  }
@@ -13,7 +13,7 @@
13
13
 
14
14
  h2 {
15
15
  margin: 0;
16
- @include ds-typography($ds-typography-functionalheading03) {
16
+ @include ds-typography($ds-typography-functional-heading-sm) {
17
17
  color: $ds-color-text-primary;
18
18
  }
19
19
  }
@@ -21,8 +21,8 @@
21
21
  .ds-empty-state__body {
22
22
  display: block;
23
23
  margin-top: ds-spacing($ds-s-025);
24
- @include ds-typography($ds-typography-functionalbody02) {
25
- color: $ds-color-text-primary-02;
24
+ @include ds-typography($ds-typography-functional-body-md) {
25
+ color: $ds-color-text-primary-subtle;
26
26
  }
27
27
  }
28
28
  }