@equinor/cpl-theme-react 0.0.4 → 0.0.6
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/dist/index.css +47 -13
- package/package.json +7 -7
package/dist/index.css
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
--eds-color-border-interactive-resting:
|
|
1
|
+
:root[data-equinor-cpl-theme='light'] {
|
|
2
|
+
/* EDS 1 colors not available in eds-tokens */
|
|
3
|
+
--eds-color-border-interactive-resting: rgb(179, 179, 179);
|
|
4
|
+
--color-text: #000;
|
|
5
|
+
|
|
6
|
+
/* Chart colors (1-22) */
|
|
4
7
|
--chart-color-1: #00a3be;
|
|
5
8
|
--chart-color-2: #d58000;
|
|
6
9
|
--chart-color-3: #889900;
|
|
@@ -23,34 +26,52 @@
|
|
|
23
26
|
--chart-color-20: #ae8775;
|
|
24
27
|
--chart-color-21: #666666;
|
|
25
28
|
--chart-color-22: #949494;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
Custom variables
|
|
32
|
+
These are not part of EDS
|
|
33
|
+
*/
|
|
34
|
+
--color-text-inverse: #fff;
|
|
35
|
+
--ui-background-temporary-nav: #fff;
|
|
26
36
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
37
|
+
|
|
38
|
+
/* Dark theme */
|
|
39
|
+
:root[data-equinor-cpl-theme='dark'] {
|
|
40
|
+
--background-default: rgb(19, 38, 52);
|
|
41
|
+
--background-raised: rgb(36, 55, 70);
|
|
30
42
|
--color-text: #ffffff;
|
|
31
|
-
--color-text-secondary:
|
|
43
|
+
--color-text-secondary: rgb(222, 229, 231);
|
|
32
44
|
--color-text-tertiary: rgba(156, 166, 172, 1);
|
|
33
45
|
--color-text-static-icons-primary: rgba(255, 255, 255, 1);
|
|
34
46
|
--color-text-static-primary-black: rgba(0, 0, 0, 1);
|
|
35
47
|
--color-text-static-icons-secondary: rgba(222, 229, 231, 1);
|
|
36
48
|
--color-text-static-icons-tertiary: rgba(156, 166, 172, 1);
|
|
49
|
+
|
|
37
50
|
--interactive-primary-resting: rgba(151, 202, 206, 1);
|
|
38
51
|
--interactive-primary-hover-alt: rgba(173, 226, 230, 0.1);
|
|
39
52
|
--interactive-primary-hover: rgba(173, 226, 230, 1);
|
|
40
53
|
--interactive-secondary-resting: rgba(222, 229, 231, 1);
|
|
41
54
|
--interactive-secondary-highlight: rgba(255, 255, 255, 0.1);
|
|
42
55
|
--interactive-secondary-hover: rgba(255, 255, 255, 1);
|
|
43
|
-
--interactive-focus-border:
|
|
44
|
-
--interactive-disabled-text:
|
|
45
|
-
--interactive-disabled-border:
|
|
56
|
+
--interactive-focus-border: rgb(151, 202, 206);
|
|
57
|
+
--interactive-disabled-text: rgb(99, 117, 131);
|
|
58
|
+
--interactive-disabled-border: rgb(64, 84, 98);
|
|
46
59
|
--interactive-focus: rgba(0, 112, 121, 1);
|
|
60
|
+
|
|
61
|
+
--interactive-link-in-snackbars: rgb(151, 202, 206);
|
|
62
|
+
|
|
47
63
|
--interactive-danger-text: rgba(255, 102, 112, 1);
|
|
48
64
|
--interactive-warning-text: rgba(255, 198, 122, 1);
|
|
49
65
|
--interactive-success-text: rgba(161, 218, 160, 1);
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
--
|
|
66
|
+
|
|
67
|
+
/* Interactive table */
|
|
68
|
+
--interactive-table-header-fill-resting: rgb(36, 55, 70);
|
|
69
|
+
|
|
70
|
+
--line-color: rgb(68, 76, 82);
|
|
71
|
+
--line-color-2: rgb(57, 73, 85);
|
|
53
72
|
--background-lighten: rgba(2, 1, 1, 0.16);
|
|
73
|
+
|
|
74
|
+
/* Chart colors (1-22) */
|
|
54
75
|
--chart-color-1: #2caffe;
|
|
55
76
|
--chart-color-2: #544fc5;
|
|
56
77
|
--chart-color-3: #00e272;
|
|
@@ -73,12 +94,25 @@
|
|
|
73
94
|
--chart-color-20: #91e8e1;
|
|
74
95
|
--chart-color-21: #2caffe;
|
|
75
96
|
--chart-color-22: #544fc5;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
EDS 2.0 variables
|
|
100
|
+
*/
|
|
76
101
|
--eds-color-surface-input: rgba(0, 0, 0, 0.28);
|
|
77
102
|
--eds-color-text-input-placeholder: rgba(100, 114, 125, 1);
|
|
78
103
|
--eds-color-icon-interactive: rgba(166, 175, 181, 1);
|
|
79
104
|
--eds-color-text-static: rgba(166, 175, 181, 1);
|
|
80
105
|
--eds-color-text-static-2: rgba(194, 200, 204, 1);
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Custom variables
|
|
110
|
+
* These are not part of EDS
|
|
111
|
+
*/
|
|
112
|
+
--color-text-inverse: rgba(0, 0, 0, 1);
|
|
113
|
+
--ui-background-temporary-nav: rgb(62, 79, 92);
|
|
81
114
|
}
|
|
115
|
+
|
|
82
116
|
body {
|
|
83
117
|
background-color: var(--background-default);
|
|
84
118
|
color: var(--color-text);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/cpl-theme-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@equinor/eds-core-react": "^0.42.5",
|
|
17
|
-
"@storybook/react": "^
|
|
18
|
-
"@storybook/test": "^8.5.2",
|
|
17
|
+
"@storybook/react": "^9.0.12",
|
|
19
18
|
"@types/react": "^18.3.18",
|
|
20
19
|
"@types/react-dom": "^18.3.5",
|
|
21
20
|
"@types/styled-components": "^5.1.34",
|
|
@@ -24,8 +23,8 @@
|
|
|
24
23
|
"react-dom": "^18.2.0",
|
|
25
24
|
"styled-components": "^6.1.14",
|
|
26
25
|
"tsup": "^8.3.6",
|
|
27
|
-
"eslint-config
|
|
28
|
-
"
|
|
26
|
+
"@equinor/cpl-eslint-config": "0.0.8",
|
|
27
|
+
"@equinor/cpl-typescript-config": "0.0.2"
|
|
29
28
|
},
|
|
30
29
|
"peerDependencies": {
|
|
31
30
|
"@equinor/eds-core-react": ">=0.42.1",
|
|
@@ -37,9 +36,10 @@
|
|
|
37
36
|
"access": "public"
|
|
38
37
|
},
|
|
39
38
|
"scripts": {
|
|
40
|
-
"build": "tsup src/index.ts --format esm,cjs --dts --external react",
|
|
39
|
+
"build": "tsup src/index.ts --format esm,cjs --dts --external react && cp src/styles.css dist/index.css",
|
|
41
40
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
42
41
|
"dev": "tsup src/index.ts --format esm,cjs --watch --dts --external react",
|
|
43
|
-
"lint": "TIMING=1 eslint . --fix"
|
|
42
|
+
"lint": "TIMING=1 eslint . --fix",
|
|
43
|
+
"typecheck": "tsc --noEmit"
|
|
44
44
|
}
|
|
45
45
|
}
|