@bonniernews/dn-design-system-web 25.0.5 → 25.0.6-beta.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.
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/image-caption/image-caption.scss +3 -3
  17. package/components/link-box/link-box-item.scss +4 -4
  18. package/components/link-box/link-box.scss +1 -1
  19. package/components/list-item/list-item.scss +24 -24
  20. package/components/modal/modal.scss +4 -4
  21. package/components/pagination/pagination.scss +4 -4
  22. package/components/pictogram/pictogram.scss +3 -3
  23. package/components/profile-header/profile-header.scss +7 -7
  24. package/components/quote/quote.scss +2 -2
  25. package/components/radio-button/radio-button.scss +9 -9
  26. package/components/spinner/spinner.scss +14 -14
  27. package/components/switch/switch.scss +13 -13
  28. package/components/tag-header/tag-header.scss +8 -8
  29. package/components/teaser-centered/teaser-centered.scss +1 -1
  30. package/components/teaser-footer/teaser-footer.scss +5 -5
  31. package/components/teaser-image/teaser-image.scss +4 -4
  32. package/components/teaser-large/teaser-large.scss +7 -6
  33. package/components/teaser-list-vertical/teaser-list-vertical.scss +8 -8
  34. package/components/teaser-longlife/teaser-longlife.scss +7 -7
  35. package/components/teaser-native/teaser-native.scss +19 -19
  36. package/components/teaser-onsite/teaser-onsite.scss +2 -2
  37. package/components/teaser-package/teaser-package.scss +2 -2
  38. package/components/teaser-right-now/teaser-right-now.scss +1 -1
  39. package/components/teaser-slideshow/teaser-slideshow.scss +3 -3
  40. package/components/teaser-split/teaser-split.scss +5 -5
  41. package/components/teaser-standard/teaser-standard.scss +5 -5
  42. package/components/teaser-swipe-card/teaser-swipe-card.scss +10 -10
  43. package/components/teaser-tipsa/teaser-tipsa.scss +2 -2
  44. package/components/text-button/text-button.scss +7 -7
  45. package/components/text-button-toggle/text-button-toggle.scss +7 -7
  46. package/components/text-input/text-input.scss +22 -23
  47. package/components/tooltip/tooltip.scss +5 -5
  48. package/components/video-caption/video-caption.scss +4 -4
  49. package/components/vip-badge/vip-badge.scss +10 -10
  50. package/foundations/colors.scss +6 -18
  51. package/foundations/cssVariables.scss +1 -0
  52. package/foundations/gradients.scss +25 -0
  53. package/foundations/helpers/colors.scss +10 -18
  54. package/foundations/helpers/forward.helpers.scss +1 -0
  55. package/foundations/helpers/gradients.scss +33 -0
  56. package/foundations/helpers/hover.scss +2 -2
  57. package/foundations/helpers/links.scss +4 -3
  58. package/foundations/helpers/metrics.scss +4 -6
  59. package/foundations/helpers/shadows.scss +5 -5
  60. package/foundations/helpers/typography.scss +11 -12
  61. package/foundations/shadows.scss +4 -4
  62. package/foundations/variables/border-width.scss +5 -0
  63. package/foundations/variables/colorsCssVariables.scss +84 -82
  64. package/foundations/variables/colorsDnDark.scss +89 -0
  65. package/foundations/variables/colorsDnLight.scss +89 -0
  66. package/foundations/variables/gradientsDnDark.scss +46 -0
  67. package/foundations/variables/gradientsDnLight.scss +46 -0
  68. package/foundations/variables/gradientsList.scss +4 -0
  69. package/foundations/variables/radius.scss +6 -0
  70. package/foundations/variables/shadowsDnDark.scss +30 -0
  71. package/foundations/variables/shadowsDnLight.scss +30 -0
  72. package/foundations/variables/shadowsList.scss +4 -0
  73. package/foundations/variables/spacingBase.scss +1 -0
  74. package/foundations/variables/spacingBaseList.scss +1 -0
  75. package/foundations/variables/spacingDetail.scss +3 -16
  76. package/foundations/variables/spacingDetailList.scss +3 -16
  77. package/foundations/variables/spacingDetailScreenLarge.scss +3 -16
  78. package/foundations/variables/typographyLetterSpacing.scss +1 -1
  79. package/foundations/variables/typographyLineHeight.scss +3 -3
  80. package/foundations/variables/typographyList.scss +53 -0
  81. package/foundations/variables/typographyScreenExtraLarge.scss +381 -0
  82. package/foundations/variables/typographyScreenLarge.scss +381 -0
  83. package/foundations/variables/{typographyTokensScreenSmall.scss → typographyScreenSmall.scss} +267 -309
  84. package/package.json +2 -2
  85. package/preact/components/icon-with-wrapper/icon-with-wrapper.js +86 -84
  86. package/preact/components/icon-with-wrapper/icon-with-wrapper.js.map +3 -3
  87. package/types-lib/ds-color.d.ts +97 -93
  88. package/variables/colors-dark-mode.json +109 -0
  89. package/variables/colors-light-mode.json +109 -0
  90. package/variables/gradients-dark-mode.json +58 -0
  91. package/variables/gradients-light-mode.json +58 -0
  92. package/variables/typography-list.json +55 -0
  93. package/foundations/variables/colorsDnDarkTokens.scss +0 -88
  94. package/foundations/variables/colorsDnLightTokens.scss +0 -87
  95. package/foundations/variables/decorations.scss +0 -1
  96. package/foundations/variables/metrics.scss +0 -12
  97. package/foundations/variables/shadowsDnDarkTokens.scss +0 -34
  98. package/foundations/variables/shadowsDnLightTokens.scss +0 -34
  99. package/foundations/variables/shadowsTokensList.scss +0 -4
  100. package/foundations/variables/typographyTokensList.scss +0 -59
  101. package/foundations/variables/typographyTokensScreenExtraLarge.scss +0 -422
  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
@@ -2,7 +2,7 @@
2
2
  @use "../../assets/teaser/teaser.scss" as *;
3
3
 
4
4
  .ds-teaser.ds-teaser--slideshow {
5
- background-color: $ds-color-surface-background;
5
+ background-color: $ds-color-surface-primary;
6
6
  overflow: hidden;
7
7
  max-height: 230px;
8
8
  box-sizing: border-box;
@@ -20,12 +20,12 @@
20
20
 
21
21
  .ds-teaser__title {
22
22
  display: inline;
23
- @include ds-typography($ds-typography-functionalheading01, $lineHeight: $ds-lineheight-m);
23
+ @include ds-typography($ds-typography-functional-heading-xxs, $lineHeight: $ds-lineheight-md);
24
24
  }
25
25
 
26
26
  .ds-teaser__text {
27
27
  display: inline;
28
- @include ds-typography($ds-typography-functionalbody02, $lineHeight: $ds-lineheight-m);
28
+ @include ds-typography($ds-typography-functional-body-md, $lineHeight: $ds-lineheight-md);
29
29
  }
30
30
  }
31
31
 
@@ -7,12 +7,12 @@
7
7
  flex-wrap: wrap;
8
8
  position: relative;
9
9
  box-sizing: border-box;
10
- background: $ds-color-background-primary;
10
+ background: $ds-color-surface-primary;
11
11
 
12
12
  @at-root .ds-teaser-package > & + & {
13
13
  &:before {
14
14
  content: "";
15
- height: ds-border-width(x1);
15
+ height: ds-border-width(xxs);
16
16
  background-color: $ds-color-border-primary;
17
17
  left: 0;
18
18
  right: 0;
@@ -56,7 +56,7 @@
56
56
  content: "";
57
57
  margin-top: ds-spacing($ds-s-100);
58
58
  padding-top: ds-spacing($ds-s-075);
59
- border-top: ds-border-width(x1) solid $ds-color-border-primary;
59
+ border-top: ds-border-width(xxs) solid $ds-color-border-primary;
60
60
 
61
61
  @include ds-mq-smallest-breakpoint(tablet) {
62
62
  margin-top: 0;
@@ -70,14 +70,14 @@
70
70
  }
71
71
 
72
72
  .ds-teaser__title {
73
- @include ds-typography($ds-typography-detailteaser-twin);
73
+ @include ds-typography($ds-typography-detail-teaser-twin);
74
74
  }
75
75
 
76
76
  .ds-teaser__media {
77
77
  margin-top: ds-spacing($ds-s-025);
78
78
 
79
79
  .ds-teaser-image__byline {
80
- @include ds-typography($ds-typography-functionalmeta01, $forcePx: true, $lineHeight: $ds-lineheight-l);
80
+ @include ds-typography($ds-typography-functional-meta-sm, $forcePx: true, $lineHeight: $ds-lineheight-lg);
81
81
  }
82
82
 
83
83
  @include ds-mq-largest-breakpoint(mobile) {
@@ -10,19 +10,19 @@
10
10
  }
11
11
 
12
12
  .ds-teaser__title {
13
- @include ds-typography($ds-typography-detailteaser-standard);
13
+ @include ds-typography($ds-typography-detail-teaser-standard);
14
14
 
15
15
  &--italic {
16
- @include ds-typography($ds-typography-detailteaser-standard-opinion);
16
+ @include ds-typography($ds-typography-detail-teaser-standard-opinion);
17
17
  }
18
18
  }
19
19
 
20
20
  &.ds-teaser--compact {
21
21
  .ds-teaser__title {
22
- @include ds-typography($ds-typography-detailteaser-standard-compact);
22
+ @include ds-typography($ds-typography-detail-teaser-standard-compact);
23
23
 
24
24
  &--italic {
25
- @include ds-typography($ds-typography-detailteaser-standard-compact-opinion);
25
+ @include ds-typography($ds-typography-detail-teaser-standard-compact-opinion);
26
26
  }
27
27
  }
28
28
  }
@@ -43,7 +43,7 @@
43
43
  float: right;
44
44
 
45
45
  .ds-teaser-image__byline {
46
- @include ds-typography($ds-typography-functionalmeta01, $forcePx: true, $lineHeight: $ds-lineheight-l);
46
+ @include ds-typography($ds-typography-functional-meta-sm, $forcePx: true, $lineHeight: $ds-lineheight-lg);
47
47
  }
48
48
 
49
49
  @include ds-mq-only-breakpoint(mobile) {
@@ -24,15 +24,15 @@
24
24
  display: flex;
25
25
  flex-direction: column;
26
26
  padding: ds-spacing($ds-s-075);
27
- border: ds-border-width(x1) solid $ds-color-border-primary;
28
- border-radius: ds-border-radius(x1);
27
+ border: ds-border-width(xxs) solid $ds-color-border-primary;
28
+ border-radius: ds-border-radius(012);
29
29
  margin: 0;
30
30
  flex: 1;
31
31
  }
32
32
 
33
33
  .ds-teaser-image {
34
- border-top-right-radius: ds-border-radius(x1);
35
- border-top-left-radius: ds-border-radius(x1);
34
+ border-top-right-radius: ds-border-radius(012);
35
+ border-top-left-radius: ds-border-radius(012);
36
36
  overflow: hidden;
37
37
  }
38
38
 
@@ -44,15 +44,15 @@
44
44
  }
45
45
 
46
46
  .ds-teaser-swipe-card__time {
47
- @include ds-typography($ds-typography-functionalmeta02, $lineHeight: $ds-lineheight-l) {
48
- color: $ds-color-text-primary-02;
47
+ @include ds-typography($ds-typography-functional-meta-md, $lineHeight: $ds-lineheight-lg) {
48
+ color: $ds-color-text-primary-subtle;
49
49
  }
50
50
  }
51
51
 
52
52
  .ds-teaser__title {
53
53
  margin-bottom: ds-spacing($ds-s-050);
54
54
  flex: 1;
55
- @include ds-typography($ds-typography-expressiveheading01);
55
+ @include ds-typography($ds-typography-expressive-heading-xxs);
56
56
  }
57
57
 
58
58
  @include ds-hover(true) {
@@ -64,7 +64,7 @@
64
64
  &.ds-teaser-swipe-card--insandare {
65
65
  .ds-teaser__title {
66
66
  @include ds-typography(
67
- $ds-typography-expressiveheading01,
67
+ $ds-typography-expressive-heading-xxs,
68
68
  $fontWeight: $ds-fontweight-medium,
69
69
  $fontStyle: italic
70
70
  );
@@ -92,7 +92,7 @@
92
92
  display: flex;
93
93
  align-items: center;
94
94
  margin-bottom: ds-spacing($ds-s-025);
95
- @include ds-typography($ds-typography-functionalbody01, $fontWeight: $ds-fontweight-semibold) {
95
+ @include ds-typography($ds-typography-functional-body-sm, $fontWeight: $ds-fontweight-semibold) {
96
96
  color: $ds-theme-color;
97
97
  }
98
98
 
@@ -109,7 +109,7 @@
109
109
  &::after {
110
110
  content: "";
111
111
  display: block;
112
- height: ds-border-width(x1);
112
+ height: ds-border-width(xxs);
113
113
  flex: 1;
114
114
  background-color: $ds-color-border-primary;
115
115
  margin-left: ds-spacing($ds-s-050);
@@ -7,7 +7,7 @@
7
7
  }
8
8
 
9
9
  .ds-teaser__title {
10
- @include ds-typography($ds-typography-detailteaser-tipsa, $lineHeight: $ds-lineheight-m);
10
+ @include ds-typography($ds-typography-detail-teaser-tipsa, $lineHeight: $ds-lineheight-md);
11
11
  }
12
12
 
13
13
  @include ds-hover(true) {
@@ -18,6 +18,6 @@
18
18
 
19
19
  .ds-teaser__text {
20
20
  margin-top: ds-spacing($ds-s-050);
21
- @include ds-typography($ds-typography-functionalbody02);
21
+ @include ds-typography($ds-typography-functional-body-md);
22
22
  }
23
23
  }
@@ -13,7 +13,7 @@ $ds-text-btn__underline-offset: 2px;
13
13
  display: inline-flex;
14
14
  align-items: center;
15
15
  justify-content: center;
16
- border-radius: ds-border-radius(x1);
16
+ border-radius: ds-border-radius(012);
17
17
  padding: 0;
18
18
  position: relative;
19
19
  text-decoration: none;
@@ -76,7 +76,7 @@ $ds-text-btn__underline-offset: 2px;
76
76
  }
77
77
 
78
78
  &:focus-visible {
79
- outline: ds-border-width(x2) solid $ds-color-border-focus-02;
79
+ outline: ds-border-width(xs) solid $ds-color-border-primary-strongest;
80
80
  outline-offset: 2px;
81
81
  }
82
82
 
@@ -87,7 +87,7 @@ $ds-text-btn__underline-offset: 2px;
87
87
 
88
88
  .ds-text-btn__text {
89
89
  text-underline-offset: $ds-text-btn__underline-offset;
90
- @include ds-typography-with-force-px($ds-typography-functionalbody02) {
90
+ @include ds-typography-with-force-px($ds-typography-functional-body-md) {
91
91
  color: $ds-color-text-primary;
92
92
  }
93
93
  }
@@ -97,7 +97,7 @@ $ds-text-btn__underline-offset: 2px;
97
97
  }
98
98
 
99
99
  &.ds-text-btn--small .ds-text-btn__text {
100
- @include ds-typography-with-force-px($ds-typography-functionalbody01);
100
+ @include ds-typography-with-force-px($ds-typography-functional-body-sm);
101
101
  }
102
102
 
103
103
  @include ds-hover() {
@@ -116,10 +116,10 @@ $ds-text-btn__underline-offset: 2px;
116
116
  background-color: unset;
117
117
  }
118
118
  .ds-icon {
119
- color: $ds-color-icon-disabled;
119
+ color: $ds-color-text-primary-disabled;
120
120
  }
121
121
  .ds-text-btn__text {
122
- color: $ds-color-text-disabled;
122
+ color: $ds-color-text-primary-disabled;
123
123
  }
124
124
  }
125
125
 
@@ -142,7 +142,7 @@ $ds-text-btn__underline-offset: 2px;
142
142
  height: var(--ds-text-btn__icon-size);
143
143
  width: var(--ds-text-btn__icon-size);
144
144
  margin: var(--ds-text-btn__icon-margin);
145
- color: $ds-color-icon-primary;
145
+ color: $ds-color-text-primary;
146
146
  svg {
147
147
  fill: currentColor;
148
148
  }
@@ -11,10 +11,10 @@ $ds-text-btn-toggle__icon-size: 24px;
11
11
  background-color: unset;
12
12
  }
13
13
  .ds-icon {
14
- color: $ds-color-icon-disabled;
14
+ color: $ds-color-text-primary-disabled;
15
15
  }
16
16
  .ds-text-btn-toggle__text {
17
- color: $ds-color-text-disabled;
17
+ color: $ds-color-text-primary-disabled;
18
18
  }
19
19
  }
20
20
 
@@ -25,7 +25,7 @@ $ds-text-btn-toggle__icon-size: 24px;
25
25
  align-items: center;
26
26
  justify-content: center;
27
27
  background-color: transparent;
28
- border-radius: ds-border-radius(x1);
28
+ border-radius: ds-border-radius(012);
29
29
  padding: 0;
30
30
  position: relative;
31
31
 
@@ -34,7 +34,7 @@ $ds-text-btn-toggle__icon-size: 24px;
34
34
  }
35
35
 
36
36
  &:focus-visible {
37
- outline: ds-border-width(x2) solid $ds-color-border-focus-02;
37
+ outline: ds-border-width(xs) solid $ds-color-border-primary;
38
38
  outline-offset: 2px;
39
39
  }
40
40
 
@@ -62,18 +62,18 @@ $ds-text-btn-toggle__icon-size: 24px;
62
62
  height: ds-px-to-rem($ds-text-btn-toggle__icon-size);
63
63
  width: ds-px-to-rem($ds-text-btn-toggle__icon-size);
64
64
  margin: ds-spacing(0 $ds-s-050 0 0);
65
- color: $ds-color-icon-primary;
65
+ color: $ds-color-text-primary;
66
66
  svg {
67
67
  fill: currentColor;
68
68
  }
69
69
  }
70
70
 
71
71
  .ds-text-btn-toggle__text {
72
- @include ds-typography($ds-typography-functionalbody02) {
72
+ @include ds-typography($ds-typography-functional-body-md) {
73
73
  color: $ds-color-text-primary;
74
74
  }
75
75
  @at-root .ds-force-px#{&} {
76
- @include ds-typography($ds-typography-functionalbody02, true) {
76
+ @include ds-typography($ds-typography-functional-body-md, true) {
77
77
  color: $ds-color-text-primary;
78
78
  }
79
79
  }
@@ -9,7 +9,7 @@ $ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing(
9
9
 
10
10
  .ds-form-field__error {
11
11
  .ds-text-input__input {
12
- border-color: $ds-color-border-critical;
12
+ border-color: $ds-color-text-critical;
13
13
  }
14
14
  }
15
15
 
@@ -22,19 +22,19 @@ $ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing(
22
22
  .ds-text-input__input {
23
23
  box-sizing: border-box;
24
24
  width: 100%;
25
- background-color: $ds-color-component-secondary;
26
- padding: ds-px-to-rem(ds-spacing($ds-s-100) - ds-border-width(x1)) ds-spacing($ds-s-100) - ds-border-width(x1);
27
- border: solid ds-border-width(x1) $ds-color-border-primary-02;
28
- border-radius: ds-border-radius(x1);
25
+ background-color: $ds-color-surface-primary;
26
+ padding: ds-px-to-rem(ds-spacing($ds-s-100) - ds-border-width(xxs)) ds-spacing($ds-s-100) - ds-border-width(xxs);
27
+ border: solid ds-border-width(xxs) $ds-color-border-primary-strong;
28
+ border-radius: ds-border-radius(012);
29
29
  margin: 0;
30
- @include ds-typography($ds-typography-functionalbody02) {
30
+ @include ds-typography($ds-typography-functional-body-md) {
31
31
  color: $ds-color-text-primary;
32
32
  }
33
33
 
34
34
  &.password-toggle {
35
35
  padding-right: ds-px-to-rem($ds-text-input-toggle-btn__area);
36
36
  &:focus {
37
- padding-right: ds-px-to-rem($ds-text-input-toggle-btn__area - ds-border-width(x2));
37
+ padding-right: ds-px-to-rem($ds-text-input-toggle-btn__area - ds-border-width(xs));
38
38
  }
39
39
  }
40
40
 
@@ -42,30 +42,29 @@ $ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing(
42
42
  &:not(:placeholder-shown) {
43
43
  + .ds-text-input__label {
44
44
  top: 0;
45
- @include ds-typography($ds-typography-functionalmeta02);
45
+ @include ds-typography($ds-typography-functional-body-md);
46
46
 
47
47
  &::before {
48
- background-color: $ds-color-component-secondary;
48
+ background-color: $ds-color-surface-primary;
49
49
  }
50
50
  }
51
51
  }
52
52
 
53
53
  &:focus {
54
- padding: ds-px-to-rem(ds-spacing($ds-s-100) - ds-border-width(x2)) ds-spacing($ds-s-100) - ds-border-width(x2);
55
- border-color: $ds-color-border-primary-03;
56
- border-width: ds-border-width(x2);
54
+ padding: ds-px-to-rem(ds-spacing($ds-s-100) - ds-border-width(xs)) ds-spacing($ds-s-100) - ds-border-width(xs);
55
+ border-color: $ds-color-border-primary-strongest;
56
+ border-width: ds-border-width(xs);
57
57
 
58
58
  + .ds-text-input__label::before {
59
- height: ds-border-width(x2);
59
+ height: ds-border-width(xs);
60
60
  }
61
61
  }
62
62
 
63
63
  &:disabled {
64
- background-color: $ds-color-component-secondary-overlay-02;
65
64
  cursor: not-allowed;
66
65
 
67
66
  + .ds-text-input__label {
68
- color: $ds-color-text-disabled;
67
+ color: $ds-color-text-primary-disabled;
69
68
  cursor: not-allowed;
70
69
  }
71
70
  }
@@ -83,12 +82,12 @@ $ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing(
83
82
  transition:
84
83
  font-size 0.1s ease-in,
85
84
  top 0.1s ease-in;
86
- @include ds-typography($ds-typography-functionalbody02);
85
+ @include ds-typography($ds-typography-functional-body-md);
87
86
  &::before {
88
87
  content: "";
89
88
  width: calc(100% + ds-spacing($ds-s-050));
90
89
  left: -#{ds-spacing($ds-s-025)};
91
- height: ds-border-width(x1);
90
+ height: ds-border-width(xxs);
92
91
  position: absolute;
93
92
  top: ds-spacing($ds-s-050, rem);
94
93
  z-index: -1;
@@ -113,31 +112,31 @@ $ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing(
113
112
  }
114
113
 
115
114
  .ds-text-input__input {
116
- padding: ds-spacing($ds-s-100) - ds-border-width(x1);
117
- @include ds-typography($ds-typography-functionalbody02, true);
115
+ padding: ds-spacing($ds-s-100) - ds-border-width(xxs);
116
+ @include ds-typography($ds-typography-functional-body-md, true);
118
117
 
119
118
  &.password-toggle {
120
119
  padding-right: $ds-text-input-toggle-btn__area;
121
120
  &:focus {
122
- padding-right: ($ds-text-input-toggle-btn__area - ds-border-width(x2));
121
+ padding-right: ($ds-text-input-toggle-btn__area - ds-border-width(xs));
123
122
  }
124
123
  }
125
124
 
126
125
  &:focus,
127
126
  &:not(:placeholder-shown) {
128
127
  + .ds-text-input__label {
129
- @include ds-typography($ds-typography-functionalmeta02, true);
128
+ @include ds-typography($ds-typography-functional-body-md, true);
130
129
  }
131
130
  }
132
131
 
133
132
  &:focus {
134
- padding: ds-spacing($ds-s-100) - ds-border-width(x2);
133
+ padding: ds-spacing($ds-s-100) - ds-border-width(xs);
135
134
  }
136
135
  }
137
136
 
138
137
  .ds-text-input__label {
139
138
  top: ds-spacing($ds-s-150);
140
- @include ds-typography($ds-typography-functionalbody02, true);
139
+ @include ds-typography($ds-typography-functional-body-md, true);
141
140
  &::before {
142
141
  top: ds-spacing($ds-s-050);
143
142
  }
@@ -5,7 +5,7 @@
5
5
  @use "../../components/icon-button/icon-button.scss";
6
6
 
7
7
  .ds-tooltip {
8
- background-color: $ds-color-surface-raised;
8
+ background-color: $ds-color-surface-primary-raised-strong;
9
9
  color: $ds-color-text-primary;
10
10
  box-sizing: border-box;
11
11
  position: relative;
@@ -13,7 +13,7 @@
13
13
  display: flex;
14
14
 
15
15
  .ds-tooltip__close {
16
- color: $ds-color-icon-primary;
16
+ color: $ds-color-text-primary;
17
17
  align-self: center;
18
18
  margin-left: ds-spacing($ds-s-100);
19
19
  }
@@ -24,7 +24,7 @@
24
24
 
25
25
  &.ds-tooltip--arrow-top::after,
26
26
  &.ds-tooltip--arrow-bottom::after {
27
- border-bottom-color: $ds-color-surface-raised;
27
+ border-bottom-color: $ds-color-surface-primary-raised-strong;
28
28
  }
29
29
 
30
30
  &--arrow-top::after {
@@ -45,11 +45,11 @@
45
45
  }
46
46
 
47
47
  .ds-tooltip__content {
48
- @include ds-typography($ds-typography-functionalbody01);
48
+ @include ds-typography($ds-typography-functional-body-sm);
49
49
 
50
50
  h2 {
51
51
  margin: 0;
52
- @include ds-typography($ds-typography-functionalbody02, $fontWeight: $ds-fontweight-semibold);
52
+ @include ds-typography($ds-typography-functional-body-md, $fontWeight: $ds-fontweight-semibold);
53
53
 
54
54
  + p {
55
55
  margin-top: 0;
@@ -1,19 +1,19 @@
1
1
  @use "../../foundations/helpers/forward.helpers.scss" as *;
2
2
 
3
3
  .ds-video-caption {
4
- @include ds-typography($ds-typography-functionalbody01) {
4
+ @include ds-typography($ds-typography-functional-body-sm) {
5
5
  color: $ds-color-text-primary;
6
6
  }
7
7
 
8
8
  .ds-video-caption__duration {
9
9
  margin-right: ds-spacing($ds-s-025);
10
- @include ds-typography($ds-typography-functionalbody01, $fontWeight: $ds-fontweight-bold);
10
+ @include ds-typography($ds-typography-functional-body-sm, $fontWeight: $ds-fontweight-bold);
11
11
  }
12
12
 
13
13
  @at-root .ds-force-px#{&} {
14
- @include ds-typography($ds-typography-functionalbody01, true);
14
+ @include ds-typography($ds-typography-functional-body-sm, true);
15
15
  .ds-video-caption__duration {
16
- @include ds-typography($ds-typography-functionalbody01, $forcePx: true, $fontWeight: $ds-fontweight-bold);
16
+ @include ds-typography($ds-typography-functional-body-sm, $forcePx: true, $fontWeight: $ds-fontweight-bold);
17
17
  }
18
18
  }
19
19
  }
@@ -7,25 +7,25 @@ $ds-vip-badge__icon-size: 16px;
7
7
  display: none;
8
8
  align-items: center;
9
9
  box-sizing: content-box;
10
- border-radius: ds-px-to-rem(ds-border-radius(x1)) 0 ds-px-to-rem(ds-border-radius(x1))
11
- ds-px-to-rem(ds-border-radius(x1));
12
- background-color: $ds-color-component-business;
13
- color: $ds-color-static-white;
14
- fill: $ds-color-static-white;
10
+ border-radius: ds-px-to-rem(ds-border-radius(012)) 0 ds-px-to-rem(ds-border-radius(012))
11
+ ds-px-to-rem(ds-border-radius(012));
12
+ background-color: $ds-color-business;
13
+ color: $ds-color-neutral-white;
14
+ fill: $ds-color-neutral-white;
15
15
  padding: ds-spacing($ds-s-025, rem);
16
16
  @include ds-typography(
17
- $ds-typography-functionalmeta01,
18
- $lineHeight: $ds-lineheight-l,
17
+ $ds-typography-functional-meta-sm,
18
+ $lineHeight: $ds-lineheight-lg,
19
19
  $letterSpacing: $ds-letterspacing-none
20
20
  );
21
21
 
22
22
  @at-root .ds-force-px#{&} {
23
- border-radius: ds-border-radius(x1) 0 ds-border-radius(x1) ds-border-radius(x1);
23
+ border-radius: ds-border-radius(012) 0 ds-border-radius(012) ds-border-radius(012);
24
24
  padding: ds-spacing($ds-s-025);
25
25
  @include ds-typography(
26
- $ds-typography-functionalmeta01,
26
+ $ds-typography-functional-meta-sm,
27
27
  $forcePx: true,
28
- $lineHeight: $ds-lineheight-l,
28
+ $lineHeight: $ds-lineheight-lg,
29
29
  $letterSpacing: $ds-letterspacing-none
30
30
  );
31
31
  }
@@ -1,12 +1,12 @@
1
1
  @use "sass:meta";
2
2
  @use "sass:string";
3
- @use "./variables/colorsDnLightTokens";
4
- @use "./variables/colorsDnDarkTokens";
3
+ @use "./variables/colorsDnLight";
4
+ @use "./variables/colorsDnDark";
5
5
  @use "./helpers/colors.scss" as *;
6
6
 
7
7
  html,
8
8
  .ds-light {
9
- @each $name, $value in meta.module-variables("colorsDnLightTokens") {
9
+ @each $name, $value in meta.module-variables("colorsDnLight") {
10
10
  --ds-color-#{string.slice($name, 8)}: #{$value};
11
11
  }
12
12
  }
@@ -26,25 +26,13 @@ html.support-color-scheme:not(.ds-light) {
26
26
  }
27
27
 
28
28
  html {
29
- --ds-theme-color: #{$ds-color-component-brand};
29
+ --ds-theme-color: #{$ds-color-text-brand};
30
30
  }
31
31
 
32
32
  .ds-theme--nyheter {
33
- --ds-theme-color: #{$ds-color-component-brand};
34
- }
35
-
36
- .ds-theme--ekonomi {
37
- --ds-theme-color: #{$ds-color-static-economy};
33
+ --ds-theme-color: #{$ds-color-text-brand};
38
34
  }
39
35
 
40
36
  .ds-theme--kultur {
41
- --ds-theme-color: #{$ds-color-static-kultur};
42
- }
43
-
44
- .ds-theme--sport {
45
- --ds-theme-color: #{$ds-color-static-sport};
46
- }
47
-
48
- .ds-theme--sthlm {
49
- --ds-theme-color: #{$ds-color-static-sthlm};
37
+ --ds-theme-color: #{$ds-color-text-culture};
50
38
  }
@@ -2,3 +2,4 @@
2
2
  @use "./fontFamily.scss";
3
3
  @use "./shadows.scss";
4
4
  @use "./spacing.scss";
5
+ @use "./gradients.scss";
@@ -0,0 +1,25 @@
1
+ @use "sass:map";
2
+ @use "sass:meta";
3
+ @use "./helpers/gradients.scss" as *;
4
+ @use "./variables/gradientsDnLight";
5
+ @use "./variables/gradientsDnDark";
6
+
7
+ html,
8
+ .ds-light {
9
+ @each $name, $value in meta.module-variables("gradientsDnLight") {
10
+ @each $key in map.keys($value) {
11
+ @include ds-gradient($key, light);
12
+ }
13
+ }
14
+ }
15
+
16
+ // for manually switching on dark mode
17
+ // dnDark should only be used in storybook otherwise use ds-dark
18
+ .dnDark,
19
+ .ds-dark {
20
+ @each $name, $value in meta.module-variables("gradientsDnDark") {
21
+ @each $key in map.keys($value) {
22
+ @include ds-gradient($key, dark);
23
+ }
24
+ }
25
+ }
@@ -3,36 +3,28 @@
3
3
  @use "sass:meta";
4
4
  @use "sass:string";
5
5
  @use "../variables/colorsCssVariables" as *;
6
- @use "../variables/colorsDnLightTokens";
7
- @use "../variables/colorsDnDarkTokens";
6
+ @use "../variables/colorsDnLight";
7
+ @use "../variables/colorsDnDark";
8
+
9
+ // Colors not available in Figma Variables
10
+ $ds-color-business: #3a8352;
11
+ $ds-color-green-100: #cee4d6;
8
12
 
9
13
  $ds-theme-color: var(--ds-theme-color);
10
14
 
11
15
  @mixin get-dark-color-scheme() {
12
- @each $name, $value in meta.module-variables("colorsDnDarkTokens") {
16
+ @each $name, $value in meta.module-variables("colorsDnDark") {
13
17
  --ds-color-#{string.slice($name, 13)}: #{$value};
14
18
  }
15
19
 
16
20
  // these are not static so needs to be defined here also
17
- --ds-theme-color: #{$ds-color-component-brand};
21
+ --ds-theme-color: #{$ds-color-text-brand};
18
22
 
19
23
  .ds-theme--nyheter {
20
- --ds-theme-color: #{$ds-color-border-brand};
21
- }
22
-
23
- .ds-theme--ekonomi {
24
- --ds-theme-color: #{$ds-color-static-economy};
24
+ --ds-theme-color: #{$ds-color-text-brand};
25
25
  }
26
26
 
27
27
  .ds-theme--kultur {
28
- --ds-theme-color: #{$ds-color-static-kultur};
29
- }
30
-
31
- .ds-theme--sport {
32
- --ds-theme-color: #{$ds-color-static-sport};
33
- }
34
-
35
- .ds-theme--sthlm {
36
- --ds-theme-color: #{$ds-color-static-sthlm};
28
+ --ds-theme-color: #{$ds-color-text-culture};
37
29
  }
38
30
  }
@@ -10,3 +10,4 @@
10
10
  @forward "spacing.scss";
11
11
  @forward "typography.scss";
12
12
  @forward "utilities.scss";
13
+ @forward "gradients.scss";