twskin 0.6.0 → 0.6.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.
- package/CHANGELOG.md +16 -0
- package/CONTRIBUTING.md +2 -1
- package/README.md +2 -0
- package/package.json +1 -1
- package/runtime/manifest.json +3 -3
- package/runtime/token-map.mjs +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,22 @@ All notable changes to this package are documented here. This project follows
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.6.1] - 2026-07-29
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Updated `Solvay 1927 · Solarized Light` to theme version `1.0.12`. Assistant
|
|
13
|
+
replies now use an unframed reading layout, and the composer action is a
|
|
14
|
+
compact archive control without the oversized orbit decoration.
|
|
15
|
+
- Made overlay surfaces use neutral light/dark alpha ramps instead of border
|
|
16
|
+
colors, keeping recommendation cards and shared hover surfaces brighter and
|
|
17
|
+
free from unintended accent-color casts.
|
|
18
|
+
|
|
19
|
+
### For contributors
|
|
20
|
+
|
|
21
|
+
- Added regression coverage for Solvay assistant-message and composer-action
|
|
22
|
+
boundaries, plus explicit dark and light overlay-token mappings.
|
|
23
|
+
|
|
8
24
|
## [0.6.0] - 2026-07-29
|
|
9
25
|
|
|
10
26
|
### Added
|
package/CONTRIBUTING.md
CHANGED
|
@@ -34,4 +34,5 @@ npm pack --dry-run
|
|
|
34
34
|
|
|
35
35
|
Versions follow Semantic Versioning. Publishing is performed from CI with npm
|
|
36
36
|
trusted publishing/provenance; maintainers should not publish ad hoc local
|
|
37
|
-
tarballs to the public registry.
|
|
37
|
+
tarballs to the public registry. Follow the
|
|
38
|
+
[publishing guide](docs/publishing.md) for the tagged release workflow.
|
package/README.md
CHANGED
|
@@ -114,6 +114,8 @@ npm pack --dry-run
|
|
|
114
114
|
TypeScript compiles to `dist/`. The tracked `runtime/` directory is the single
|
|
115
115
|
source of truth for the injection engine; `prepare:runtime` only generates its
|
|
116
116
|
SHA-256 manifest. npm publishes both outputs, while themes remain external.
|
|
117
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for the complete contributor and release
|
|
118
|
+
checklist.
|
|
117
119
|
|
|
118
120
|
## Security
|
|
119
121
|
|
package/package.json
CHANGED
package/runtime/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "0.6.
|
|
3
|
+
"packageVersion": "0.6.1",
|
|
4
4
|
"themesBundled": false,
|
|
5
5
|
"files": [
|
|
6
6
|
{
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"path": "token-map.mjs",
|
|
43
|
-
"size":
|
|
44
|
-
"sha256": "
|
|
43
|
+
"size": 24446,
|
|
44
|
+
"sha256": "7c79c75e7ba634febc9817c55eef2e314a9e92362b6f190ea903e363a65557df"
|
|
45
45
|
}
|
|
46
46
|
]
|
|
47
47
|
}
|
package/runtime/token-map.mjs
CHANGED
|
@@ -198,11 +198,13 @@
|
|
|
198
198
|
case "invert-hover": return mix(surface.invert, 88, r.appearance === "dark" ? "black" : "white");
|
|
199
199
|
case "invert-active": return mix(surface.invert, 78, r.appearance === "dark" ? "black" : "white");
|
|
200
200
|
case "invert-disabled": return withAlpha(surface.invert, 0.4);
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
case "overlay-
|
|
204
|
-
case "overlay-
|
|
205
|
-
case "overlay-
|
|
201
|
+
// Overlay 是叠在当前表面上的中性色阶,不是边框色。
|
|
202
|
+
// 浅色与深色透明度沿用 App 的原生层级,色相跟随正文中性色。
|
|
203
|
+
case "overlay-l0": return withAlpha(text.primary, 0);
|
|
204
|
+
case "overlay-l1": return withAlpha(text.primary, r.appearance === "dark" ? 0.03 : 0.07);
|
|
205
|
+
case "overlay-l2": return withAlpha(text.primary, r.appearance === "dark" ? 0.05 : 0.11);
|
|
206
|
+
case "overlay-l3": return withAlpha(text.primary, r.appearance === "dark" ? 0.08 : 0.15);
|
|
207
|
+
case "overlay-l4": return withAlpha(text.primary, r.appearance === "dark" ? 0.12 : 0.19);
|
|
206
208
|
case "brand": case "brand-old": case "brand-sub": case "brand-design": return accent.base;
|
|
207
209
|
case "brand-hover": case "brand-hover-sub": case "brand-hover-design": return accent.hover;
|
|
208
210
|
case "brand-active": return accent.active;
|