@getcoherent/core 0.5.9 → 0.5.11
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/LICENSE +21 -0
- package/dist/index.js +6 -6
- package/package.json +8 -8
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Sergei Kovtun
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.js
CHANGED
|
@@ -1237,12 +1237,12 @@ function blendColors(hex1, hex2, ratio) {
|
|
|
1237
1237
|
function buildCssVariables(config) {
|
|
1238
1238
|
const light = config.tokens.colors.light;
|
|
1239
1239
|
const dark = config.tokens.colors.dark;
|
|
1240
|
-
const accentVars =
|
|
1240
|
+
const accentVars = ` --accent: ${light.muted};
|
|
1241
1241
|
--accent-foreground: ${light.foreground};
|
|
1242
|
-
|
|
1243
|
-
const accentDarkVars =
|
|
1242
|
+
`;
|
|
1243
|
+
const accentDarkVars = ` --accent: ${dark.muted};
|
|
1244
1244
|
--accent-foreground: ${dark.foreground};
|
|
1245
|
-
|
|
1245
|
+
`;
|
|
1246
1246
|
return `:root {
|
|
1247
1247
|
--background: ${light.background};
|
|
1248
1248
|
--foreground: ${light.foreground};
|
|
@@ -7067,7 +7067,7 @@ export default config
|
|
|
7067
7067
|
--secondary-foreground: ${_ProjectScaffolder.contrastingForeground(light.secondary)};
|
|
7068
7068
|
--muted: ${light.muted};
|
|
7069
7069
|
--muted-foreground: ${_ProjectScaffolder.blendColors(light.foreground, light.background, 0.45)};
|
|
7070
|
-
--accent: ${light.
|
|
7070
|
+
--accent: ${light.muted};
|
|
7071
7071
|
--accent-foreground: ${light.foreground};
|
|
7072
7072
|
--destructive: ${light.error};
|
|
7073
7073
|
--destructive-foreground: ${_ProjectScaffolder.contrastingForeground(light.error)};
|
|
@@ -7094,7 +7094,7 @@ export default config
|
|
|
7094
7094
|
--secondary-foreground: ${_ProjectScaffolder.contrastingForeground(dark.secondary)};
|
|
7095
7095
|
--muted: ${dark.muted};
|
|
7096
7096
|
--muted-foreground: ${_ProjectScaffolder.blendColors(dark.foreground, dark.background, 0.45)};
|
|
7097
|
-
--accent: ${dark.
|
|
7097
|
+
--accent: ${dark.muted};
|
|
7098
7098
|
--accent-foreground: ${dark.foreground};
|
|
7099
7099
|
--destructive: ${dark.error};
|
|
7100
7100
|
--destructive-foreground: ${_ProjectScaffolder.contrastingForeground(dark.error)};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.5.
|
|
6
|
+
"version": "0.5.11",
|
|
7
7
|
"description": "Core design system engine for Coherent",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "./dist/index.js",
|
|
@@ -32,12 +32,6 @@
|
|
|
32
32
|
],
|
|
33
33
|
"author": "Coherent Design Method",
|
|
34
34
|
"license": "MIT",
|
|
35
|
-
"scripts": {
|
|
36
|
-
"dev": "tsup --watch",
|
|
37
|
-
"build": "tsup",
|
|
38
|
-
"typecheck": "tsc --noEmit",
|
|
39
|
-
"test": "vitest"
|
|
40
|
-
},
|
|
41
35
|
"dependencies": {
|
|
42
36
|
"handlebars": "^4.7.8",
|
|
43
37
|
"zod": "^3.22.4"
|
|
@@ -47,5 +41,11 @@
|
|
|
47
41
|
"tsup": "^8.0.1",
|
|
48
42
|
"typescript": "^5.3.3",
|
|
49
43
|
"vitest": "^1.2.1"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"dev": "tsup --watch",
|
|
47
|
+
"build": "tsup",
|
|
48
|
+
"typecheck": "tsc --noEmit",
|
|
49
|
+
"test": "vitest"
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
}
|