@mooncellwiki/prts-design-tokens 0.1.2 → 0.1.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mooncellwiki/prts-design-tokens",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "PRTS Design · 明日方舟网页设计系统的设计令牌:W3C DTCG 格式的 JSON5 源 + CSS 变量版 tokens.css(亮 / 暗 / 跟随系统 / 局部主题)+ 解析后的 tokens.json(每个令牌带 CSS 写法与亮 / 暗解析值)",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -0,0 +1,11 @@
1
+ {
2
+ typography: {
3
+ font: {
4
+ $description: "低分屏(< 1.5dppx)的正文链:把微软雅黑提到自托管的 Noto Sans SC 前面。\nNoto 的 web 切片没有 hinting——Windows(DirectWrite)在 100% / 125% 缩放下小字号中文发虚;雅黑为 ClearType 做过 hinting。\n没装雅黑的系统(macOS / Linux / 移动端)照旧落到 Noto,高分屏的 Windows 也仍用 Noto。雅黑只有 Regular / Bold:500 落 Regular,600 / 800 落 Bold。\n装机的 Source Han Sans SC 仍排最前(与 :root 的链同序)。",
5
+ $type: "fontFamily",
6
+ "font-body": {
7
+ $value: "\"Source Han Sans SC\", \"Microsoft YaHei\", \"Noto Sans SC\", \"Noto Sans CJK SC\", \"PingFang SC\", \"HarmonyOS Sans SC\", system-ui, -apple-system, sans-serif",
8
+ },
9
+ },
10
+ },
11
+ }
package/tokens.css CHANGED
@@ -650,6 +650,19 @@ html.skin-theme-clientpref-night,
650
650
  --ak-canvas-attachment: scroll;
651
651
  }
652
652
 
653
+ /* ═══ 低分屏:正文链把微软雅黑提到 Noto Sans SC 前面(Windows 100% / 125% 缩放下未 hinting 的 Noto 发虚;没装雅黑的系统不受影响) ═══ */
654
+ @media (max-resolution: 1.49dppx) {
655
+ :root {
656
+ /* ─── typography */
657
+
658
+ /* ─── typography · font · 低分屏(< 1.5dppx)的正文链:把微软雅黑提到自托管的 Noto Sans SC 前面。
659
+ * Noto 的 web 切片没有 hinting——Windows(DirectWrite)在 100% / 125% 缩放下小字号中文发虚;雅黑为 ClearType 做过 hinting。
660
+ * 没装雅黑的系统(macOS / Linux / 移动端)照旧落到 Noto,高分屏的 Windows 也仍用 Noto。雅黑只有 Regular / Bold:500 落 Regular,600 / 800 落 Bold。
661
+ * 装机的 Source Han Sans SC 仍排最前(与 :root 的链同序)。 */
662
+ --ak-font-body: "Source Han Sans SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "HarmonyOS Sans SC", system-ui, -apple-system, sans-serif;
663
+ }
664
+ }
665
+
653
666
  /* ═══ 高对比偏好:只有亮色吃得到(暗色块选择器特指度更高,压过这里的 :root——沿用原行为;.ak-scope[data-theme="light"] 与 2b′ 同特指度、本块在后,作用域亮色同样吃得到) ═══ */
654
667
  @media (prefers-contrast: more) {
655
668
  :root,