diff --git a/design-refs/mockup/color-system.html b/design-refs/mockup/color-system.html index e576404..de72dd7 100644 --- a/design-refs/mockup/color-system.html +++ b/design-refs/mockup/color-system.html @@ -74,12 +74,13 @@ /* ====== 色板 ====== */ .group-label { font-size: 13px; font-weight: 700; color: #1a1a1a; margin-bottom: 3px; } .group-label i { font-style: normal; font-weight: 400; font-size: 11.5px; color: #6b6b6b; margin-left: 8px; } - .swrow { display: grid; gap: 8px; margin-bottom: 14px; } + .swrow { display: grid; gap: 8px; margin-bottom: 10px; } .sw { min-width: 0; } .sw .blk { - height: 42px; border-radius: 8px; + height: 34px; border-radius: 8px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(26,26,26,0.05); } + .sw .blk .ov { position: absolute; inset: 0; } .sw .tk { font-family: "DejaVu Sans Mono", monospace; font-size: 9.5px; font-weight: 700; color: #1a1a1a; margin-top: 5px; white-space: nowrap; overflow: hidden; } .sw .hx { font-family: "DejaVu Sans Mono", monospace; font-size: 9px; color: #6b6b6b; white-space: nowrap; } .sw .use { font-size: 9.5px; color: #8a8a8a; margin-top: 1px; white-space: nowrap; overflow: hidden; } @@ -139,6 +140,44 @@ .rcard .rt { display: flex; align-items: center; gap: 6px; margin-top: 8px; } .rcard .rt .icotile { width: 18px; height: 18px; border-radius: 6px; font-size: 10px; flex: none; display: flex; align-items: center; justify-content: center; } .rcard .rt b { font-size: 12.5px; flex: 1; } + + /* ====== 玻璃风格(第 3 页) ====== */ + .glass { + border-radius: 14px; border: 1px solid rgba(255,255,255,0.65); + box-shadow: 0 8px 24px rgba(26,26,26,0.10), inset 0 1px 0 rgba(255,255,255,0.9); + backdrop-filter: blur(8px); + } + .glass.strong { background: rgba(255,255,255,0.72); } + .glass.mid { background: rgba(255,255,255,0.55); } + .glass.light { background: rgba(255,255,255,0.40); } + .gtopbar { position: absolute; display: flex; align-items: center; gap: 18px; padding: 0 16px; height: 44px; } + .gtopbar .glogo { font-size: 13px; font-weight: 800; color: #1a1a1a; letter-spacing: 0.5px; } + .gtopbar .gmenu { display: flex; gap: 14px; font-size: 11.5px; color: #555555; } + .gtopbar .gmenu span.on { color: #1a1a1a; font-weight: 700; } + .gpill { + height: 24px; border-radius: 999px; background: rgba(255,255,255,0.45); + border: 1px solid rgba(255,255,255,0.6); display: flex; align-items: center; + padding: 0 12px; font-size: 10.5px; color: #6b6b6b; gap: 6px; + } + .gcard { position: absolute; padding: 10px; } + .gcard .gzone { + border-radius: 8px; background: rgba(255,255,255,0.25); + border: 1px solid rgba(255,255,255,0.4); + display: flex; align-items: center; justify-content: center; position: relative; + } + .gcard .gzone span { font-size: 28px; } + .gcard .gzone i { + position: absolute; right: 6px; bottom: 6px; font-style: normal; + font-size: 8.5px; color: #3d3d3d; background: rgba(255,255,255,0.72); + padding: 1px 5px; border-radius: 999px; font-weight: 600; + } + .gcard .gt { display: flex; align-items: center; gap: 6px; margin-top: 8px; } + .gcard .gt .gico { + width: 18px; height: 18px; border-radius: 6px; + background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.6); + display: flex; align-items: center; justify-content: center; font-size: 10px; + } + .gcard .gt b { font-size: 12.5px; flex: 1; color: #1a1a1a; } @@ -193,6 +232,15 @@
ch5 全栈基础
#e0f2fe
字 #0369a1
ch6 高级教程
#ede9fe
字 #6d28d9
+ +
⑤ 玻璃面 · 半透明白 表面而非颜色层——浮在任意色域之上,四层分工不变(样票铺在 sage 上演示)
+
+
glass-strong
white ·72
文字面
+
glass
white ·55
卡面
+
glass-light
white ·40
HUD 图例
+
glass-line
1px ·65
亮边
+
glass-edge
inset ·90
内高光
+
@@ -217,7 +265,7 @@
色彩系统 · ColorSystem · stack idealjs
-
01 / 02
+
01 / 03
@@ -303,7 +351,97 @@
色彩系统 · ColorSystem · stack idealjs
-
02 / 02
+
02 / 03
+ + + + +
+
+ <GlassStyle /> +

玻璃风格预览 · 表面而非颜色层

+
玻璃是纸之外的另一种表面:半透白 + 1px 亮边 + 内高光。它必须跨越色域边界才可见——平放在白桌上等于不存在。四层颜色分工不变,玻璃只换载体。
+
+ +
+
+
+
+
ch5 蓝色域
+
ch2 粉色域
+
ch4 绿色域
+ + + + + + + + + + + + +
+ +
课程工具实践
+
🔍 搜索章节…
+
+ +
+ + + + + +
线路 HUD · 线从玻璃下穿过
+
+ +
+
🌐16:9 · GIF
+
🌐快速开始✓
+
+
+
⚛️16:9 · GIF
+
⚛️React✓
+
+ +
+
🌐
+
快速开始✓ 完成No. 001
+
№01
+
+ +
+ 预期区 = 彩色磨砂:章节色透过 glass-light 显色;文字只上 glass-strong(白底 ≥ 72%)。
+ 卡片跨在色域边界上——半透明在边界处才被看见,这是玻璃的构图纪律。 +
+
+ +
+

玻璃 token

+ + + + + + + + +
token值用途
glass-strongwhite ·72文字面
glasswhite ·55卡面
glass-lightwhite ·40HUD / 图例
glass-line1px ·65亮边
glass-edgeinset ·90内高光
glass-shadow0 8 24 ·.10投影
+
+
+

玻璃规则

+
1玻璃是表面不是颜色:四层分工不变,玻璃只是纸之外的载体。
+
2文字只上 strong:承载文字的玻璃白底 ≥ 72%,保住 ink 对比。
+
3必须跨色域:玻璃要骑在颜色边界上;平放白桌等于看不见。
+
4玻璃也是预算:一屏 ≤ 3 件,与饱和度预算同理。
+
5线可穿玻璃:线路与站点允许从 glass-light 下穿过(HUD)。
+
6不加渐变描边:亮度来自 1px 亮边 + 内高光,不是渐变。
+
+ +
色彩系统 · GlassStyle · stack idealjs
+
03 / 03
diff --git a/design-refs/mockup/color-system.pdf b/design-refs/mockup/color-system.pdf index cee18d9..7f4044d 100644 Binary files a/design-refs/mockup/color-system.pdf and b/design-refs/mockup/color-system.pdf differ