partforge 0.10.0 → 0.11.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/package.json +3 -2
- package/src/framework/app.css +1 -15
- package/src/framework/tokens.css +18 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "partforge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Turn a declarative part definition into a parametric-CAD web app (three.js + Manifold/Replicad). Requires a Vite-based consumer.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"./worker": "./src/framework/worker.js",
|
|
27
27
|
"./geometry": "./src/framework/geometry/polygon.js",
|
|
28
28
|
"./derive": "./src/framework/derive.js",
|
|
29
|
-
"./testing": "./src/testing.js"
|
|
29
|
+
"./testing": "./src/testing.js",
|
|
30
|
+
"./tokens.css": "./src/framework/tokens.css"
|
|
30
31
|
},
|
|
31
32
|
"bin": {
|
|
32
33
|
"partforge": "./bin/cli.js"
|
package/src/framework/app.css
CHANGED
|
@@ -2,22 +2,8 @@
|
|
|
2
2
|
busy overlay) + the light/dark palettes. Imported by framework/mount.js, so
|
|
3
3
|
every part-app gets it; each part's HTML only carries structural markup.
|
|
4
4
|
See docs/AUTHORING-PARTS.md. */
|
|
5
|
+
@import "./tokens.css"; /* palette + light overrides; also exported standalone as partforge/tokens.css */
|
|
5
6
|
|
|
6
|
-
:root {
|
|
7
|
-
color-scheme: dark;
|
|
8
|
-
--bg: #15181d; --surface: #1f242c; --surface-2: #20262e; --border: #2c333d;
|
|
9
|
-
--text: #d6dbe2; --text-strong: #e7ebf1; --text-2: #cdd4dd;
|
|
10
|
-
--muted: #7d8794; --muted-2: #aab2bd; --status: #8b94a0; --hint: #6b7480;
|
|
11
|
-
--accent: #3f7bf0; --accent-soft: #26314a; --on-accent: #fff; --input-bg: #161a20; --err: #f8746c;
|
|
12
|
-
--mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
|
|
13
|
-
}
|
|
14
|
-
:root[data-theme="light"] {
|
|
15
|
-
color-scheme: light;
|
|
16
|
-
--bg: #eef1f5; --surface: #ffffff; --surface-2: #f4f6f9; --border: #d4dae2;
|
|
17
|
-
--text: #2b333d; --text-strong: #1a2129; --text-2: #3a434e;
|
|
18
|
-
--muted: #6b7480; --muted-2: #59636f; --status: #6b7480; --hint: #8a93a0;
|
|
19
|
-
--accent: #1f5bd6; --accent-soft: #e6edfc; --on-accent: #fff; --input-bg: #ffffff; --err: #d8453d;
|
|
20
|
-
}
|
|
21
7
|
* { box-sizing: border-box; }
|
|
22
8
|
html, body { margin: 0; height: 100%; overflow: hidden;
|
|
23
9
|
font: 13px/1.4 -apple-system, system-ui, sans-serif; }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* partforge design tokens — the light/dark palette. Imported by app.css (so every
|
|
2
|
+
part-app gets it via mount) and exported as "partforge/tokens.css" for other
|
|
3
|
+
consumers (e.g. partforge-cloud's app chrome) to share one source of truth. */
|
|
4
|
+
:root {
|
|
5
|
+
color-scheme: dark;
|
|
6
|
+
--bg: #15181d; --surface: #1f242c; --surface-2: #20262e; --border: #2c333d;
|
|
7
|
+
--text: #d6dbe2; --text-strong: #e7ebf1; --text-2: #cdd4dd;
|
|
8
|
+
--muted: #7d8794; --muted-2: #aab2bd; --status: #8b94a0; --hint: #6b7480;
|
|
9
|
+
--accent: #3f7bf0; --accent-soft: #26314a; --on-accent: #fff; --input-bg: #161a20; --err: #f8746c;
|
|
10
|
+
--mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
|
|
11
|
+
}
|
|
12
|
+
:root[data-theme="light"] {
|
|
13
|
+
color-scheme: light;
|
|
14
|
+
--bg: #eef1f5; --surface: #ffffff; --surface-2: #f4f6f9; --border: #d4dae2;
|
|
15
|
+
--text: #2b333d; --text-strong: #1a2129; --text-2: #3a434e;
|
|
16
|
+
--muted: #6b7480; --muted-2: #59636f; --status: #6b7480; --hint: #8a93a0;
|
|
17
|
+
--accent: #1f5bd6; --accent-soft: #e6edfc; --on-accent: #fff; --input-bg: #ffffff; --err: #d8453d;
|
|
18
|
+
}
|