@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.
- package/CHANGELOG.md +53 -3
- package/assets/teaser/teaser.scss +7 -1
- package/components/divider/README.md +1 -3
- package/components/group-header/group-header.scss +1 -1
- package/components/teaser-breaking/README-UXD.md +0 -0
- package/components/teaser-breaking/README.md +46 -0
- package/components/teaser-breaking/teaser-breaking.njk +46 -0
- package/components/teaser-breaking/teaser-breaking.scss +52 -0
- package/components/teaser-image/teaser-image.scss +1 -1
- package/components/teaser-large/teaser-large.njk +13 -3
- package/components/teaser-large/teaser-large.scss +16 -0
- package/components/teaser-list-vertical/teaser-list-vertical.njk +0 -1
- package/components/teaser-native/teaser-native.njk +5 -3
- package/components/teaser-native/teaser-native.scss +0 -6
- package/components/teaser-onsite/README.md +1 -8
- package/components/teaser-onsite/teaser-onsite.njk +5 -1
- package/components/teaser-onsite/teaser-onsite.tsx +1 -1
- package/components/teaser-package/teaser-package.scss +17 -6
- package/components/teaser-slideshow/teaser-slideshow.scss +1 -1
- package/components/teaser-split/teaser-split.njk +6 -2
- package/components/teaser-split/teaser-split.scss +3 -1
- package/components/teaser-standard/teaser-standard.njk +7 -3
- package/components/teaser-standard/teaser-standard.scss +5 -6
- package/foundations/helpers/colors.scss +1 -6
- package/foundations/variables/colorsCssVariables.scss +4 -0
- package/foundations/variables/colorsDnDarkTokens.scss +64 -60
- package/foundations/variables/colorsDnLightTokens.scss +55 -51
- package/foundations/variables/metrics.scss +2 -1
- package/foundations/variables/typographyFontWeight.scss +1 -0
- package/foundations/variables/typographyTokensList.scss +1 -0
- package/foundations/variables/typographyTokensScreenExtraLarge.scss +11 -4
- package/foundations/variables/typographyTokensScreenLarge.scss +10 -3
- package/foundations/variables/typographyTokensScreenSmall.scss +13 -6
- package/helpers/teaser.tsx +4 -2
- package/package.json +1 -1
- package/tokens/colors-css-variables.json +5 -1
- package/tokens/colors-dark-mode.json +64 -60
- package/tokens/colors-light-mode.json +57 -53
- 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-
|
|
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: #
|
|
2
|
-
$ds-hex-dark-text-primary-02: #
|
|
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: #
|
|
5
|
-
$ds-hex-dark-text-disabled: #
|
|
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: #
|
|
11
|
-
$ds-hex-dark-text-body-link: #
|
|
12
|
-
$ds-hex-dark-text-body-link-visited: #
|
|
13
|
-
$ds-hex-dark-text-positive: #
|
|
14
|
-
$ds-hex-dark-
|
|
15
|
-
$ds-hex-dark-icon-primary
|
|
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: #
|
|
18
|
-
$ds-hex-dark-icon-disabled: #
|
|
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: #
|
|
24
|
-
$ds-hex-dark-
|
|
25
|
-
$ds-hex-dark-component-
|
|
26
|
-
$ds-hex-dark-component-
|
|
27
|
-
$ds-hex-dark-component-primary
|
|
28
|
-
$ds-hex-dark-component-primary-overlay
|
|
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:
|
|
31
|
-
$ds-hex-dark-component-secondary-overlay-02:
|
|
32
|
-
$ds-hex-dark-component-critical: #
|
|
33
|
-
$ds-hex-dark-component-critical-overlay: #
|
|
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: #
|
|
36
|
-
$ds-hex-dark-component-primary-02: #
|
|
37
|
-
$ds-hex-dark-surface-below: #
|
|
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: #
|
|
40
|
-
$ds-hex-dark-surface-native-article: #
|
|
41
|
-
$ds-hex-dark-surface-elevated: #
|
|
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:
|
|
44
|
-
$ds-hex-dark-surface-quiz: #
|
|
45
|
-
$ds-hex-dark-surface-korsord: #
|
|
46
|
-
$ds-hex-dark-surface-sudoko: #
|
|
47
|
-
$ds-hex-dark-surface-brand: #
|
|
48
|
-
$ds-hex-dark-
|
|
49
|
-
$ds-hex-dark-border-primary
|
|
50
|
-
$ds-hex-dark-border-primary-
|
|
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: #
|
|
53
|
-
$ds-hex-dark-border-critical: #
|
|
54
|
-
$ds-hex-dark-border-focus: #
|
|
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: #
|
|
57
|
-
$ds-hex-dark-border-focus-04: #
|
|
58
|
-
$ds-hex-dark-border-brand: #
|
|
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: #
|
|
69
|
+
$ds-hex-dark-static-red-100: #fad4d4;
|
|
66
70
|
$ds-hex-dark-static-black: #141414;
|
|
67
|
-
$ds-hex-dark-static-transparent-black:
|
|
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:
|
|
70
|
-
$ds-hex-dark-static-green-100: #
|
|
71
|
-
$ds-hex-dark-static-red-300: #
|
|
72
|
-
$ds-hex-dark-static-transparent-white-10:
|
|
73
|
-
$ds-hex-dark-static-kultur: #
|
|
74
|
-
$ds-hex-dark-static-economy: #
|
|
75
|
-
$ds-hex-dark-static-sport: #
|
|
76
|
-
$ds-hex-dark-static-neutral-200: #
|
|
77
|
-
$ds-hex-dark-static-sthlm: #
|
|
78
|
-
$ds-hex-dark-static-ad-yellow: #
|
|
79
|
-
$ds-hex-dark-static-neutral-100: #
|
|
80
|
-
$ds-hex-dark-static-neutral-500: #
|
|
81
|
-
$ds-hex-dark-static-red-500: #
|
|
82
|
-
$ds-hex-dark-static-yellow: #
|
|
83
|
-
$ds-hex-dark-static-red-200: #
|
|
84
|
-
$ds-hex-dark-static-red-0: #
|
|
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: #
|
|
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: #
|
|
11
|
-
$ds-hex-text-body-link: #
|
|
12
|
-
$ds-hex-text-body-link-visited: #
|
|
13
|
-
$ds-hex-text-positive: #
|
|
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: #
|
|
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: #
|
|
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-
|
|
25
|
-
$ds-hex-component-
|
|
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:
|
|
28
|
-
$ds-hex-component-primary-overlay-02:
|
|
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:
|
|
31
|
-
$ds-hex-component-secondary-overlay-02:
|
|
32
|
-
$ds-hex-component-critical: #
|
|
33
|
-
$ds-hex-component-critical-overlay: #
|
|
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: #
|
|
36
|
-
$ds-hex-component-primary-02: #
|
|
37
|
-
$ds-hex-surface-below: #
|
|
38
|
-
$ds-hex-surface-native-article: #
|
|
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: #
|
|
42
|
+
$ds-hex-surface-raised: #ededed;
|
|
41
43
|
$ds-hex-surface-elevated: #ffffff;
|
|
42
|
-
$ds-hex-surface-overlay:
|
|
43
|
-
$ds-hex-surface-quiz: #
|
|
44
|
-
$ds-hex-surface-korsord: #
|
|
45
|
-
$ds-hex-surface-sudoko: #
|
|
46
|
-
$ds-hex-surface-brand: #
|
|
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-
|
|
49
|
-
$ds-hex-border-primary
|
|
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: #
|
|
53
|
-
$ds-hex-border-critical: #
|
|
54
|
-
$ds-hex-border-focus: #
|
|
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: #
|
|
57
|
-
$ds-hex-border-focus-04: #
|
|
58
|
-
$ds-hex-border-brand: #
|
|
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: #
|
|
64
|
+
$ds-hex-static-red-100: #fad4d4;
|
|
61
65
|
$ds-hex-static-black: #141414;
|
|
62
|
-
$ds-hex-static-transparent-black:
|
|
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:
|
|
65
|
-
$ds-hex-static-green-100: #
|
|
66
|
-
$ds-hex-static-red-300: #
|
|
67
|
-
$ds-hex-static-transparent-white-10:
|
|
68
|
-
$ds-hex-static-kultur: #
|
|
69
|
-
$ds-hex-static-economy: #
|
|
70
|
-
$ds-hex-static-sport: #
|
|
71
|
-
$ds-hex-static-neutral-200: #
|
|
72
|
-
$ds-hex-static-sthlm: #
|
|
73
|
-
$ds-hex-static-ad-yellow: #
|
|
74
|
-
$ds-hex-static-neutral-100: #
|
|
75
|
-
$ds-hex-static-neutral-500: #
|
|
76
|
-
$ds-hex-static-red-500: #
|
|
77
|
-
$ds-hex-static-yellow: #
|
|
78
|
-
$ds-hex-static-red-200: #
|
|
79
|
-
$ds-hex-static-red-0: #
|
|
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%);
|
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
166
|
-
lineHeight: 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:
|
|
215
|
+
fontSize: 18,
|
|
209
216
|
lineHeight: 1.2,
|
|
210
217
|
letterSpacing: 0
|
|
211
218
|
),
|
package/helpers/teaser.tsx
CHANGED
|
@@ -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
|
-
|
|
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
|
@@ -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
|
+
}
|