@bonniernews/dn-design-system-web 22.0.0 → 22.0.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/group-header/group-header.scss +1 -1
- package/components/teaser-centered/README-UXD.md +0 -0
- package/components/teaser-centered/README.md +46 -0
- package/components/teaser-centered/teaser-centered.njk +47 -0
- package/components/teaser-centered/teaser-centered.scss +51 -0
- package/components/teaser-image/teaser-image.scss +1 -1
- package/components/teaser-large/README.md +0 -1
- package/components/teaser-large/teaser-large.njk +6 -4
- package/components/teaser-large/teaser-large.scss +5 -11
- 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-package/teaser-package.scss +7 -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/README-links.md +1 -1
- package/foundations/helpers/README-spacing.md +1 -1
- 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 +3 -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/package.json +1 -1
- package/preact/components/icon-with-wrapper/icon-with-wrapper.js +4 -0
- package/preact/components/icon-with-wrapper/icon-with-wrapper.js.map +2 -2
- package/preact/components/teaser-onsite/teaser-onsite.js +4 -3
- package/preact/components/teaser-onsite/teaser-onsite.js.map +2 -2
- 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
- package/types-lib/ds-color.d.ts +6 -1
|
@@ -3,94 +3,98 @@
|
|
|
3
3
|
"primary": "#050505",
|
|
4
4
|
"primary-02": "#666666",
|
|
5
5
|
"secondary": "#ffffff",
|
|
6
|
-
"critical": "#
|
|
6
|
+
"critical": "#da000d",
|
|
7
7
|
"disabled": "#666666",
|
|
8
8
|
"on-brand": "#ffffff",
|
|
9
9
|
"on-business": "#ffffff",
|
|
10
10
|
"on-critical": "#ffffff",
|
|
11
11
|
"on-success": "#ffffff",
|
|
12
|
-
"brand": "#
|
|
13
|
-
"body-link": "#
|
|
14
|
-
"body-link-visited": "#
|
|
15
|
-
"positive": "#
|
|
12
|
+
"brand": "#da000d",
|
|
13
|
+
"body-link": "#4373ce",
|
|
14
|
+
"body-link-visited": "#4373ce",
|
|
15
|
+
"positive": "#3a8352",
|
|
16
|
+
"culture": "#227ac3"
|
|
16
17
|
},
|
|
17
18
|
"icon": {
|
|
18
19
|
"primary": "#050505",
|
|
19
20
|
"primary-02": "#666666",
|
|
20
21
|
"secondary": "#ffffff",
|
|
21
|
-
"critical": "#
|
|
22
|
+
"critical": "#da000d",
|
|
22
23
|
"disabled": "#666666",
|
|
23
24
|
"on-brand": "#ffffff",
|
|
24
25
|
"on-business": "#ffffff",
|
|
25
|
-
"brand": "#
|
|
26
|
+
"brand": "#da000d",
|
|
26
27
|
"on-critical": "#ffffff",
|
|
27
|
-
"on-success": "#ffffff"
|
|
28
|
+
"on-success": "#ffffff",
|
|
29
|
+
"culture": "#227ac3"
|
|
28
30
|
},
|
|
29
31
|
"component": {
|
|
30
|
-
"brand": "#
|
|
31
|
-
"business": "#
|
|
32
|
+
"brand": "#da000d",
|
|
33
|
+
"business": "#3a8352",
|
|
32
34
|
"primary": "#141414",
|
|
33
|
-
"primary-overlay": "
|
|
34
|
-
"primary-overlay-02": "
|
|
35
|
+
"primary-overlay": "rgba(8, 8, 8, 0.13)",
|
|
36
|
+
"primary-overlay-02": "rgba(8, 8, 8, 0.2)",
|
|
35
37
|
"secondary": "#ffffff",
|
|
36
|
-
"secondary-overlay": "
|
|
37
|
-
"secondary-overlay-02": "
|
|
38
|
-
"critical": "#
|
|
39
|
-
"critical-overlay": "#
|
|
38
|
+
"secondary-overlay": "rgba(255, 255, 255, 0.13)",
|
|
39
|
+
"secondary-overlay-02": "rgba(255, 255, 255, 0.2)",
|
|
40
|
+
"critical": "#ea3e3f",
|
|
41
|
+
"critical-overlay": "#a51d24",
|
|
40
42
|
"static-white": "#ffffff",
|
|
41
|
-
"positive": "#
|
|
42
|
-
"primary-02": "#
|
|
43
|
+
"positive": "#3a8352",
|
|
44
|
+
"primary-02": "#cfcfcf"
|
|
43
45
|
},
|
|
44
46
|
"surface": {
|
|
45
|
-
"below": "#
|
|
46
|
-
"native-article": "#
|
|
47
|
+
"below": "#f2f2f2",
|
|
48
|
+
"native-article": "#ededed",
|
|
47
49
|
"background": "#ffffff",
|
|
48
|
-
"raised": "#
|
|
50
|
+
"raised": "#ededed",
|
|
49
51
|
"elevated": "#ffffff",
|
|
50
|
-
"overlay": "
|
|
51
|
-
"quiz": "#
|
|
52
|
-
"korsord": "#
|
|
53
|
-
"sudoko": "#
|
|
54
|
-
"brand": "#
|
|
55
|
-
"inverted": "#141414"
|
|
52
|
+
"overlay": "rgba(5, 5, 5, 0.5)",
|
|
53
|
+
"quiz": "#ea3e3f",
|
|
54
|
+
"korsord": "#8bb6e8",
|
|
55
|
+
"sudoko": "#90d0bd",
|
|
56
|
+
"brand": "#da000d",
|
|
57
|
+
"inverted": "#141414",
|
|
58
|
+
"breaking": "#300407"
|
|
56
59
|
},
|
|
57
60
|
"border": {
|
|
58
|
-
"primary": "
|
|
59
|
-
"primary-02": "
|
|
61
|
+
"primary": "rgba(5, 5, 5, 0.13)",
|
|
62
|
+
"primary-02": "rgba(8, 8, 8, 0.4)",
|
|
60
63
|
"primary-03": "#050505",
|
|
61
64
|
"secondary": "#ffffff",
|
|
62
|
-
"business": "#
|
|
63
|
-
"critical": "#
|
|
64
|
-
"focus": "#
|
|
65
|
+
"business": "#3a8352",
|
|
66
|
+
"critical": "#da000d",
|
|
67
|
+
"focus": "#da000d",
|
|
65
68
|
"focus-02": "#141414",
|
|
66
|
-
"focus-03": "#
|
|
67
|
-
"focus-04": "#
|
|
68
|
-
"brand": "#
|
|
69
|
+
"focus-03": "#da000d",
|
|
70
|
+
"focus-04": "#3a8352",
|
|
71
|
+
"brand": "#da000d",
|
|
72
|
+
"culture": "#227ac3"
|
|
69
73
|
},
|
|
70
74
|
"background": {
|
|
71
75
|
"primary": "#ffffff"
|
|
72
76
|
},
|
|
73
77
|
"static": {
|
|
74
|
-
"red-100": "#
|
|
78
|
+
"red-100": "#fad4d4",
|
|
75
79
|
"black": "#141414",
|
|
76
|
-
"transparent-black": "
|
|
80
|
+
"transparent-black": "rgba(20, 20, 20, 0.6)",
|
|
77
81
|
"white": "#ffffff",
|
|
78
|
-
"transparent-white": "
|
|
79
|
-
"green-100": "#
|
|
80
|
-
"red-300": "#
|
|
81
|
-
"transparent-white-10": "
|
|
82
|
-
"kultur": "#
|
|
83
|
-
"economy": "#
|
|
84
|
-
"sport": "#
|
|
85
|
-
"neutral-200": "#
|
|
86
|
-
"sthlm": "#
|
|
87
|
-
"ad-yellow": "#
|
|
88
|
-
"neutral-100": "#
|
|
89
|
-
"neutral-500": "#
|
|
90
|
-
"red-500": "#
|
|
91
|
-
"yellow": "#
|
|
92
|
-
"red-200": "#
|
|
93
|
-
"red-0": "#
|
|
82
|
+
"transparent-white": "rgba(255, 255, 255, 0.5)",
|
|
83
|
+
"green-100": "#cee4d6",
|
|
84
|
+
"red-300": "#ef7171",
|
|
85
|
+
"transparent-white-10": "rgba(255, 255, 255, 0.13)",
|
|
86
|
+
"kultur": "#568cbb",
|
|
87
|
+
"economy": "#60bca1",
|
|
88
|
+
"sport": "#f58d2d",
|
|
89
|
+
"neutral-200": "#e0e0e0",
|
|
90
|
+
"sthlm": "#ff589b",
|
|
91
|
+
"ad-yellow": "#ffeac2",
|
|
92
|
+
"neutral-100": "#ededed",
|
|
93
|
+
"neutral-500": "#9e9e9e",
|
|
94
|
+
"red-500": "#da000d",
|
|
95
|
+
"yellow": "#ffe600",
|
|
96
|
+
"red-200": "#f6acad",
|
|
97
|
+
"red-0": "#fce8e8"
|
|
94
98
|
},
|
|
95
99
|
"gradient": {
|
|
96
100
|
"content-fade-left": "linear-gradient(90deg, #ffffff00 0%, #ffffff 100%)",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"detailteaser-standard-compact": "'detailteaser-standard-compact'",
|
|
17
17
|
"detailteaser-standard-compact-opinion": "'detailteaser-standard-compact-opinion'",
|
|
18
18
|
"detailteaser-large": "'detailteaser-large'",
|
|
19
|
+
"detailteaser-breaking": "'detailteaser-breaking'",
|
|
19
20
|
"detailteaser-large-opinion": "'detailteaser-large-opinion'",
|
|
20
21
|
"detailteaser-large-storRubrik": "'detailteaser-large-storRubrik'",
|
|
21
22
|
"detailteaser-standard": "'detailteaser-standard'",
|
package/types-lib/ds-color.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export enum DsColorEnum {
|
|
|
12
12
|
"text-body-link" = "text-body-link",
|
|
13
13
|
"text-body-link-visited" = "text-body-link-visited",
|
|
14
14
|
"text-positive" = "text-positive",
|
|
15
|
+
"text-culture" = "text-culture",
|
|
15
16
|
"icon-primary" = "icon-primary",
|
|
16
17
|
"icon-primary-02" = "icon-primary-02",
|
|
17
18
|
"icon-secondary" = "icon-secondary",
|
|
@@ -22,6 +23,7 @@ export enum DsColorEnum {
|
|
|
22
23
|
"icon-brand" = "icon-brand",
|
|
23
24
|
"icon-on-critical" = "icon-on-critical",
|
|
24
25
|
"icon-on-success" = "icon-on-success",
|
|
26
|
+
"icon-culture" = "icon-culture",
|
|
25
27
|
"component-brand" = "component-brand",
|
|
26
28
|
"component-business" = "component-business",
|
|
27
29
|
"component-primary" = "component-primary",
|
|
@@ -46,6 +48,7 @@ export enum DsColorEnum {
|
|
|
46
48
|
"surface-sudoko" = "surface-sudoko",
|
|
47
49
|
"surface-brand" = "surface-brand",
|
|
48
50
|
"surface-inverted" = "surface-inverted",
|
|
51
|
+
"surface-breaking" = "surface-breaking",
|
|
49
52
|
"border-primary" = "border-primary",
|
|
50
53
|
"border-primary-02" = "border-primary-02",
|
|
51
54
|
"border-primary-03" = "border-primary-03",
|
|
@@ -57,6 +60,7 @@ export enum DsColorEnum {
|
|
|
57
60
|
"border-focus-03" = "border-focus-03",
|
|
58
61
|
"border-focus-04" = "border-focus-04",
|
|
59
62
|
"border-brand" = "border-brand",
|
|
63
|
+
"border-culture" = "border-culture",
|
|
60
64
|
"background-primary" = "background-primary",
|
|
61
65
|
"static-red-100" = "static-red-100",
|
|
62
66
|
"static-black" = "static-black",
|
|
@@ -95,6 +99,7 @@ export enum DsColorIconEnum {
|
|
|
95
99
|
"icon-on-business" = "icon-on-business",
|
|
96
100
|
"icon-brand" = "icon-brand",
|
|
97
101
|
"icon-on-critical" = "icon-on-critical",
|
|
98
|
-
"icon-on-success" = "icon-on-success"
|
|
102
|
+
"icon-on-success" = "icon-on-success",
|
|
103
|
+
"icon-culture" = "icon-culture"
|
|
99
104
|
}
|
|
100
105
|
export type DsColorIcon = keyof typeof DsColorIconEnum;
|