Every diagram genre glass-design ships as a copy-ready template — from architecture, flow and sequence to SoC block, timing waveform, ring buffer and scheduler timeline. Paste one into a glass page, drop the preview style, and the page's tokens take over both themes. glass-design 把每种图型都做成可直接复制的模板——从架构、流程、时序,到 SoC 框图、时序波形、环形缓冲、调度时间线。把它贴进 glass 页面、删掉预览样式,页面的 token 就会接管双主题配色。
Hierarchy, control flow, deployment, silicon, signals, memory and scheduling — the denser genres run full-width so every label keeps its size, and the tint layer carries the categories: cyan for the hot path, indigo for storage and secondary lanes. 层级、控制流、部署、芯片、信号、内存、调度——更密的图型整行展开,每个标签都保住尺寸;类别交给着色层:cyan 是热路径,indigo 是存储与次级泳道。
0x80_0000_0000 to the host and 0x18_0000_0000 to the device. Segment widths are not to scale.
上半是拓扑,下半是每个视角各一条地址空间,那条 cyan 路径就是全图的结论:CPU 核用一条普通 store 就写得到斜纹那一段,指针可以直接递过去,不用拷贝。两条带永不合并——同一块 DRAM 在 host 眼里是 0x80_0000_0000,在设备眼里是 0x18_0000_0000。段宽不按比例。
Board topology over its own address bar, a tile mesh, a gate-level datapath, layered encapsulation on a byte ruler, an annotated console, a pointer graph and a bus fabric. Cyan stays reserved for the one thing being traced — the mesh rails and the ring stops drop to the neutral line token so that reservation still means something. 板级拓扑压在自己的地址条上、瓦片网格、器件级数据通路、字节标尺上的逐层封装、终端实录标注、指针图、总线挂载。cyan 只留给被追踪的那一样——互连轨和站点降到中性线条 token,这个约定才还算数。
Each template previews standalone with an embedded style block and a navy backdrop. On a glass page both are dead weight — the page already provides the classes, the canvas and the light. 每张模板都带一段内嵌样式和一块藏青底,用来单独预览。进了 glass 页面这两样都是累赘——页面本身已经提供了类、画布和光。
Drop the embedded style block and the background rect when you paste. This page did exactly that for all fourteen. 粘贴时删掉内嵌的 style 块和背景 rect。本页的十四张图就是这么处理的。
Labels go through the .glass-svg classes, so the same SVG survives the light theme. Hardcoded white text vanishes at noon; hardcoded cyan text dies on white. 标签全部走 .glass-svg 类,同一张 SVG 切到 light 主题原样存活。写死的白字到了白天就消失,写死的 cyan 字在白底上看不清。
At most three glow elements per diagram — the flow, the focus, the live marker. Zero is a wireframe; four is a christmas tree. 每张图至多三个发光元素——流向、焦点、live 标记。零个是线稿,四个是圣诞树。
The flagship demo redraws three of these genres on the repo's own story — architecture, silicon and a three-remote git flow, all in the same glass. 旗舰 demo 用仓库自己的故事重画了其中三种图型——架构、芯片、三远端 git 协作,全部用同一块玻璃。