@tecsinapse/cortex-core 2.0.2-beta.0 → 2.0.2-beta.1
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.
|
@@ -153,9 +153,9 @@ const fontFamily = {
|
|
|
153
153
|
mono: "Consolas, monaco, monospace"
|
|
154
154
|
};
|
|
155
155
|
const textColor = {
|
|
156
|
-
light: "#fff",
|
|
157
|
-
medium: "#85807a",
|
|
158
|
-
dark: "#353231",
|
|
156
|
+
light: "var(--color-text-light, #fff)",
|
|
157
|
+
medium: "var(--color-text-medium, #85807a)",
|
|
158
|
+
dark: "var(--color-text-dark, #353231)",
|
|
159
159
|
orange: "#f89907"
|
|
160
160
|
};
|
|
161
161
|
const zIndex = {
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -9,13 +9,15 @@ const updateThemeColors = (theme) => {
|
|
|
9
9
|
Object.entries(colorShades).forEach(([shade, hexValue]) => {
|
|
10
10
|
if (!hexValue) return;
|
|
11
11
|
root.style.setProperty(`--color-${colorName}-${shade}`, hexValue);
|
|
12
|
-
(shade !== "xlight" && shade !== "xdark" && polished.getContrast(
|
|
12
|
+
if (shade !== "xlight" && shade !== "xdark" && polished.getContrast(
|
|
13
13
|
root.style.getPropertyValue(`--color-text-${shade}`),
|
|
14
14
|
hexValue
|
|
15
|
-
) < 4.5)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
) < 4.5) {
|
|
16
|
+
root.style.setProperty(
|
|
17
|
+
`--color-text-${shade}`,
|
|
18
|
+
polished.readableColor(hexValue)
|
|
19
|
+
);
|
|
20
|
+
}
|
|
19
21
|
});
|
|
20
22
|
});
|
|
21
23
|
};
|
|
@@ -151,9 +151,9 @@ const fontFamily = {
|
|
|
151
151
|
mono: "Consolas, monaco, monospace"
|
|
152
152
|
};
|
|
153
153
|
const textColor = {
|
|
154
|
-
light: "#fff",
|
|
155
|
-
medium: "#85807a",
|
|
156
|
-
dark: "#353231",
|
|
154
|
+
light: "var(--color-text-light, #fff)",
|
|
155
|
+
medium: "var(--color-text-medium, #85807a)",
|
|
156
|
+
dark: "var(--color-text-dark, #353231)",
|
|
157
157
|
orange: "#f89907"
|
|
158
158
|
};
|
|
159
159
|
const zIndex = {
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -7,13 +7,15 @@ const updateThemeColors = (theme) => {
|
|
|
7
7
|
Object.entries(colorShades).forEach(([shade, hexValue]) => {
|
|
8
8
|
if (!hexValue) return;
|
|
9
9
|
root.style.setProperty(`--color-${colorName}-${shade}`, hexValue);
|
|
10
|
-
(shade !== "xlight" && shade !== "xdark" && getContrast(
|
|
10
|
+
if (shade !== "xlight" && shade !== "xdark" && getContrast(
|
|
11
11
|
root.style.getPropertyValue(`--color-text-${shade}`),
|
|
12
12
|
hexValue
|
|
13
|
-
) < 4.5)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
) < 4.5) {
|
|
14
|
+
root.style.setProperty(
|
|
15
|
+
`--color-text-${shade}`,
|
|
16
|
+
readableColor(hexValue)
|
|
17
|
+
);
|
|
18
|
+
}
|
|
17
19
|
});
|
|
18
20
|
});
|
|
19
21
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-core",
|
|
3
|
-
"version": "2.0.2-beta.
|
|
3
|
+
"version": "2.0.2-beta.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Core library for tailwindcss based design",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"tailwindcss": "^4.1.16"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "7312335a32c082dd8cf3b264bae6cda03678f5f1"
|
|
39
39
|
}
|