@bonniernews/dn-design-system-web 21.1.5 → 21.2.1-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 (39) hide show
  1. package/CHANGELOG.md +53 -3
  2. package/assets/teaser/teaser.scss +7 -1
  3. package/components/divider/README.md +1 -3
  4. package/components/group-header/group-header.scss +1 -1
  5. package/components/teaser-breaking/README-UXD.md +0 -0
  6. package/components/teaser-breaking/README.md +46 -0
  7. package/components/teaser-breaking/teaser-breaking.njk +46 -0
  8. package/components/teaser-breaking/teaser-breaking.scss +52 -0
  9. package/components/teaser-image/teaser-image.scss +1 -1
  10. package/components/teaser-large/teaser-large.njk +13 -3
  11. package/components/teaser-large/teaser-large.scss +16 -0
  12. package/components/teaser-list-vertical/teaser-list-vertical.njk +0 -1
  13. package/components/teaser-native/teaser-native.njk +5 -3
  14. package/components/teaser-native/teaser-native.scss +0 -6
  15. package/components/teaser-onsite/README.md +1 -8
  16. package/components/teaser-onsite/teaser-onsite.njk +5 -1
  17. package/components/teaser-onsite/teaser-onsite.tsx +1 -1
  18. package/components/teaser-package/teaser-package.scss +17 -6
  19. package/components/teaser-slideshow/teaser-slideshow.scss +1 -1
  20. package/components/teaser-split/teaser-split.njk +6 -2
  21. package/components/teaser-split/teaser-split.scss +3 -1
  22. package/components/teaser-standard/teaser-standard.njk +7 -3
  23. package/components/teaser-standard/teaser-standard.scss +5 -6
  24. package/foundations/helpers/colors.scss +1 -6
  25. package/foundations/variables/colorsCssVariables.scss +4 -0
  26. package/foundations/variables/colorsDnDarkTokens.scss +64 -60
  27. package/foundations/variables/colorsDnLightTokens.scss +55 -51
  28. package/foundations/variables/metrics.scss +2 -1
  29. package/foundations/variables/typographyFontWeight.scss +1 -0
  30. package/foundations/variables/typographyTokensList.scss +1 -0
  31. package/foundations/variables/typographyTokensScreenExtraLarge.scss +11 -4
  32. package/foundations/variables/typographyTokensScreenLarge.scss +10 -3
  33. package/foundations/variables/typographyTokensScreenSmall.scss +13 -6
  34. package/helpers/teaser.tsx +4 -2
  35. package/package.json +1 -1
  36. package/tokens/colors-css-variables.json +5 -1
  37. package/tokens/colors-dark-mode.json +64 -60
  38. package/tokens/colors-light-mode.json +57 -53
  39. package/tokens/typography-list.json +1 -0
@@ -5,6 +5,10 @@
5
5
  padding: ds-spacing($ds-s-075 $ds-s-100 0);
6
6
  overflow: hidden;
7
7
 
8
+ .ds-teaser__vignette {
9
+ margin-top: ds-spacing($ds-s-025);
10
+ }
11
+
8
12
  .ds-teaser__title {
9
13
  @include ds-typography($ds-typography-detailteaser-standard);
10
14
 
@@ -28,17 +32,12 @@
28
32
  margin-bottom: ds-spacing($ds-s-100);
29
33
  }
30
34
 
31
- &::after {
32
- content: "";
33
- display: block;
34
- clear: both;
35
- }
36
-
37
35
  .ds-teaser__content {
38
36
  display: block;
39
37
  }
40
38
 
41
39
  .ds-teaser__media {
40
+ margin-top: ds-spacing($ds-s-025);
42
41
  margin-bottom: ds-spacing($ds-s-100);
43
42
  margin-left: ds-spacing($ds-s-100);
44
43
  float: right;
@@ -6,11 +6,6 @@
6
6
  @use "../variables/colorsDnLightTokens";
7
7
  @use "../variables/colorsDnDarkTokens";
8
8
 
9
- // Temporary variables before we update tokens
10
- $bauta-surface-color: #360003;
11
- $updated-color-border-primary: #ffffff19;
12
- // end of temporary variables
13
-
14
9
  $ds-theme-color: var(--ds-theme-color);
15
10
 
16
11
  @mixin get-dark-color-scheme() {
@@ -22,7 +17,7 @@ $ds-theme-color: var(--ds-theme-color);
22
17
  --ds-theme-color: #{$ds-color-component-brand};
23
18
 
24
19
  .ds-theme--nyheter {
25
- --ds-theme-color: #{$ds-color-component-brand};
20
+ --ds-theme-color: #{$ds-color-border-brand};
26
21
  }
27
22
 
28
23
  .ds-theme--ekonomi {
@@ -11,6 +11,7 @@ $ds-color-text-brand: var(--ds-color-text-brand);
11
11
  $ds-color-text-body-link: var(--ds-color-text-body-link);
12
12
  $ds-color-text-body-link-visited: var(--ds-color-text-body-link-visited);
13
13
  $ds-color-text-positive: var(--ds-color-text-positive);
14
+ $ds-color-text-culture: var(--ds-color-text-culture);
14
15
  $ds-color-icon-primary: var(--ds-color-icon-primary);
15
16
  $ds-color-icon-primary-02: var(--ds-color-icon-primary-02);
16
17
  $ds-color-icon-secondary: var(--ds-color-icon-secondary);
@@ -21,6 +22,7 @@ $ds-color-icon-on-business: var(--ds-color-icon-on-business);
21
22
  $ds-color-icon-brand: var(--ds-color-icon-brand);
22
23
  $ds-color-icon-on-critical: var(--ds-color-icon-on-critical);
23
24
  $ds-color-icon-on-success: var(--ds-color-icon-on-success);
25
+ $ds-color-icon-culture: var(--ds-color-icon-culture);
24
26
  $ds-color-component-brand: var(--ds-color-component-brand);
25
27
  $ds-color-component-business: var(--ds-color-component-business);
26
28
  $ds-color-component-primary: var(--ds-color-component-primary);
@@ -45,6 +47,7 @@ $ds-color-surface-korsord: var(--ds-color-surface-korsord);
45
47
  $ds-color-surface-sudoko: var(--ds-color-surface-sudoko);
46
48
  $ds-color-surface-brand: var(--ds-color-surface-brand);
47
49
  $ds-color-surface-inverted: var(--ds-color-surface-inverted);
50
+ $ds-color-surface-breaking: var(--ds-color-surface-breaking);
48
51
  $ds-color-border-primary: var(--ds-color-border-primary);
49
52
  $ds-color-border-primary-02: var(--ds-color-border-primary-02);
50
53
  $ds-color-border-primary-03: var(--ds-color-border-primary-03);
@@ -56,6 +59,7 @@ $ds-color-border-focus-02: var(--ds-color-border-focus-02);
56
59
  $ds-color-border-focus-03: var(--ds-color-border-focus-03);
57
60
  $ds-color-border-focus-04: var(--ds-color-border-focus-04);
58
61
  $ds-color-border-brand: var(--ds-color-border-brand);
62
+ $ds-color-border-culture: var(--ds-color-border-culture);
59
63
  $ds-color-background-primary: var(--ds-color-background-primary);
60
64
  $ds-color-static-red-100: var(--ds-color-static-red-100);
61
65
  $ds-color-static-black: var(--ds-color-static-black);
@@ -1,84 +1,88 @@
1
- $ds-hex-dark-text-primary: #EDEDED;
2
- $ds-hex-dark-text-primary-02: #B8B8B8;
1
+ $ds-hex-dark-text-primary: #ededed;
2
+ $ds-hex-dark-text-primary-02: #b8b8b8;
3
3
  $ds-hex-dark-text-secondary: #050505;
4
- $ds-hex-dark-text-critical: #FD2330;
5
- $ds-hex-dark-text-disabled: #B8B8B8;
4
+ $ds-hex-dark-text-critical: #fd2330;
5
+ $ds-hex-dark-text-disabled: #b8b8b8;
6
6
  $ds-hex-dark-text-on-brand: #ffffff;
7
7
  $ds-hex-dark-text-on-business: #ffffff;
8
8
  $ds-hex-dark-text-on-critical: #ffffff;
9
9
  $ds-hex-dark-text-on-success: #ffffff;
10
- $ds-hex-dark-text-brand: #FD2330;
11
- $ds-hex-dark-text-body-link: #65A0FC;
12
- $ds-hex-dark-text-body-link-visited: #65A0FC;
13
- $ds-hex-dark-text-positive: #3A8352;
14
- $ds-hex-dark-icon-primary: #EDEDED;
15
- $ds-hex-dark-icon-primary-02: #CFCFCF;
10
+ $ds-hex-dark-text-brand: #fd2330;
11
+ $ds-hex-dark-text-body-link: #65a0fc;
12
+ $ds-hex-dark-text-body-link-visited: #65a0fc;
13
+ $ds-hex-dark-text-positive: #3a8352;
14
+ $ds-hex-dark-text-culture: #4293d7;
15
+ $ds-hex-dark-icon-primary: #ededed;
16
+ $ds-hex-dark-icon-primary-02: #cfcfcf;
16
17
  $ds-hex-dark-icon-secondary: #050505;
17
- $ds-hex-dark-icon-critical: #FD2330;
18
- $ds-hex-dark-icon-disabled: #B8B8B8;
18
+ $ds-hex-dark-icon-critical: #fd2330;
19
+ $ds-hex-dark-icon-disabled: #b8b8b8;
19
20
  $ds-hex-dark-icon-on-brand: #141414;
20
21
  $ds-hex-dark-icon-on-critical: #ffffff;
21
22
  $ds-hex-dark-icon-on-success: #ffffff;
22
23
  $ds-hex-dark-icon-on-business: #ffffff;
23
- $ds-hex-dark-icon-brand: #FD2330;
24
- $ds-hex-dark-component-brand: #FD2330;
25
- $ds-hex-dark-component-business: #3A8352;
26
- $ds-hex-dark-component-primary: #EDEDED;
27
- $ds-hex-dark-component-primary-overlay: #ffffff21;
28
- $ds-hex-dark-component-primary-overlay-02: #9E9E9E;
24
+ $ds-hex-dark-icon-brand: #fd2330;
25
+ $ds-hex-dark-icon-culture: #4293d7;
26
+ $ds-hex-dark-component-brand: #fd2330;
27
+ $ds-hex-dark-component-business: #3a8352;
28
+ $ds-hex-dark-component-primary: #ededed;
29
+ $ds-hex-dark-component-primary-overlay: rgba(255, 255, 255, 0.13);
30
+ $ds-hex-dark-component-primary-overlay-02: #9e9e9e;
29
31
  $ds-hex-dark-component-secondary: #050505;
30
- $ds-hex-dark-component-secondary-overlay: #08080821;
31
- $ds-hex-dark-component-secondary-overlay-02: #08080833;
32
- $ds-hex-dark-component-critical: #EF7171;
33
- $ds-hex-dark-component-critical-overlay: #A51D24;
32
+ $ds-hex-dark-component-secondary-overlay: rgba(8, 8, 8, 0.13);
33
+ $ds-hex-dark-component-secondary-overlay-02: rgba(8, 8, 8, 0.2);
34
+ $ds-hex-dark-component-critical: #ef7171;
35
+ $ds-hex-dark-component-critical-overlay: #a51d24;
34
36
  $ds-hex-dark-component-static-white: #ffffff;
35
- $ds-hex-dark-component-positive: #3A8352;
36
- $ds-hex-dark-component-primary-02: #CFCFCF;
37
- $ds-hex-dark-surface-below: #262626;
37
+ $ds-hex-dark-component-positive: #3a8352;
38
+ $ds-hex-dark-component-primary-02: #cfcfcf;
39
+ $ds-hex-dark-surface-below: #171717;
38
40
  $ds-hex-dark-surface-background: #050505;
39
- $ds-hex-dark-surface-raised: #2B2B2B;
40
- $ds-hex-dark-surface-native-article: #2B2B2B;
41
- $ds-hex-dark-surface-elevated: #2B2B2B;
41
+ $ds-hex-dark-surface-raised: #2b2b2b;
42
+ $ds-hex-dark-surface-native-article: #2b2b2b;
43
+ $ds-hex-dark-surface-elevated: #2b2b2b;
42
44
  $ds-hex-dark-surface-inverted: #ffffff;
43
- $ds-hex-dark-surface-overlay: #05050580;
44
- $ds-hex-dark-surface-quiz: #EA3E3F;
45
- $ds-hex-dark-surface-korsord: #8BB6E8;
46
- $ds-hex-dark-surface-sudoko: #90D0BD;
47
- $ds-hex-dark-surface-brand: #DA000D;
48
- $ds-hex-dark-border-primary: #3B3B3B;
49
- $ds-hex-dark-border-primary-02: #ffffff66;
50
- $ds-hex-dark-border-primary-03: #EDEDED;
45
+ $ds-hex-dark-surface-overlay: rgba(5, 5, 5, 0.5);
46
+ $ds-hex-dark-surface-quiz: #ea3e3f;
47
+ $ds-hex-dark-surface-korsord: #8bb6e8;
48
+ $ds-hex-dark-surface-sudoko: #90d0bd;
49
+ $ds-hex-dark-surface-brand: #da000d;
50
+ $ds-hex-dark-surface-breaking: #300407;
51
+ $ds-hex-dark-border-primary: rgba(255, 255, 255, 0.19);
52
+ $ds-hex-dark-border-primary-02: rgba(255, 255, 255, 0.4);
53
+ $ds-hex-dark-border-primary-03: #ededed;
51
54
  $ds-hex-dark-border-secondary: #141414;
52
- $ds-hex-dark-border-business: #3A8352;
53
- $ds-hex-dark-border-critical: #FD2330;
54
- $ds-hex-dark-border-focus: #FD2330;
55
+ $ds-hex-dark-border-business: #3a8352;
56
+ $ds-hex-dark-border-critical: #fd2330;
57
+ $ds-hex-dark-border-focus: #fd2330;
55
58
  $ds-hex-dark-border-focus-02: #ffffff;
56
- $ds-hex-dark-border-focus-03: #FD2330;
57
- $ds-hex-dark-border-focus-04: #3A8352;
58
- $ds-hex-dark-border-brand: #DA000D;
59
+ $ds-hex-dark-border-focus-03: #fd2330;
60
+ $ds-hex-dark-border-focus-04: #3a8352;
61
+ $ds-hex-dark-border-brand: #fd2330;
62
+ $ds-hex-dark-border-culture: #4293d7;
59
63
  $ds-hex-dark-background-primary: #141414;
60
64
  $ds-hex-dark-gradient-content-fade-left: linear-gradient(90deg, #05050500 0%, #050505 100%);
61
65
  $ds-hex-dark-gradient-content-fade-right: linear-gradient(-90deg, #05050500 0%, #050505 100%);
62
66
  $ds-hex-dark-gradient-content-fade-up: linear-gradient(180deg, #05050500 0%, #050505 100%);
63
67
  $ds-hex-dark-gradient-content-fade-up-down: linear-gradient(0deg, #05050500 0%, #050505 100%);
64
68
  $ds-hex-dark-gradient-content-fade-down: linear-gradient(0deg, #05050500 0%, #050505 100%);
65
- $ds-hex-dark-static-red-100: #FAD4D4;
69
+ $ds-hex-dark-static-red-100: #fad4d4;
66
70
  $ds-hex-dark-static-black: #141414;
67
- $ds-hex-dark-static-transparent-black: #14141499;
71
+ $ds-hex-dark-static-transparent-black: rgba(20, 20, 20, 0.6);
68
72
  $ds-hex-dark-static-white: #ffffff;
69
- $ds-hex-dark-static-transparent-white: #ffffff80;
70
- $ds-hex-dark-static-green-100: #CEE4D6;
71
- $ds-hex-dark-static-red-300: #EF7171;
72
- $ds-hex-dark-static-transparent-white-10: #ffffff21;
73
- $ds-hex-dark-static-kultur: #568CBB;
74
- $ds-hex-dark-static-economy: #60BCA1;
75
- $ds-hex-dark-static-sport: #F58D2D;
76
- $ds-hex-dark-static-neutral-200: #E0E0E0;
77
- $ds-hex-dark-static-sthlm: #FF589B;
78
- $ds-hex-dark-static-ad-yellow: #FFEAC2;
79
- $ds-hex-dark-static-neutral-100: #EDEDED;
80
- $ds-hex-dark-static-neutral-500: #9E9E9E;
81
- $ds-hex-dark-static-red-500: #DA000D;
82
- $ds-hex-dark-static-yellow: #FFE600;
83
- $ds-hex-dark-static-red-200: #F6ACAD;
84
- $ds-hex-dark-static-red-0: #FCE8E8;
73
+ $ds-hex-dark-static-transparent-white: rgba(255, 255, 255, 0.5);
74
+ $ds-hex-dark-static-green-100: #cee4d6;
75
+ $ds-hex-dark-static-red-300: #ef7171;
76
+ $ds-hex-dark-static-transparent-white-10: rgba(255, 255, 255, 0.13);
77
+ $ds-hex-dark-static-kultur: #568cbb;
78
+ $ds-hex-dark-static-economy: #60bca1;
79
+ $ds-hex-dark-static-sport: #f58d2d;
80
+ $ds-hex-dark-static-neutral-200: #e0e0e0;
81
+ $ds-hex-dark-static-sthlm: #ff589b;
82
+ $ds-hex-dark-static-ad-yellow: #ffeac2;
83
+ $ds-hex-dark-static-neutral-100: #ededed;
84
+ $ds-hex-dark-static-neutral-500: #9e9e9e;
85
+ $ds-hex-dark-static-red-500: #da000d;
86
+ $ds-hex-dark-static-yellow: #ffe600;
87
+ $ds-hex-dark-static-red-200: #f6acad;
88
+ $ds-hex-dark-static-red-0: #fce8e8;
@@ -1,82 +1,86 @@
1
1
  $ds-hex-text-primary: #050505;
2
2
  $ds-hex-text-primary-02: #666666;
3
3
  $ds-hex-text-secondary: #ffffff;
4
- $ds-hex-text-critical: #DA000D;
4
+ $ds-hex-text-critical: #da000d;
5
5
  $ds-hex-text-disabled: #666666;
6
6
  $ds-hex-text-on-brand: #ffffff;
7
7
  $ds-hex-text-on-business: #ffffff;
8
8
  $ds-hex-text-on-critical: #ffffff;
9
9
  $ds-hex-text-on-success: #ffffff;
10
- $ds-hex-text-brand: #DA000D;
11
- $ds-hex-text-body-link: #4373CE;
12
- $ds-hex-text-body-link-visited: #4373CE;
13
- $ds-hex-text-positive: #3A8352;
10
+ $ds-hex-text-brand: #da000d;
11
+ $ds-hex-text-body-link: #4373ce;
12
+ $ds-hex-text-body-link-visited: #4373ce;
13
+ $ds-hex-text-positive: #3a8352;
14
+ $ds-hex-text-culture: #227ac3;
14
15
  $ds-hex-icon-primary: #050505;
15
16
  $ds-hex-icon-primary-02: #666666;
16
17
  $ds-hex-icon-secondary: #ffffff;
17
- $ds-hex-icon-critical: #DA000D;
18
+ $ds-hex-icon-critical: #da000d;
18
19
  $ds-hex-icon-disabled: #666666;
19
20
  $ds-hex-icon-on-brand: #ffffff;
20
21
  $ds-hex-icon-on-business: #ffffff;
21
- $ds-hex-icon-brand: #DA000D;
22
+ $ds-hex-icon-brand: #da000d;
22
23
  $ds-hex-icon-on-critical: #ffffff;
23
24
  $ds-hex-icon-on-success: #ffffff;
24
- $ds-hex-component-brand: #DA000D;
25
- $ds-hex-component-business: #3A8352;
25
+ $ds-hex-icon-culture: #227ac3;
26
+ $ds-hex-component-brand: #da000d;
27
+ $ds-hex-component-business: #3a8352;
26
28
  $ds-hex-component-primary: #141414;
27
- $ds-hex-component-primary-overlay: #08080821;
28
- $ds-hex-component-primary-overlay-02: #08080833;
29
+ $ds-hex-component-primary-overlay: rgba(8, 8, 8, 0.13);
30
+ $ds-hex-component-primary-overlay-02: rgba(8, 8, 8, 0.2);
29
31
  $ds-hex-component-secondary: #ffffff;
30
- $ds-hex-component-secondary-overlay: #ffffff21;
31
- $ds-hex-component-secondary-overlay-02: #ffffff33;
32
- $ds-hex-component-critical: #EA3E3F;
33
- $ds-hex-component-critical-overlay: #A51D24;
32
+ $ds-hex-component-secondary-overlay: rgba(255, 255, 255, 0.13);
33
+ $ds-hex-component-secondary-overlay-02: rgba(255, 255, 255, 0.2);
34
+ $ds-hex-component-critical: #ea3e3f;
35
+ $ds-hex-component-critical-overlay: #a51d24;
34
36
  $ds-hex-component-static-white: #ffffff;
35
- $ds-hex-component-positive: #3A8352;
36
- $ds-hex-component-primary-02: #CFCFCF;
37
- $ds-hex-surface-below: #EDEDED;
38
- $ds-hex-surface-native-article: #EDEDED;
37
+ $ds-hex-component-positive: #3a8352;
38
+ $ds-hex-component-primary-02: #cfcfcf;
39
+ $ds-hex-surface-below: #f2f2f2;
40
+ $ds-hex-surface-native-article: #ededed;
39
41
  $ds-hex-surface-background: #ffffff;
40
- $ds-hex-surface-raised: #EDEDED;
42
+ $ds-hex-surface-raised: #ededed;
41
43
  $ds-hex-surface-elevated: #ffffff;
42
- $ds-hex-surface-overlay: #05050580;
43
- $ds-hex-surface-quiz: #EA3E3F;
44
- $ds-hex-surface-korsord: #8BB6E8;
45
- $ds-hex-surface-sudoko: #90D0BD;
46
- $ds-hex-surface-brand: #DA000D;
44
+ $ds-hex-surface-overlay: rgba(5, 5, 5, 0.5);
45
+ $ds-hex-surface-quiz: #ea3e3f;
46
+ $ds-hex-surface-korsord: #8bb6e8;
47
+ $ds-hex-surface-sudoko: #90d0bd;
48
+ $ds-hex-surface-brand: #da000d;
47
49
  $ds-hex-surface-inverted: #141414;
48
- $ds-hex-border-primary: #08080821;
49
- $ds-hex-border-primary-02: #08080866;
50
+ $ds-hex-surface-breaking: #300407;
51
+ $ds-hex-border-primary: rgba(5, 5, 5, 0.13);
52
+ $ds-hex-border-primary-02: rgba(8, 8, 8, 0.4);
50
53
  $ds-hex-border-primary-03: #050505;
51
54
  $ds-hex-border-secondary: #ffffff;
52
- $ds-hex-border-business: #3A8352;
53
- $ds-hex-border-critical: #DA000D;
54
- $ds-hex-border-focus: #DA000D;
55
+ $ds-hex-border-business: #3a8352;
56
+ $ds-hex-border-critical: #da000d;
57
+ $ds-hex-border-focus: #da000d;
55
58
  $ds-hex-border-focus-02: #141414;
56
- $ds-hex-border-focus-03: #DA000D;
57
- $ds-hex-border-focus-04: #3A8352;
58
- $ds-hex-border-brand: #DA000D;
59
+ $ds-hex-border-focus-03: #da000d;
60
+ $ds-hex-border-focus-04: #3a8352;
61
+ $ds-hex-border-brand: #da000d;
62
+ $ds-hex-border-culture: #227ac3;
59
63
  $ds-hex-background-primary: #ffffff;
60
- $ds-hex-static-red-100: #FAD4D4;
64
+ $ds-hex-static-red-100: #fad4d4;
61
65
  $ds-hex-static-black: #141414;
62
- $ds-hex-static-transparent-black: #14141499;
66
+ $ds-hex-static-transparent-black: rgba(20, 20, 20, 0.6);
63
67
  $ds-hex-static-white: #ffffff;
64
- $ds-hex-static-transparent-white: #ffffff80;
65
- $ds-hex-static-green-100: #CEE4D6;
66
- $ds-hex-static-red-300: #EF7171;
67
- $ds-hex-static-transparent-white-10: #ffffff21;
68
- $ds-hex-static-kultur: #568CBB;
69
- $ds-hex-static-economy: #60BCA1;
70
- $ds-hex-static-sport: #F58D2D;
71
- $ds-hex-static-neutral-200: #E0E0E0;
72
- $ds-hex-static-sthlm: #FF589B;
73
- $ds-hex-static-ad-yellow: #FFEAC2;
74
- $ds-hex-static-neutral-100: #EDEDED;
75
- $ds-hex-static-neutral-500: #9E9E9E;
76
- $ds-hex-static-red-500: #DA000D;
77
- $ds-hex-static-yellow: #FFE600;
78
- $ds-hex-static-red-200: #F6ACAD;
79
- $ds-hex-static-red-0: #FCE8E8;
68
+ $ds-hex-static-transparent-white: rgba(255, 255, 255, 0.5);
69
+ $ds-hex-static-green-100: #cee4d6;
70
+ $ds-hex-static-red-300: #ef7171;
71
+ $ds-hex-static-transparent-white-10: rgba(255, 255, 255, 0.13);
72
+ $ds-hex-static-kultur: #568cbb;
73
+ $ds-hex-static-economy: #60bca1;
74
+ $ds-hex-static-sport: #f58d2d;
75
+ $ds-hex-static-neutral-200: #e0e0e0;
76
+ $ds-hex-static-sthlm: #ff589b;
77
+ $ds-hex-static-ad-yellow: #ffeac2;
78
+ $ds-hex-static-neutral-100: #ededed;
79
+ $ds-hex-static-neutral-500: #9e9e9e;
80
+ $ds-hex-static-red-500: #da000d;
81
+ $ds-hex-static-yellow: #ffe600;
82
+ $ds-hex-static-red-200: #f6acad;
83
+ $ds-hex-static-red-0: #fce8e8;
80
84
  $ds-hex-gradient-content-fade-left: linear-gradient(90deg, #ffffff00 0%, #ffffff 100%);
81
85
  $ds-hex-gradient-content-fade-right: linear-gradient(-90deg, #ffffff00 0%, #ffffff 100%);
82
86
  $ds-hex-gradient-content-fade-up: linear-gradient(180deg, #ffffff00 0%, #ffffff 100%);
@@ -1,7 +1,8 @@
1
1
  $metrics: (
2
2
  border-radius: (
3
3
  x1: 2,
4
- x2: 4
4
+ x2: 4,
5
+ lg: 8
5
6
  ),
6
7
  border-width: (
7
8
  x1: 1,
@@ -2,3 +2,4 @@ $ds-fontweight-regular: Regular;
2
2
  $ds-fontweight-medium: Medium;
3
3
  $ds-fontweight-semibold: SemiBold;
4
4
  $ds-fontweight-bold: Bold;
5
+ $ds-fontweight-extrabold: ExtraBold;
@@ -15,6 +15,7 @@ $ds-typography-detaildirekt-header: 'detaildirekt-header';
15
15
  $ds-typography-detailteaser-standard-compact: 'detailteaser-standard-compact';
16
16
  $ds-typography-detailteaser-standard-compact-opinion: 'detailteaser-standard-compact-opinion';
17
17
  $ds-typography-detailteaser-large: 'detailteaser-large';
18
+ $ds-typography-detailteaser-breaking: 'detailteaser-breaking';
18
19
  $ds-typography-detailteaser-large-opinion: 'detailteaser-large-opinion';
19
20
  $ds-typography-detailteaser-large-storRubrik: 'detailteaser-large-storRubrik';
20
21
  $ds-typography-detailteaser-standard: 'detailteaser-standard';
@@ -54,15 +54,22 @@ $typographyTokensScreenExtraLarge: (
54
54
  fontFamily: "DN Serif Display",
55
55
  fontWeight: Bold,
56
56
  lineHeight: 1.1,
57
- fontSize: 56,
57
+ fontSize: 48,
58
+ letterSpacing: 0
59
+ ),
60
+ detailteaser-breaking: (
61
+ fontFamily: "DN Serif Display",
62
+ fontWeight: ExtraBold,
63
+ lineHeight: 1.1,
64
+ fontSize: 64,
58
65
  letterSpacing: 0
59
66
  ),
60
67
  detailteaser-standard: (
61
68
  fontFamily: "DN Serif Headline",
62
- fontSize: 36,
63
69
  lineHeight: 1.1,
64
70
  letterSpacing: 0,
65
- fontWeight: Bold
71
+ fontWeight: Bold,
72
+ fontSize: 28
66
73
  ),
67
74
  detailteaser-standard-compact: (
68
75
  fontFamily: "DN Serif Headline",
@@ -74,7 +81,7 @@ $typographyTokensScreenExtraLarge: (
74
81
  detailteaser-large-compact: (
75
82
  fontFamily: "DN Serif Display",
76
83
  fontWeight: Bold,
77
- fontSize: 40,
84
+ fontSize: 36,
78
85
  lineHeight: 1.1,
79
86
  letterSpacing: 0
80
87
  ),
@@ -93,6 +93,13 @@ $typographyTokensScreenLarge: (
93
93
  fontSize: 40,
94
94
  letterSpacing: 0
95
95
  ),
96
+ detailteaser-breaking: (
97
+ fontFamily: "DN Serif Display",
98
+ fontWeight: ExtraBold,
99
+ lineHeight: 1.1,
100
+ fontSize: 64,
101
+ letterSpacing: 0
102
+ ),
96
103
  detailteaser-large-opinion: (
97
104
  fontFamily: "DN Serif Display",
98
105
  fontWeight: Regular,
@@ -110,10 +117,10 @@ $typographyTokensScreenLarge: (
110
117
  ),
111
118
  detailteaser-standard: (
112
119
  fontFamily: "DN Serif Headline",
113
- fontSize: 26,
114
120
  lineHeight: 1.1,
115
121
  letterSpacing: 0,
116
- fontWeight: Bold
122
+ fontWeight: Bold,
123
+ fontSize: 28
117
124
  ),
118
125
  detailteaser-standard-opinion: (
119
126
  fontFamily: "DN Serif Headline",
@@ -133,7 +140,7 @@ $typographyTokensScreenLarge: (
133
140
  detailteaser-large-compact: (
134
141
  fontFamily: "DN Serif Display",
135
142
  fontWeight: Bold,
136
- fontSize: 40,
143
+ fontSize: 32,
137
144
  lineHeight: 1.1,
138
145
  letterSpacing: 0
139
146
  ),
@@ -122,6 +122,13 @@ $typographyTokensScreenSmall: (
122
122
  fontSize: 26,
123
123
  letterSpacing: 0
124
124
  ),
125
+ detailteaser-breaking: (
126
+ fontFamily: "DN Serif Display",
127
+ fontWeight: ExtraBold,
128
+ lineHeight: 1.1,
129
+ fontSize: 36,
130
+ letterSpacing: 0
131
+ ),
125
132
  detailteaser-large-opinion: (
126
133
  fontFamily: "DN Serif Headline",
127
134
  fontWeight: Regular,
@@ -139,10 +146,10 @@ $typographyTokensScreenSmall: (
139
146
  ),
140
147
  detailteaser-standard: (
141
148
  fontFamily: "DN Serif Headline",
142
- fontSize: 20,
143
149
  lineHeight: 1.2,
144
150
  letterSpacing: 0,
145
- fontWeight: Bold
151
+ fontWeight: Bold,
152
+ fontSize: 20
146
153
  ),
147
154
  detailteaser-standard-opinion: (
148
155
  fontFamily: "DN Serif Headline",
@@ -156,14 +163,14 @@ $typographyTokensScreenSmall: (
156
163
  fontFamily: "DN Serif Text",
157
164
  fontWeight: Bold,
158
165
  lineHeight: 1.2,
159
- fontSize: 17,
166
+ fontSize: 18,
160
167
  letterSpacing: 0
161
168
  ),
162
169
  detailteaser-large-compact: (
163
170
  fontFamily: "DN Serif Headline",
164
171
  fontWeight: Bold,
165
- fontSize: 26,
166
- lineHeight: 1.1,
172
+ fontSize: 20,
173
+ lineHeight: 1.2,
167
174
  letterSpacing: 0
168
175
  ),
169
176
  detailteaser-large-compact-opinion: (
@@ -205,7 +212,7 @@ $typographyTokensScreenSmall: (
205
212
  detailteaser-tipsa: (
206
213
  fontFamily: "DN Serif Text",
207
214
  fontWeight: Bold,
208
- fontSize: 17,
215
+ fontSize: 18,
209
216
  lineHeight: 1.2,
210
217
  letterSpacing: 0
211
218
  ),
@@ -1,9 +1,11 @@
1
1
  interface MediaProps {
2
2
  mediaHtml?: string;
3
+ rounded?: boolean;
3
4
  }
4
5
 
5
- export const Media = ({ mediaHtml }: MediaProps) => {
6
- return mediaHtml && (<div className="ds-teaser__media" dangerouslySetInnerHTML={{ __html: mediaHtml }} />)
6
+ export const Media = ({ mediaHtml, rounded }: MediaProps) => {
7
+ const classNames = 'ds-teaser__media' + (rounded ? ' ds-teaser__media--rounded' : '');
8
+ return mediaHtml && (<div className={classNames} dangerouslySetInnerHTML={{ __html: mediaHtml }} />)
7
9
  }
8
10
 
9
11
  interface ContentProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "21.1.5",
3
+ "version": "21.2.1-beta.0",
4
4
  "description": "DN design system for web.",
5
5
  "main": "index.tsx",
6
6
  "type": "module",
@@ -12,6 +12,7 @@
12
12
  "text-body-link": "var(--ds-color-text-body-link)",
13
13
  "text-body-link-visited": "var(--ds-color-text-body-link-visited)",
14
14
  "text-positive": "var(--ds-color-text-positive)",
15
+ "text-culture": "var(--ds-color-text-culture)",
15
16
  "icon-primary": "var(--ds-color-icon-primary)",
16
17
  "icon-primary-02": "var(--ds-color-icon-primary-02)",
17
18
  "icon-secondary": "var(--ds-color-icon-secondary)",
@@ -22,6 +23,7 @@
22
23
  "icon-brand": "var(--ds-color-icon-brand)",
23
24
  "icon-on-critical": "var(--ds-color-icon-on-critical)",
24
25
  "icon-on-success": "var(--ds-color-icon-on-success)",
26
+ "icon-culture": "var(--ds-color-icon-culture)",
25
27
  "component-brand": "var(--ds-color-component-brand)",
26
28
  "component-business": "var(--ds-color-component-business)",
27
29
  "component-primary": "var(--ds-color-component-primary)",
@@ -46,6 +48,7 @@
46
48
  "surface-sudoko": "var(--ds-color-surface-sudoko)",
47
49
  "surface-brand": "var(--ds-color-surface-brand)",
48
50
  "surface-inverted": "var(--ds-color-surface-inverted)",
51
+ "surface-breaking": "var(--ds-color-surface-breaking)",
49
52
  "border-primary": "var(--ds-color-border-primary)",
50
53
  "border-primary-02": "var(--ds-color-border-primary-02)",
51
54
  "border-primary-03": "var(--ds-color-border-primary-03)",
@@ -57,6 +60,7 @@
57
60
  "border-focus-03": "var(--ds-color-border-focus-03)",
58
61
  "border-focus-04": "var(--ds-color-border-focus-04)",
59
62
  "border-brand": "var(--ds-color-border-brand)",
63
+ "border-culture": "var(--ds-color-border-culture)",
60
64
  "background-primary": "var(--ds-color-background-primary)",
61
65
  "static-red-100": "var(--ds-color-static-red-100)",
62
66
  "static-black": "var(--ds-color-static-black)",
@@ -82,4 +86,4 @@
82
86
  "gradient-content-fade-right": "var(--ds-color-gradient-content-fade-right)",
83
87
  "gradient-content-fade-up": "var(--ds-color-gradient-content-fade-up)",
84
88
  "gradient-content-fade-down": "var(--ds-color-gradient-content-fade-down)"
85
- }
89
+ }