@yuhuanowo/yunui 0.2.17 → 0.2.19

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.
Files changed (560) hide show
  1. package/README.md +56 -5
  2. package/README.zh-CN.md +21 -3
  3. package/README.zh-TW.md +21 -3
  4. package/THIRD_PARTY_NOTICES.md +13 -0
  5. package/agent/catalog.generated.json +29368 -0
  6. package/agent/recipes/analytics.tsx +121 -0
  7. package/agent/recipes/chat.tsx +154 -0
  8. package/agent/recipes/conversation-units.tsx +28 -0
  9. package/agent/recipes/dashboard.tsx +38 -0
  10. package/agent/recipes/landing.tsx +26 -0
  11. package/agent/recipes/setup.md +44 -0
  12. package/agent/skills/yunui/SKILL.md +82 -0
  13. package/dist/adapters.d.ts +5 -0
  14. package/dist/adapters.js +1 -1
  15. package/dist/ai.d.ts +478 -273
  16. package/dist/ai.js +1334 -1964
  17. package/dist/ai.js.map +1 -1
  18. package/dist/charts.d.ts +149 -0
  19. package/dist/charts.js +849 -0
  20. package/dist/charts.js.map +1 -0
  21. package/dist/chat.d.ts +204 -18
  22. package/dist/chat.js +887 -132
  23. package/dist/chat.js.map +1 -1
  24. package/dist/{chunk-F2HG4TOQ.js → chunk-ASPPAL7E.js} +25 -29
  25. package/dist/chunk-ASPPAL7E.js.map +1 -0
  26. package/dist/chunk-AVXIR7ZQ.js +197 -0
  27. package/dist/chunk-AVXIR7ZQ.js.map +1 -0
  28. package/dist/chunk-FJ52MVRF.js +82 -0
  29. package/dist/chunk-FJ52MVRF.js.map +1 -0
  30. package/dist/chunk-GRUB2GXF.js +15 -0
  31. package/dist/chunk-GRUB2GXF.js.map +1 -0
  32. package/dist/{chunk-3RT24MSH.js → chunk-GWD5W5F5.js} +2 -2
  33. package/dist/{chunk-3RT24MSH.js.map → chunk-GWD5W5F5.js.map} +1 -1
  34. package/dist/{chunk-BCOKFWXC.js → chunk-I2DAKAD5.js} +423 -281
  35. package/dist/chunk-I2DAKAD5.js.map +1 -0
  36. package/dist/chunk-OM7B4O6K.js +193 -0
  37. package/dist/chunk-OM7B4O6K.js.map +1 -0
  38. package/dist/chunk-OZIDZFMF.js +70 -0
  39. package/dist/chunk-OZIDZFMF.js.map +1 -0
  40. package/dist/chunk-P6LU2FWV.js +35 -0
  41. package/dist/chunk-P6LU2FWV.js.map +1 -0
  42. package/dist/chunk-SXWMKFKM.js +41 -0
  43. package/dist/chunk-SXWMKFKM.js.map +1 -0
  44. package/dist/chunk-TMTXJFNN.js +2715 -0
  45. package/dist/chunk-TMTXJFNN.js.map +1 -0
  46. package/dist/chunk-VNKAEQKU.js +501 -0
  47. package/dist/chunk-VNKAEQKU.js.map +1 -0
  48. package/dist/chunk-VSS7ASN2.js +12 -0
  49. package/dist/chunk-VSS7ASN2.js.map +1 -0
  50. package/dist/chunk-VYVFMNM7.js +112 -0
  51. package/dist/chunk-VYVFMNM7.js.map +1 -0
  52. package/dist/chunk-YKUQ7GCJ.js +230 -0
  53. package/dist/chunk-YKUQ7GCJ.js.map +1 -0
  54. package/dist/chunk-Z6WXDNBJ.js +366 -0
  55. package/dist/chunk-Z6WXDNBJ.js.map +1 -0
  56. package/dist/chunk-ZBRV6NHL.js +1115 -0
  57. package/dist/chunk-ZBRV6NHL.js.map +1 -0
  58. package/dist/code.d.ts +42 -0
  59. package/dist/code.js +8 -0
  60. package/dist/code.js.map +1 -0
  61. package/dist/content.d.ts +26 -40
  62. package/dist/content.js +400 -418
  63. package/dist/content.js.map +1 -1
  64. package/dist/footer-BCd-S806.d.ts +122 -0
  65. package/dist/index.d.ts +814 -88
  66. package/dist/index.js +7 -5
  67. package/dist/language.d.ts +30 -0
  68. package/dist/language.js +5 -0
  69. package/dist/language.js.map +1 -0
  70. package/dist/model-card.d.ts +43 -0
  71. package/dist/model-card.js +116 -0
  72. package/dist/model-card.js.map +1 -0
  73. package/dist/model.d.ts +51 -0
  74. package/dist/model.js +91 -0
  75. package/dist/model.js.map +1 -0
  76. package/dist/motion.d.ts +11 -0
  77. package/dist/motion.js +9 -0
  78. package/dist/motion.js.map +1 -0
  79. package/dist/patterns.d.ts +913 -29
  80. package/dist/patterns.js +1987 -259
  81. package/dist/patterns.js.map +1 -1
  82. package/dist/pickers.d.ts +134 -0
  83. package/dist/pickers.js +751 -0
  84. package/dist/pickers.js.map +1 -0
  85. package/dist/provider-icons-bgBTnami.d.ts +88 -0
  86. package/dist/segmented-bar-Bsr0PZIL.d.ts +58 -0
  87. package/dist/sparkline-vy5ec5C6.d.ts +67 -0
  88. package/icons/apps/aistudio.webp +0 -0
  89. package/icons/apps/coze.webp +0 -0
  90. package/icons/apps/dify.webp +0 -0
  91. package/icons/apps/doubao.webp +0 -0
  92. package/icons/apps/flowith.webp +0 -0
  93. package/icons/apps/gemini.webp +0 -0
  94. package/icons/apps/github-copilot.webp +0 -0
  95. package/icons/apps/google.webp +0 -0
  96. package/icons/apps/grok.webp +0 -0
  97. package/icons/apps/kimi.webp +0 -0
  98. package/icons/apps/ling.webp +0 -0
  99. package/icons/apps/longcat.webp +0 -0
  100. package/icons/apps/monica.webp +0 -0
  101. package/icons/apps/n8n.webp +0 -0
  102. package/icons/apps/notebooklm.webp +0 -0
  103. package/icons/apps/perplexity.webp +0 -0
  104. package/icons/apps/poe.webp +0 -0
  105. package/icons/apps/qingyan.webp +0 -0
  106. package/icons/apps/stepfun.webp +0 -0
  107. package/icons/apps/tiangong.webp +0 -0
  108. package/icons/apps/yuanbao.webp +0 -0
  109. package/icons/apps/zai.webp +0 -0
  110. package/icons/models/ai21.webp +0 -0
  111. package/icons/models/aimass.webp +0 -0
  112. package/icons/models/anthropic.webp +0 -0
  113. package/icons/models/baichuan.webp +0 -0
  114. package/icons/models/byte_dance.webp +0 -0
  115. package/icons/models/chatglm.webp +0 -0
  116. package/icons/models/claude.webp +0 -0
  117. package/icons/models/codegeex.webp +0 -0
  118. package/icons/models/cogview3flash.webp +0 -0
  119. package/icons/models/cohere.webp +0 -0
  120. package/icons/models/copilot.webp +0 -0
  121. package/icons/models/dalle.webp +0 -0
  122. package/icons/models/dbrx.webp +0 -0
  123. package/icons/models/deepseek.webp +0 -0
  124. package/icons/models/doubao.webp +0 -0
  125. package/icons/models/flux.webp +0 -0
  126. package/icons/models/gemini.webp +0 -0
  127. package/icons/models/gemma.webp +0 -0
  128. package/icons/models/google.webp +0 -0
  129. package/icons/models/grok.webp +0 -0
  130. package/icons/models/hailuo.webp +0 -0
  131. package/icons/models/huggingface.webp +0 -0
  132. package/icons/models/hunyuan.webp +0 -0
  133. package/icons/models/ibm.webp +0 -0
  134. package/icons/models/ideogram.webp +0 -0
  135. package/icons/models/internlm.webp +0 -0
  136. package/icons/models/jina.webp +0 -0
  137. package/icons/models/ling.webp +0 -0
  138. package/icons/models/llava.webp +0 -0
  139. package/icons/models/luma.webp +0 -0
  140. package/icons/models/magic.webp +0 -0
  141. package/icons/models/microsoft.webp +0 -0
  142. package/icons/models/midjourney.webp +0 -0
  143. package/icons/models/minimax.webp +0 -0
  144. package/icons/models/mistral.webp +0 -0
  145. package/icons/models/moonshot.webp +0 -0
  146. package/icons/models/nousresearch.webp +0 -0
  147. package/icons/models/nvidia.webp +0 -0
  148. package/icons/models/o3.webp +0 -0
  149. package/icons/models/openai.webp +0 -0
  150. package/icons/models/palm.webp +0 -0
  151. package/icons/models/perplexity.webp +0 -0
  152. package/icons/models/qwen.webp +0 -0
  153. package/icons/models/stability.webp +0 -0
  154. package/icons/models/step.webp +0 -0
  155. package/icons/models/suno.webp +0 -0
  156. package/icons/models/upstage.webp +0 -0
  157. package/icons/models/vidu.webp +0 -0
  158. package/icons/models/volcengine.webp +0 -0
  159. package/icons/models/voyageai.webp +0 -0
  160. package/icons/models/wenxin.webp +0 -0
  161. package/icons/models/yi.webp +0 -0
  162. package/icons/models/zai.webp +0 -0
  163. package/icons/models/zero-one.webp +0 -0
  164. package/icons/models/zhipu.webp +0 -0
  165. package/icons/providers/302ai.webp +0 -0
  166. package/icons/providers/ace.webp +0 -0
  167. package/icons/providers/adobe.webp +0 -0
  168. package/icons/providers/adobefirefly.webp +0 -0
  169. package/icons/providers/agentvoice.webp +0 -0
  170. package/icons/providers/agnesai.webp +0 -0
  171. package/icons/providers/agui.webp +0 -0
  172. package/icons/providers/ai2.webp +0 -0
  173. package/icons/providers/ai21.webp +0 -0
  174. package/icons/providers/ai302.webp +0 -0
  175. package/icons/providers/ai360.webp +0 -0
  176. package/icons/providers/aihubmix.webp +0 -0
  177. package/icons/providers/aimass.webp +0 -0
  178. package/icons/providers/aimlapi.webp +0 -0
  179. package/icons/providers/aionlabs.webp +0 -0
  180. package/icons/providers/airjelly.webp +0 -0
  181. package/icons/providers/aistudio.webp +0 -0
  182. package/icons/providers/akashchat.webp +0 -0
  183. package/icons/providers/alephalpha.webp +0 -0
  184. package/icons/providers/alibaba.webp +0 -0
  185. package/icons/providers/alibabacloud.webp +0 -0
  186. package/icons/providers/amdradeoncloud.webp +0 -0
  187. package/icons/providers/amp.webp +0 -0
  188. package/icons/providers/anspire.webp +0 -0
  189. package/icons/providers/antgroup.webp +0 -0
  190. package/icons/providers/anthropic.webp +0 -0
  191. package/icons/providers/antigravity.webp +0 -0
  192. package/icons/providers/anyscale.webp +0 -0
  193. package/icons/providers/apertis.webp +0 -0
  194. package/icons/providers/apple.webp +0 -0
  195. package/icons/providers/appwrite.webp +0 -0
  196. package/icons/providers/arcee.webp +0 -0
  197. package/icons/providers/askverdict.webp +0 -0
  198. package/icons/providers/assemblyai.webp +0 -0
  199. package/icons/providers/atlascloud.webp +0 -0
  200. package/icons/providers/automatic.webp +0 -0
  201. package/icons/providers/aws-bedrock.webp +0 -0
  202. package/icons/providers/aws.webp +0 -0
  203. package/icons/providers/aya.webp +0 -0
  204. package/icons/providers/azure.webp +0 -0
  205. package/icons/providers/azureai.webp +0 -0
  206. package/icons/providers/baai.webp +0 -0
  207. package/icons/providers/baichuan.webp +0 -0
  208. package/icons/providers/baidu-cloud.webp +0 -0
  209. package/icons/providers/baidu.webp +0 -0
  210. package/icons/providers/baiducloud.webp +0 -0
  211. package/icons/providers/bailian.webp +0 -0
  212. package/icons/providers/baseten.webp +0 -0
  213. package/icons/providers/bedrock.webp +0 -0
  214. package/icons/providers/bfl.webp +0 -0
  215. package/icons/providers/bigModel.webp +0 -0
  216. package/icons/providers/bilibili.webp +0 -0
  217. package/icons/providers/bilibiliindex.webp +0 -0
  218. package/icons/providers/bing.webp +0 -0
  219. package/icons/providers/bocha.webp +0 -0
  220. package/icons/providers/brave.webp +0 -0
  221. package/icons/providers/briaai.webp +0 -0
  222. package/icons/providers/browserless.webp +0 -0
  223. package/icons/providers/burncloud.webp +0 -0
  224. package/icons/providers/bytedance.webp +0 -0
  225. package/icons/providers/capcut.webp +0 -0
  226. package/icons/providers/celestoai.webp +0 -0
  227. package/icons/providers/centml.webp +0 -0
  228. package/icons/providers/cerebras.webp +0 -0
  229. package/icons/providers/chatglm.webp +0 -0
  230. package/icons/providers/cheaperinference.webp +0 -0
  231. package/icons/providers/cherrystudio.webp +0 -0
  232. package/icons/providers/chutes.webp +0 -0
  233. package/icons/providers/civitai.webp +0 -0
  234. package/icons/providers/claude.webp +0 -0
  235. package/icons/providers/claudecode.webp +0 -0
  236. package/icons/providers/cline.webp +0 -0
  237. package/icons/providers/clipdrop.webp +0 -0
  238. package/icons/providers/cloudflare.webp +0 -0
  239. package/icons/providers/codebuddy.webp +0 -0
  240. package/icons/providers/codeflicker.webp +0 -0
  241. package/icons/providers/codegeex.webp +0 -0
  242. package/icons/providers/codex.webp +0 -0
  243. package/icons/providers/cogvideo.webp +0 -0
  244. package/icons/providers/cogview.webp +0 -0
  245. package/icons/providers/cogview3flash.webp +0 -0
  246. package/icons/providers/cohere.webp +0 -0
  247. package/icons/providers/colab.webp +0 -0
  248. package/icons/providers/cometapi.webp +0 -0
  249. package/icons/providers/comfyui.webp +0 -0
  250. package/icons/providers/commanda.webp +0 -0
  251. package/icons/providers/commandcode.webp +0 -0
  252. package/icons/providers/copilot.webp +0 -0
  253. package/icons/providers/copilotkit.webp +0 -0
  254. package/icons/providers/coqui.webp +0 -0
  255. package/icons/providers/coze.webp +0 -0
  256. package/icons/providers/crewai.webp +0 -0
  257. package/icons/providers/crusoe.webp +0 -0
  258. package/icons/providers/cursor.webp +0 -0
  259. package/icons/providers/cybercut.webp +0 -0
  260. package/icons/providers/dalle.webp +0 -0
  261. package/icons/providers/dbrx.webp +0 -0
  262. package/icons/providers/decart.webp +0 -0
  263. package/icons/providers/deepai.webp +0 -0
  264. package/icons/providers/deepcogito.webp +0 -0
  265. package/icons/providers/deepinfra.webp +0 -0
  266. package/icons/providers/deepl.webp +0 -0
  267. package/icons/providers/deepmind.webp +0 -0
  268. package/icons/providers/deepseek.webp +0 -0
  269. package/icons/providers/devin.webp +0 -0
  270. package/icons/providers/dify.webp +0 -0
  271. package/icons/providers/digitalocean.webp +0 -0
  272. package/icons/providers/doc2x.webp +0 -0
  273. package/icons/providers/docsearch.webp +0 -0
  274. package/icons/providers/dolphin.webp +0 -0
  275. package/icons/providers/dothoosh.webp +0 -0
  276. package/icons/providers/dotsstudio.webp +0 -0
  277. package/icons/providers/doubao.webp +0 -0
  278. package/icons/providers/dreammachine.webp +0 -0
  279. package/icons/providers/elevenlabs.webp +0 -0
  280. package/icons/providers/elevenx.webp +0 -0
  281. package/icons/providers/empiriolabs.webp +0 -0
  282. package/icons/providers/essentialai.webp +0 -0
  283. package/icons/providers/exa.webp +0 -0
  284. package/icons/providers/fal.webp +0 -0
  285. package/icons/providers/fastgpt.webp +0 -0
  286. package/icons/providers/featherless.webp +0 -0
  287. package/icons/providers/figma.webp +0 -0
  288. package/icons/providers/firecrawl.webp +0 -0
  289. package/icons/providers/fireworks.webp +0 -0
  290. package/icons/providers/fishaudio.webp +0 -0
  291. package/icons/providers/flexai.webp +0 -0
  292. package/icons/providers/flora.webp +0 -0
  293. package/icons/providers/flowith.webp +0 -0
  294. package/icons/providers/flux.webp +0 -0
  295. package/icons/providers/friendli.webp +0 -0
  296. package/icons/providers/gemini.webp +0 -0
  297. package/icons/providers/geminicli.webp +0 -0
  298. package/icons/providers/gemma.webp +0 -0
  299. package/icons/providers/gitee-ai.webp +0 -0
  300. package/icons/providers/giteeai.webp +0 -0
  301. package/icons/providers/github.webp +0 -0
  302. package/icons/providers/githubcopilot.webp +0 -0
  303. package/icons/providers/glama.webp +0 -0
  304. package/icons/providers/glif.webp +0 -0
  305. package/icons/providers/glmv.webp +0 -0
  306. package/icons/providers/gmi.svg +5 -0
  307. package/icons/providers/gmicloud.webp +0 -0
  308. package/icons/providers/google.webp +0 -0
  309. package/icons/providers/googlecloud.webp +0 -0
  310. package/icons/providers/goose.webp +0 -0
  311. package/icons/providers/gradio.webp +0 -0
  312. package/icons/providers/greenpt.webp +0 -0
  313. package/icons/providers/greptile.webp +0 -0
  314. package/icons/providers/grok.webp +0 -0
  315. package/icons/providers/grokbot.webp +0 -0
  316. package/icons/providers/groq.webp +0 -0
  317. package/icons/providers/hailuo.webp +0 -0
  318. package/icons/providers/haiper.webp +0 -0
  319. package/icons/providers/happyhorse.webp +0 -0
  320. package/icons/providers/hedra.webp +0 -0
  321. package/icons/providers/hermesagent.webp +0 -0
  322. package/icons/providers/higress.webp +0 -0
  323. package/icons/providers/huawei.webp +0 -0
  324. package/icons/providers/huaweicloud.webp +0 -0
  325. package/icons/providers/huggingface.webp +0 -0
  326. package/icons/providers/hunyuan.webp +0 -0
  327. package/icons/providers/hyperbolic.webp +0 -0
  328. package/icons/providers/ibm.webp +0 -0
  329. package/icons/providers/ideogram.webp +0 -0
  330. package/icons/providers/iflytekcloud.webp +0 -0
  331. package/icons/providers/inception.webp +0 -0
  332. package/icons/providers/inceptron.webp +0 -0
  333. package/icons/providers/inference.webp +0 -0
  334. package/icons/providers/infermatic.webp +0 -0
  335. package/icons/providers/infini.webp +0 -0
  336. package/icons/providers/infinigence.webp +0 -0
  337. package/icons/providers/inflection.webp +0 -0
  338. package/icons/providers/internlm.webp +0 -0
  339. package/icons/providers/ionet.webp +0 -0
  340. package/icons/providers/jimeng.webp +0 -0
  341. package/icons/providers/jina.webp +0 -0
  342. package/icons/providers/junie.webp +0 -0
  343. package/icons/providers/kagi.webp +0 -0
  344. package/icons/providers/kilocode.webp +0 -0
  345. package/icons/providers/kimi.webp +0 -0
  346. package/icons/providers/kiro.webp +0 -0
  347. package/icons/providers/kling.webp +0 -0
  348. package/icons/providers/kluster.webp +0 -0
  349. package/icons/providers/kolors.webp +0 -0
  350. package/icons/providers/krea.webp +0 -0
  351. package/icons/providers/kwaikat.webp +0 -0
  352. package/icons/providers/kwaipilot.webp +0 -0
  353. package/icons/providers/lambda.webp +0 -0
  354. package/icons/providers/langchain.webp +0 -0
  355. package/icons/providers/langfuse.webp +0 -0
  356. package/icons/providers/langgraph.webp +0 -0
  357. package/icons/providers/langsmith.webp +0 -0
  358. package/icons/providers/leptonai.webp +0 -0
  359. package/icons/providers/lg.webp +0 -0
  360. package/icons/providers/lightricks.webp +0 -0
  361. package/icons/providers/ling.webp +0 -0
  362. package/icons/providers/liquid.webp +0 -0
  363. package/icons/providers/livekit.webp +0 -0
  364. package/icons/providers/llamaindex.webp +0 -0
  365. package/icons/providers/llava.webp +0 -0
  366. package/icons/providers/llmapi.webp +0 -0
  367. package/icons/providers/llmgateway.webp +0 -0
  368. package/icons/providers/lmstudio.webp +0 -0
  369. package/icons/providers/lobehub.webp +0 -0
  370. package/icons/providers/lobot.webp +0 -0
  371. package/icons/providers/longcat.webp +0 -0
  372. package/icons/providers/lovable.webp +0 -0
  373. package/icons/providers/lovart.webp +0 -0
  374. package/icons/providers/luma.webp +0 -0
  375. package/icons/providers/magic.webp +0 -0
  376. package/icons/providers/magpie.webp +0 -0
  377. package/icons/providers/make.webp +0 -0
  378. package/icons/providers/manus.webp +0 -0
  379. package/icons/providers/mastra.webp +0 -0
  380. package/icons/providers/mcp.webp +0 -0
  381. package/icons/providers/mcpso.webp +0 -0
  382. package/icons/providers/menlo.webp +0 -0
  383. package/icons/providers/meshy.webp +0 -0
  384. package/icons/providers/meta.webp +0 -0
  385. package/icons/providers/metaai.webp +0 -0
  386. package/icons/providers/metagpt.webp +0 -0
  387. package/icons/providers/microsoft.webp +0 -0
  388. package/icons/providers/midjourney.webp +0 -0
  389. package/icons/providers/minimax.webp +0 -0
  390. package/icons/providers/mistral.webp +0 -0
  391. package/icons/providers/modelscope.webp +0 -0
  392. package/icons/providers/monica.webp +0 -0
  393. package/icons/providers/moonshot.webp +0 -0
  394. package/icons/providers/morph.webp +0 -0
  395. package/icons/providers/moxt.webp +0 -0
  396. package/icons/providers/muse.webp +0 -0
  397. package/icons/providers/myshell.webp +0 -0
  398. package/icons/providers/n8n.webp +0 -0
  399. package/icons/providers/nanobanana.webp +0 -0
  400. package/icons/providers/nebius.webp +0 -0
  401. package/icons/providers/newapi.webp +0 -0
  402. package/icons/providers/nextbit.webp +0 -0
  403. package/icons/providers/notebooklm.webp +0 -0
  404. package/icons/providers/notion.webp +0 -0
  405. package/icons/providers/nousresearch.webp +0 -0
  406. package/icons/providers/nova.webp +0 -0
  407. package/icons/providers/novelai.webp +0 -0
  408. package/icons/providers/novita.webp +0 -0
  409. package/icons/providers/nplcloud.webp +0 -0
  410. package/icons/providers/nvidia.webp +0 -0
  411. package/icons/providers/o3.webp +0 -0
  412. package/icons/providers/obsidian.webp +0 -0
  413. package/icons/providers/ollama.webp +0 -0
  414. package/icons/providers/omlx.webp +0 -0
  415. package/icons/providers/openai.webp +0 -0
  416. package/icons/providers/openchat.webp +0 -0
  417. package/icons/providers/openclaw.webp +0 -0
  418. package/icons/providers/opencode.webp +0 -0
  419. package/icons/providers/openhands.webp +0 -0
  420. package/icons/providers/openhuman.webp +0 -0
  421. package/icons/providers/openrouter.webp +0 -0
  422. package/icons/providers/openwebui.webp +0 -0
  423. package/icons/providers/paddleocr.webp +0 -0
  424. package/icons/providers/palm.webp +0 -0
  425. package/icons/providers/parasail.webp +0 -0
  426. package/icons/providers/perceptron.webp +0 -0
  427. package/icons/providers/perplexity.webp +0 -0
  428. package/icons/providers/phala.webp +0 -0
  429. package/icons/providers/phidata.webp +0 -0
  430. package/icons/providers/phind.webp +0 -0
  431. package/icons/providers/pi.webp +0 -0
  432. package/icons/providers/pika.webp +0 -0
  433. package/icons/providers/pixverse.webp +0 -0
  434. package/icons/providers/player2.webp +0 -0
  435. package/icons/providers/poe.webp +0 -0
  436. package/icons/providers/pollinations.webp +0 -0
  437. package/icons/providers/poolside.webp +0 -0
  438. package/icons/providers/ppio.webp +0 -0
  439. package/icons/providers/prunaai.webp +0 -0
  440. package/icons/providers/pydanticai.webp +0 -0
  441. package/icons/providers/qingyan.webp +0 -0
  442. package/icons/providers/qiniu.webp +0 -0
  443. package/icons/providers/qoder.webp +0 -0
  444. package/icons/providers/qwen.webp +0 -0
  445. package/icons/providers/railway.webp +0 -0
  446. package/icons/providers/recraft.webp +0 -0
  447. package/icons/providers/reflection.webp +0 -0
  448. package/icons/providers/reka.webp +0 -0
  449. package/icons/providers/relace.webp +0 -0
  450. package/icons/providers/replicate.webp +0 -0
  451. package/icons/providers/replit.webp +0 -0
  452. package/icons/providers/reve.webp +0 -0
  453. package/icons/providers/roocode.webp +0 -0
  454. package/icons/providers/rsshub.webp +0 -0
  455. package/icons/providers/runway.webp +0 -0
  456. package/icons/providers/rwkv.webp +0 -0
  457. package/icons/providers/sakana.webp +0 -0
  458. package/icons/providers/sambanova.webp +0 -0
  459. package/icons/providers/search1api.webp +0 -0
  460. package/icons/providers/searchapi.webp +0 -0
  461. package/icons/providers/searxng.webp +0 -0
  462. package/icons/providers/sensenova.webp +0 -0
  463. package/icons/providers/silicon.webp +0 -0
  464. package/icons/providers/siliconcloud.webp +0 -0
  465. package/icons/providers/sillytavern.webp +0 -0
  466. package/icons/providers/skywork.webp +0 -0
  467. package/icons/providers/slock.webp +0 -0
  468. package/icons/providers/smithery.webp +0 -0
  469. package/icons/providers/snowflake.webp +0 -0
  470. package/icons/providers/sophnet.webp +0 -0
  471. package/icons/providers/sora.webp +0 -0
  472. package/icons/providers/spark.webp +0 -0
  473. package/icons/providers/speedai.webp +0 -0
  474. package/icons/providers/stability.webp +0 -0
  475. package/icons/providers/statecloud.webp +0 -0
  476. package/icons/providers/step.webp +0 -0
  477. package/icons/providers/stepfun.webp +0 -0
  478. package/icons/providers/straico.webp +0 -0
  479. package/icons/providers/streamlake.webp +0 -0
  480. package/icons/providers/sub2api.webp +0 -0
  481. package/icons/providers/submodel.webp +0 -0
  482. package/icons/providers/suno.webp +0 -0
  483. package/icons/providers/sync.webp +0 -0
  484. package/icons/providers/tabbit.webp +0 -0
  485. package/icons/providers/targon.webp +0 -0
  486. package/icons/providers/tavily.webp +0 -0
  487. package/icons/providers/tencent-cloud-ti.webp +0 -0
  488. package/icons/providers/tencent.webp +0 -0
  489. package/icons/providers/tencentcloud.webp +0 -0
  490. package/icons/providers/tiangong.webp +0 -0
  491. package/icons/providers/tii.webp +0 -0
  492. package/icons/providers/together.webp +0 -0
  493. package/icons/providers/topazlabs.webp +0 -0
  494. package/icons/providers/trae.webp +0 -0
  495. package/icons/providers/tripo.webp +0 -0
  496. package/icons/providers/turix.webp +0 -0
  497. package/icons/providers/typesafeai.webp +0 -0
  498. package/icons/providers/udio.webp +0 -0
  499. package/icons/providers/unionalpha.webp +0 -0
  500. package/icons/providers/unsloth.webp +0 -0
  501. package/icons/providers/unstructured.webp +0 -0
  502. package/icons/providers/upstage.webp +0 -0
  503. package/icons/providers/v0.webp +0 -0
  504. package/icons/providers/vectorizerai.webp +0 -0
  505. package/icons/providers/venice.webp +0 -0
  506. package/icons/providers/vercel.webp +0 -0
  507. package/icons/providers/vertexai.webp +0 -0
  508. package/icons/providers/vidu.webp +0 -0
  509. package/icons/providers/viggle.webp +0 -0
  510. package/icons/providers/vllm.webp +0 -0
  511. package/icons/providers/volcengine.webp +0 -0
  512. package/icons/providers/voyage.webp +0 -0
  513. package/icons/providers/voyageai.webp +0 -0
  514. package/icons/providers/wafer.webp +0 -0
  515. package/icons/providers/wandb.webp +0 -0
  516. package/icons/providers/wavespeed.webp +0 -0
  517. package/icons/providers/wenxin.webp +0 -0
  518. package/icons/providers/windsurf.webp +0 -0
  519. package/icons/providers/workbuddy.webp +0 -0
  520. package/icons/providers/workersai.webp +0 -0
  521. package/icons/providers/worldrouter.webp +0 -0
  522. package/icons/providers/xai.webp +0 -0
  523. package/icons/providers/xiaomimimo.webp +0 -0
  524. package/icons/providers/xinference.webp +0 -0
  525. package/icons/providers/xpay.webp +0 -0
  526. package/icons/providers/xuanyuan.webp +0 -0
  527. package/icons/providers/yandex.webp +0 -0
  528. package/icons/providers/yi.webp +0 -0
  529. package/icons/providers/youmind.webp +0 -0
  530. package/icons/providers/yuanbao.webp +0 -0
  531. package/icons/providers/zai.webp +0 -0
  532. package/icons/providers/zapier.webp +0 -0
  533. package/icons/providers/zeabur.webp +0 -0
  534. package/icons/providers/zencoder.webp +0 -0
  535. package/icons/providers/zenmux.webp +0 -0
  536. package/icons/providers/zero-one.webp +0 -0
  537. package/icons/providers/zeroone.webp +0 -0
  538. package/icons/providers/zhipu.webp +0 -0
  539. package/licenses/beautiful-ui-MIT.txt +21 -0
  540. package/package.json +53 -10
  541. package/scripts/yunui-audit.mjs +664 -0
  542. package/scripts/yunui-cli.mjs +868 -0
  543. package/scripts/yunui-init.mjs +138 -0
  544. package/styles/content.css +37 -3
  545. package/styles/tokens.css +41 -0
  546. package/styles/yunui.css +1586 -141
  547. package/dist/chunk-BCOKFWXC.js.map +0 -1
  548. package/dist/chunk-DDUP7GAX.js +0 -86
  549. package/dist/chunk-DDUP7GAX.js.map +0 -1
  550. package/dist/chunk-F2HG4TOQ.js.map +0 -1
  551. package/dist/chunk-HH3JBHRP.js +0 -1211
  552. package/dist/chunk-HH3JBHRP.js.map +0 -1
  553. package/dist/chunk-N4QO7RN5.js +0 -98
  554. package/dist/chunk-N4QO7RN5.js.map +0 -1
  555. package/dist/chunk-QEIBYOG2.js +0 -188
  556. package/dist/chunk-QEIBYOG2.js.map +0 -1
  557. package/dist/footer-BoFu7Wqq.d.ts +0 -46
  558. package/icons/apps/ling.png +0 -0
  559. package/icons/models/ling.png +0 -0
  560. package/icons/providers/Kwaipilot.png +0 -0
package/styles/yunui.css CHANGED
@@ -15,6 +15,16 @@
15
15
  so the default look is unchanged. See styles/tokens.css. */
16
16
  @import "./tokens.css";
17
17
 
18
+ /* Enter/exit animation utilities (`animate-in`, `fade-in-0`, `zoom-in-95`,
19
+ `slide-in-from-top-2`, …). These come from the `tailwindcss-animate` plugin,
20
+ which is Tailwind v3-only — under v4 every one of those classes silently
21
+ compiled to NOTHING, so every dropdown, popover, dialog, sheet, tooltip and
22
+ menu in YunUI (and in the apps consuming it) snapped open with no transition.
23
+ `tw-animate-css` is the v4 successor and is API-compatible. It is a plain
24
+ stylesheet, not a JS plugin, and ships as a dependency so the bare specifier
25
+ resolves from this file for consumers too. */
26
+ @import "tw-animate-css";
27
+
18
28
  @theme {
19
29
  --color-border: var(--border-default);
20
30
  --color-input: var(--border-default);
@@ -53,6 +63,7 @@
53
63
  /* Marquee animations — generate the .animate-marquee / .animate-marquee-vertical
54
64
  utilities the <Marquee> component relies on. Duration/gap are overridable
55
65
  per-instance via the --duration / --gap CSS vars set on the component. */
66
+ --animate-shimmer: shimmer 3s linear infinite;
56
67
  --animate-marquee: marquee var(--duration, 40s) linear infinite;
57
68
  --animate-marquee-vertical: marquee-vertical var(--duration, 40s) linear infinite;
58
69
  }
@@ -64,6 +75,62 @@
64
75
  `utilities` layer) can override them via className — e.g. a `bg-accent`
65
76
  passed to a `.btn-ghost` now wins. `@theme` and `@custom-variant` above stay
66
77
  at the top level (they cannot live inside a layer). */
78
+ /* ---------------------------------------------------------------------------
79
+ Semantic colour helpers — declared with `@utility`, NOT as plain rules in
80
+ `@layer components`.
81
+
82
+ Why it matters: a hand-written `.bg-error-soft` inside @layer components is
83
+ invisible to Tailwind's variant machinery, so `hover:bg-error-soft`,
84
+ `dark:text-error`, `data-[state=open]:bg-accent-muted` and friends compiled
85
+ to NOTHING — silently. That killed the hover state on every banner dismiss
86
+ button, session/account row delete button and notification action in the
87
+ library. `@utility` registers them for real, so every variant works.
88
+
89
+ These are deliberately NOT `@theme` colours: `bg-*-soft` is a 10% tint while
90
+ `border-*-soft` is 30%, so a single `--color-*-soft` entry could not express
91
+ both without changing the existing borders.
92
+ --------------------------------------------------------------------------- */
93
+
94
+ /* Semantic status text — canonical target for inline status colour, so
95
+ components stop hand-rolling `text-emerald-600 dark:text-emerald-400`. */
96
+ @utility text-success { color: var(--success); }
97
+ @utility text-warning { color: var(--warning); }
98
+ @utility text-error { color: var(--error); }
99
+ @utility text-info { color: var(--info); }
100
+
101
+ /* Soft semantic-colour backgrounds — the themeable counterpart to the .text-*
102
+ helpers above, for medallions / icon tiles / soft banners that need a ~10%
103
+ tint of a status colour. (`bg-error/10` does NOT resolve — there is no
104
+ --color-error.) color-mix tracks the token across light / dark / true-black. */
105
+ @utility bg-error-soft { background-color: color-mix(in srgb, var(--error) 10%, transparent); }
106
+ @utility bg-success-soft { background-color: color-mix(in srgb, var(--success) 10%, transparent); }
107
+ @utility bg-warning-soft { background-color: color-mix(in srgb, var(--warning) 10%, transparent); }
108
+ @utility bg-info-soft { background-color: color-mix(in srgb, var(--info) 10%, transparent); }
109
+
110
+ /* Matching tinted borders for soft semantic callouts (Alert, banners). */
111
+ @utility border-error-soft { border-color: color-mix(in srgb, var(--error) 30%, transparent); }
112
+ @utility border-success-soft { border-color: color-mix(in srgb, var(--success) 30%, transparent); }
113
+ @utility border-warning-soft { border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
114
+ @utility border-info-soft { border-color: color-mix(in srgb, var(--info) 30%, transparent); }
115
+
116
+ /* Accent tone — neutral/brand emphasis (e.g. GitHub "important" callouts). Uses
117
+ the accent-subtle fill so it stays legible in every theme, unlike a 10% mix of
118
+ the near-black / near-white --accent. Pairs with the text-accent utility. */
119
+ @utility bg-accent-soft { background-color: var(--accent-subtle); }
120
+ @utility border-accent-soft { border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
121
+
122
+ /* Accent fills/inks — use instead of bg-black / text-black. The `border-` and
123
+ `text-` counterparts exist because consumers reached for `border-accent-muted`
124
+ and `text-accent-solid`, which had no definition at all and fell through to
125
+ currentColor / inherited ink. */
126
+ @utility bg-accent-solid { background-color: var(--accent); }
127
+ @utility bg-accent-subtle { background-color: var(--accent-subtle); }
128
+ @utility bg-accent-muted { background-color: var(--accent-muted); }
129
+ @utility text-accent-solid { color: var(--accent); }
130
+ @utility border-accent-solid { border-color: var(--accent); }
131
+ @utility border-accent-subtle{ border-color: var(--accent-subtle); }
132
+ @utility border-accent-muted { border-color: var(--accent-muted); }
133
+
67
134
  @layer components {
68
135
 
69
136
  /* =====================================================
@@ -151,12 +218,18 @@
151
218
  /* Text */
152
219
  --text-primary: #ffffff;
153
220
  --text-secondary: #a1a1aa;
154
- /* Lightened for dark, and measured against the *elevated* surface, not just
155
- the base one. Tertiary text lands on cards, code-block headers and inputs
156
- far more often than on the page background, and #18181b is the harder of
157
- the two. 5.44 on base / 4.85 on elevated, still weaker than
158
- --text-secondary so the three-step hierarchy survives. */
159
- --text-tertiary: #85858e;
221
+ /* Lightened for dark, and measured against the LIGHTEST surface it lands on,
222
+ not the base one. The previous value was tuned against `--bg-elevated`
223
+ (#18181b) on the reasoning that cards are harder than the page background —
224
+ correct as far as it went, but it missed the soft status tints
225
+ (`bg-accent-soft`, `bg-info-soft`, … at #27272a), which are lighter still.
226
+ At #85858e that was 4.07:1, and axe caught `.text-label` failing inside
227
+ tinted cards on three Yunshu pages once the sidebar heading above it was
228
+ fixed.
229
+ #91919a measures 4.77 on the soft tints / 5.67 on elevated / 6.37 on base,
230
+ and stays clearly below --text-secondary (#a1a1aa, 5.81 on the tints) so
231
+ the three-step hierarchy survives. */
232
+ --text-tertiary: #91919a;
160
233
  --text-muted: #52525b;
161
234
 
162
235
  /* Accent */
@@ -209,12 +282,10 @@
209
282
  /* Text - Reduced contrast for eye comfort */
210
283
  --text-primary: #d4d4d8;
211
284
  --text-secondary: #a1a1aa;
212
- /* Lightened for dark, and measured against the *elevated* surface, not just
213
- the base one. Tertiary text lands on cards, code-block headers and inputs
214
- far more often than on the page background, and #18181b is the harder of
215
- the two. 5.44 on base / 4.85 on elevated, still weaker than
216
- --text-secondary so the three-step hierarchy survives. */
217
- --text-tertiary: #85858e;
285
+ /* Same value and the same reasoning as the dark theme above: measured
286
+ against the lightest surface tertiary text lands on (the soft status tints
287
+ at #27272a), not just the base. */
288
+ --text-tertiary: #91919a;
218
289
  --text-muted: #52525b;
219
290
 
220
291
  /* Accent - Softer white */
@@ -341,13 +412,11 @@
341
412
  --color-fd-border: rgba(255, 255, 255, 0.08);
342
413
  }
343
414
 
344
- /* True Black — Fumadocs shiki code block */
345
- .true-black .shiki:not(.not-fumadocs-codeblock *) {
346
- code span {
347
- color: var(--shiki-dark);
348
- font-style: var(--shiki-dark-font-style);
349
- }
350
- }
415
+ /* True Black — Fumadocs shiki code block.
416
+ Moved OUT of `@layer components`: see the unlayered block at the end of this
417
+ file. Leaving it here made it lose to fumadocs' own rule in
418
+ `@layer utilities`, which comes later in the layer order — and layer order
419
+ beats specificity outright. */
351
420
 
352
421
  /* True Black - Override hardcoded white colors for reduced eye strain */
353
422
  .true-black .text-white {
@@ -515,9 +584,11 @@ summary {
515
584
  border-radius: 3px;
516
585
  }
517
586
 
587
+ @media (hover: hover) {
518
588
  ::-webkit-scrollbar-thumb:hover {
519
589
  background: var(--border-strong);
520
590
  }
591
+ }
521
592
 
522
593
  /* =====================================================
523
594
  Glass Components
@@ -544,14 +615,20 @@ summary {
544
615
  -webkit-backdrop-filter: blur(16px);
545
616
  border: 1px solid var(--border-subtle);
546
617
  border-radius: 20px;
547
- transition: all 0.2s ease;
618
+ transition:
619
+ background-color var(--dur-fast) var(--ease-standard),
620
+ border-color var(--dur-fast) var(--ease-standard),
621
+ box-shadow var(--dur-base) var(--ease-standard),
622
+ transform var(--dur-base) var(--ease-standard);
548
623
  }
549
624
 
625
+ @media (hover: hover) {
550
626
  .glass-card:hover {
551
627
  background: var(--bg-glass-hover);
552
628
  border-color: var(--border-default);
553
629
  box-shadow: var(--shadow-md);
554
630
  }
631
+ }
555
632
 
556
633
  .glass-dark {
557
634
  background: rgba(10, 10, 12, 0.6);
@@ -577,13 +654,19 @@ summary {
577
654
  border: 1px solid var(--border-hairline);
578
655
  border-radius: 20px;
579
656
  box-shadow: var(--shadow-xs);
580
- transition: all 0.15s ease;
657
+ transition:
658
+ background-color var(--dur-fast) var(--ease-standard),
659
+ border-color var(--dur-fast) var(--ease-standard),
660
+ box-shadow var(--dur-base) var(--ease-standard),
661
+ transform var(--dur-base) var(--ease-standard);
581
662
  }
582
663
 
664
+ @media (hover: hover) {
583
665
  .card:hover {
584
666
  border-color: var(--border-default);
585
667
  box-shadow: var(--shadow-sm);
586
668
  }
669
+ }
587
670
 
588
671
  .card-interactive {
589
672
  cursor: pointer;
@@ -594,10 +677,12 @@ summary {
594
677
  outline-offset: 2px;
595
678
  }
596
679
 
680
+ @media (hover: hover) {
597
681
  .card-interactive:hover {
598
682
  transform: translateY(-1px);
599
683
  box-shadow: var(--shadow-md);
600
684
  }
685
+ }
601
686
 
602
687
  /* Lay a card out as a column so its footer can pin to the bottom. In a grid the
603
688
  cards are already stretched to equal height (align-items: stretch, the default),
@@ -691,7 +776,13 @@ summary {
691
776
  font-size: 0.875rem;
692
777
  border-radius: 14px;
693
778
  padding: 0.625rem 1.125rem;
694
- transition: all 0.15s ease;
779
+ transition:
780
+ background-color var(--dur-fast) var(--ease-standard),
781
+ border-color var(--dur-fast) var(--ease-standard),
782
+ color var(--dur-fast) var(--ease-standard),
783
+ box-shadow var(--dur-fast) var(--ease-standard),
784
+ opacity var(--dur-fast) var(--ease-standard),
785
+ transform var(--dur-instant) var(--ease-standard);
695
786
  cursor: pointer;
696
787
  outline: none;
697
788
  border: 1px solid;
@@ -714,10 +805,12 @@ summary {
714
805
  background: rgba(9, 9, 11, 0.04);
715
806
  }
716
807
 
808
+ @media (hover: hover) {
717
809
  .btn-primary:hover {
718
810
  background: rgba(9, 9, 11, 0.08);
719
811
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
720
812
  }
813
+ }
721
814
 
722
815
  /* Secondary - gray outline */
723
816
  .btn-secondary {
@@ -726,11 +819,13 @@ summary {
726
819
  background: rgba(0, 0, 0, 0.02);
727
820
  }
728
821
 
822
+ @media (hover: hover) {
729
823
  .btn-secondary:hover {
730
824
  color: #09090b;
731
825
  background: rgba(0, 0, 0, 0.04);
732
826
  border-color: #a1a1aa;
733
827
  }
828
+ }
734
829
 
735
830
  /* Ghost - minimal, no border */
736
831
  .btn-ghost {
@@ -740,10 +835,30 @@ summary {
740
835
  background: transparent;
741
836
  }
742
837
 
838
+ @media (hover: hover) {
743
839
  .btn-ghost:hover {
744
840
  color: #09090b;
745
841
  background: rgba(0, 0, 0, 0.04);
746
842
  }
843
+ }
844
+
845
+ /* Link - text action: no fill, no padding, underline on hover (Button variant="link") */
846
+ .btn-link {
847
+ color: var(--text-primary);
848
+ border: none;
849
+ border-radius: 0;
850
+ padding: 0;
851
+ background: transparent;
852
+ line-height: 1;
853
+ text-decoration: none;
854
+ }
855
+
856
+ @media (hover: hover) {
857
+ .btn-link:hover {
858
+ text-decoration: underline;
859
+ background: transparent;
860
+ }
861
+ }
747
862
 
748
863
  /* Accent - colored outline */
749
864
  .btn-accent {
@@ -752,9 +867,11 @@ summary {
752
867
  background: rgba(24, 24, 27, 0.04);
753
868
  }
754
869
 
870
+ @media (hover: hover) {
755
871
  .btn-accent:hover {
756
872
  background: rgba(24, 24, 27, 0.08);
757
873
  }
874
+ }
758
875
 
759
876
  /* Brand - solid fill driven by the runtime-themeable token system. Re-themes
760
877
  live via `data-brand` on <html> (defaults to the brand palette); pairs with
@@ -765,9 +882,11 @@ summary {
765
882
  background: var(--brand-solid-strong);
766
883
  }
767
884
 
885
+ @media (hover: hover) {
768
886
  .btn-brand:hover {
769
887
  background: var(--brand-solid-medium);
770
888
  }
889
+ }
771
890
 
772
891
  /* Outline - minimal border */
773
892
  .btn-outline {
@@ -776,10 +895,12 @@ summary {
776
895
  background: transparent;
777
896
  }
778
897
 
898
+ @media (hover: hover) {
779
899
  .btn-outline:hover {
780
900
  background: rgba(0, 0, 0, 0.03);
781
901
  border-color: #d4d4d8;
782
902
  }
903
+ }
783
904
 
784
905
  /* Amber - warning */
785
906
  .btn-amber {
@@ -788,9 +909,11 @@ summary {
788
909
  background: rgba(245, 158, 11, 0.08);
789
910
  }
790
911
 
912
+ @media (hover: hover) {
791
913
  .btn-amber:hover {
792
914
  background: rgba(245, 158, 11, 0.15);
793
915
  }
916
+ }
794
917
 
795
918
  /* Red - danger */
796
919
  .btn-red {
@@ -799,9 +922,11 @@ summary {
799
922
  background: rgba(239, 68, 68, 0.08);
800
923
  }
801
924
 
925
+ @media (hover: hover) {
802
926
  .btn-red:hover {
803
927
  background: rgba(239, 68, 68, 0.15);
804
928
  }
929
+ }
805
930
 
806
931
  /* Sizes */
807
932
  .btn-sm {
@@ -817,6 +942,19 @@ summary {
817
942
  border-radius: 16px;
818
943
  }
819
944
 
945
+ /* xs: 11px text (the .text-label size), compact line box; a link keeps no padding */
946
+ .btn-xs {
947
+ padding: 0.25rem 0.5rem;
948
+ font-size: 0.6875rem;
949
+ line-height: 1.2;
950
+ border-radius: 8px;
951
+ gap: 0.25rem;
952
+ }
953
+
954
+ .btn-link.btn-xs {
955
+ padding: 0;
956
+ }
957
+
820
958
  .btn:disabled {
821
959
  opacity: 0.5;
822
960
  cursor: not-allowed;
@@ -834,11 +972,13 @@ summary {
834
972
  background: rgba(250, 250, 250, 0.06);
835
973
  }
836
974
 
975
+ @media (hover: hover) {
837
976
  .dark .btn-primary:hover,
838
977
  .true-black .btn-primary:hover {
839
978
  background: rgba(250, 250, 250, 0.12);
840
979
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.05);
841
980
  }
981
+ }
842
982
 
843
983
  .dark .btn-secondary,
844
984
  .true-black .btn-secondary {
@@ -847,12 +987,14 @@ summary {
847
987
  background: rgba(255, 255, 255, 0.03);
848
988
  }
849
989
 
990
+ @media (hover: hover) {
850
991
  .dark .btn-secondary:hover,
851
992
  .true-black .btn-secondary:hover {
852
993
  color: #fafafa;
853
994
  background: rgba(255, 255, 255, 0.08);
854
995
  border-color: #71717a;
855
996
  }
997
+ }
856
998
 
857
999
  /* The resting state was missing while the hover below existed, so a ghost
858
1000
  button kept the light theme's #71717a on a dark page — 4.11:1, under AA.
@@ -866,11 +1008,13 @@ summary {
866
1008
  color: #85858e;
867
1009
  }
868
1010
 
1011
+ @media (hover: hover) {
869
1012
  .dark .btn-ghost:hover,
870
1013
  .true-black .btn-ghost:hover {
871
1014
  color: #fafafa;
872
1015
  background: rgba(255, 255, 255, 0.08);
873
1016
  }
1017
+ }
874
1018
 
875
1019
  .dark .btn-accent,
876
1020
  .true-black .btn-accent {
@@ -879,10 +1023,12 @@ summary {
879
1023
  background: rgba(255, 255, 255, 0.05);
880
1024
  }
881
1025
 
1026
+ @media (hover: hover) {
882
1027
  .dark .btn-accent:hover,
883
1028
  .true-black .btn-accent:hover {
884
1029
  background: rgba(255, 255, 255, 0.1);
885
1030
  }
1031
+ }
886
1032
 
887
1033
  .dark .btn-outline,
888
1034
  .true-black .btn-outline {
@@ -890,11 +1036,13 @@ summary {
890
1036
  border-color: #52525b;
891
1037
  }
892
1038
 
1039
+ @media (hover: hover) {
893
1040
  .dark .btn-outline:hover,
894
1041
  .true-black .btn-outline:hover {
895
1042
  background: rgba(255, 255, 255, 0.05);
896
1043
  border-color: #71717a;
897
1044
  }
1045
+ }
898
1046
 
899
1047
  .dark .btn-amber,
900
1048
  .true-black .btn-amber {
@@ -903,10 +1051,12 @@ summary {
903
1051
  background: rgba(251, 191, 36, 0.12);
904
1052
  }
905
1053
 
1054
+ @media (hover: hover) {
906
1055
  .dark .btn-amber:hover,
907
1056
  .true-black .btn-amber:hover {
908
1057
  background: rgba(251, 191, 36, 0.2);
909
1058
  }
1059
+ }
910
1060
 
911
1061
  .dark .btn-red,
912
1062
  .true-black .btn-red {
@@ -915,10 +1065,12 @@ summary {
915
1065
  background: rgba(248, 113, 113, 0.12);
916
1066
  }
917
1067
 
1068
+ @media (hover: hover) {
918
1069
  .dark .btn-red:hover,
919
1070
  .true-black .btn-red:hover {
920
1071
  background: rgba(248, 113, 113, 0.2);
921
1072
  }
1073
+ }
922
1074
 
923
1075
  /* =====================================================
924
1076
  OPT-IN BRAND BUTTONS — under data-accent-source="brand", the primary/accent
@@ -932,11 +1084,13 @@ summary {
932
1084
  border-color: var(--brand-alpha-strong);
933
1085
  background: var(--brand-alpha-weak);
934
1086
  }
1087
+ @media (hover: hover) {
935
1088
  [data-accent-source="brand"] .btn-primary:hover,
936
1089
  [data-accent-source="brand"] .btn-accent:hover {
937
1090
  background: var(--brand-alpha-medium);
938
1091
  border-color: var(--brand-solid-strong);
939
1092
  }
1093
+ }
940
1094
 
941
1095
  /* =====================================================
942
1096
  Select Dropdowns
@@ -1063,7 +1217,13 @@ select.input option,
1063
1217
  font-size: 0.875rem;
1064
1218
  color: var(--text-primary);
1065
1219
  outline: none;
1066
- transition: all 0.15s ease;
1220
+ transition:
1221
+ background-color var(--dur-fast) var(--ease-standard),
1222
+ border-color var(--dur-fast) var(--ease-standard),
1223
+ color var(--dur-fast) var(--ease-standard),
1224
+ box-shadow var(--dur-fast) var(--ease-standard),
1225
+ opacity var(--dur-fast) var(--ease-standard),
1226
+ transform var(--dur-instant) var(--ease-standard);
1067
1227
  }
1068
1228
 
1069
1229
  .input::placeholder {
@@ -1137,25 +1297,16 @@ select.input option,
1137
1297
 
1138
1298
  .badge-info {
1139
1299
  background: rgba(59, 130, 246, 0.1);
1140
- color: #3b82f6;
1141
- }
1142
-
1143
- /* Semantic status text — canonical target for inline status colour, so
1144
- components stop hand-rolling `text-emerald-600 dark:text-emerald-400`. */
1145
- .text-success {
1146
- color: var(--success);
1300
+ /* blue-700, not blue-500. On the 10% tint over a light surface, #3b82f6
1301
+ measured 3.28:1 — below the 4.5:1 AA floor for the 11px text these badges
1302
+ use. The dark-mode override below keeps the lighter blue, where the tint
1303
+ sits on a dark surface and the contrast runs the other way. */
1304
+ color: #1d4ed8;
1147
1305
  }
1148
1306
 
1149
- .text-warning {
1150
- color: var(--warning);
1151
- }
1152
-
1153
- .text-error {
1154
- color: var(--error);
1155
- }
1156
-
1157
- .text-info {
1158
- color: var(--info);
1307
+ .dark .badge-info,
1308
+ .true-black .badge-info {
1309
+ color: #60a5fa;
1159
1310
  }
1160
1311
 
1161
1312
  /* White ink that STAYS white on a colored/dark fill — badges, icon overlays,
@@ -1172,43 +1323,9 @@ select.input option,
1172
1323
  need a ~10% tint of a status color (the `bg-error/10` Tailwind utility does
1173
1324
  NOT resolve — there is no --color-error). color-mix tracks the token across
1174
1325
  light / dark / true-black. */
1175
- .bg-error-soft {
1176
- background-color: color-mix(in srgb, var(--error) 10%, transparent);
1177
- }
1178
- .bg-success-soft {
1179
- background-color: color-mix(in srgb, var(--success) 10%, transparent);
1180
- }
1181
- .bg-warning-soft {
1182
- background-color: color-mix(in srgb, var(--warning) 10%, transparent);
1183
- }
1184
- .bg-info-soft {
1185
- background-color: color-mix(in srgb, var(--info) 10%, transparent);
1186
- }
1187
-
1188
- /* Matching tinted borders for soft semantic callouts (Alert, banners). */
1189
- .border-error-soft {
1190
- border-color: color-mix(in srgb, var(--error) 30%, transparent);
1191
- }
1192
- .border-success-soft {
1193
- border-color: color-mix(in srgb, var(--success) 30%, transparent);
1194
- }
1195
- .border-warning-soft {
1196
- border-color: color-mix(in srgb, var(--warning) 30%, transparent);
1197
- }
1198
- .border-info-soft {
1199
- border-color: color-mix(in srgb, var(--info) 30%, transparent);
1200
- }
1201
-
1202
1326
  /* Accent tone — neutral/brand emphasis (e.g. GitHub "important" callouts). Uses
1203
1327
  the accent-subtle fill so it stays legible in every theme, unlike a 10% mix of
1204
1328
  the near-black / near-white --accent. Pairs with the text-accent utility. */
1205
- .bg-accent-soft {
1206
- background-color: var(--accent-subtle);
1207
- }
1208
- .border-accent-soft {
1209
- border-color: color-mix(in srgb, var(--accent) 25%, transparent);
1210
- }
1211
-
1212
1329
  .badge-neutral {
1213
1330
  background: var(--bg-glass-hover);
1214
1331
  color: var(--text-secondary);
@@ -1223,13 +1340,20 @@ select.input option,
1223
1340
  display: flex;
1224
1341
  align-items: center;
1225
1342
  gap: 0.75rem;
1343
+ --nav-indent: 0.75rem;
1226
1344
  padding: 0.625rem 0.875rem;
1227
- padding-left: 1.25rem;
1345
+ padding-left: calc(1.25rem + var(--nav-depth, 0) * var(--nav-indent));
1228
1346
  font-size: 0.875rem;
1229
1347
  font-weight: 500;
1230
1348
  color: var(--text-tertiary);
1231
1349
  border-radius: 12px;
1232
- transition: all 0.12s ease;
1350
+ transition:
1351
+ background-color var(--dur-fast) var(--ease-standard),
1352
+ border-color var(--dur-fast) var(--ease-standard),
1353
+ color var(--dur-fast) var(--ease-standard),
1354
+ box-shadow var(--dur-fast) var(--ease-standard),
1355
+ opacity var(--dur-fast) var(--ease-standard),
1356
+ transform var(--dur-instant) var(--ease-standard);
1233
1357
  white-space: nowrap;
1234
1358
  }
1235
1359
 
@@ -1248,14 +1372,16 @@ select.input option,
1248
1372
  height: 16px;
1249
1373
  background: var(--text-primary);
1250
1374
  border-radius: 2px;
1251
- transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
1375
+ transition: transform var(--dur-slow) var(--ease-standard), opacity var(--dur-base) var(--ease-standard);
1252
1376
  opacity: 0;
1253
1377
  }
1254
1378
 
1379
+ @media (hover: hover) {
1255
1380
  .nav-item:hover {
1256
1381
  color: var(--text-primary);
1257
1382
  background: rgba(0, 0, 0, 0.03);
1258
1383
  }
1384
+ }
1259
1385
 
1260
1386
  .nav-item:focus-visible {
1261
1387
  outline: 2px solid var(--border-strong);
@@ -1263,10 +1389,12 @@ select.input option,
1263
1389
  color: var(--text-primary);
1264
1390
  }
1265
1391
 
1392
+ @media (hover: hover) {
1266
1393
  .nav-item:hover > .nav-state-indicator {
1267
1394
  transform: translateY(-50%) translateX(0);
1268
1395
  opacity: 0.3;
1269
1396
  }
1397
+ }
1270
1398
 
1271
1399
  .nav-item.active {
1272
1400
  color: var(--text-primary);
@@ -1288,7 +1416,7 @@ select.input option,
1288
1416
  }
1289
1417
 
1290
1418
  .nav-state-indicator[data-running="true"] {
1291
- animation: yunui-nav-state-running 1.2s ease-in-out infinite;
1419
+ animation: yunui-nav-state-running 1.6s var(--ease-standard) infinite;
1292
1420
  }
1293
1421
 
1294
1422
  @media (prefers-reduced-motion: reduce) {
@@ -1297,12 +1425,39 @@ select.input option,
1297
1425
  }
1298
1426
  }
1299
1427
 
1428
+ /* Progress — indeterminate: a 40% bar sliding across the track. Reduced motion
1429
+ stops the slide and shows a static half-strength bar (still no percentage). */
1430
+ @keyframes yunui-progress-indeterminate {
1431
+ 0% {
1432
+ transform: translateX(-100%);
1433
+ }
1434
+ 100% {
1435
+ transform: translateX(250%);
1436
+ }
1437
+ }
1438
+
1439
+ .yunui-progress-indeterminate {
1440
+ animation: yunui-progress-indeterminate 1.4s var(--ease-standard) infinite;
1441
+ }
1442
+
1443
+ @media (prefers-reduced-motion: reduce) {
1444
+ .yunui-progress-indeterminate {
1445
+ animation: none;
1446
+ width: 100%;
1447
+ opacity: 0.45;
1448
+ }
1449
+ }
1450
+
1300
1451
  .nav-section {
1301
1452
  font-size: 0.625rem;
1302
1453
  font-weight: 600;
1303
1454
  letter-spacing: 0.08em;
1304
1455
  text-transform: uppercase;
1305
- color: var(--text-muted);
1456
+ /* --text-tertiary, not --text-muted — the third place in this file to need
1457
+ the same correction. In dark, --text-muted (#52525b) on --bg-base is
1458
+ 2.57:1, and this is 10px uppercase, which WCAG gives no small-text
1459
+ allowance for. axe flagged it on five separate Yunshu pages. */
1460
+ color: var(--text-tertiary);
1306
1461
  padding: 1rem 0.875rem 0.5rem;
1307
1462
  }
1308
1463
 
@@ -1321,7 +1476,7 @@ select.input option,
1321
1476
  color: var(--text-tertiary);
1322
1477
  background: transparent;
1323
1478
  border-radius: 12px;
1324
- transition: color 0.15s ease, background 0.15s ease;
1479
+ transition: color var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard);
1325
1480
  white-space: nowrap;
1326
1481
  cursor: pointer;
1327
1482
  }
@@ -1340,16 +1495,18 @@ select.input option,
1340
1495
  background: var(--text-primary);
1341
1496
  border-radius: 9999px;
1342
1497
  opacity: 0;
1343
- transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
1498
+ transition: width var(--dur-slow) var(--ease-standard), opacity var(--dur-base) var(--ease-standard);
1344
1499
  }
1345
1500
 
1346
1501
  /* 匡 — soft filled rounded box appears ONLY on hover (like the sidebar). The
1347
1502
  active tab itself just brightens + bolds its text and shows the bar, with no
1348
1503
  persistent background. */
1504
+ @media (hover: hover) {
1349
1505
  .nav-tab:hover {
1350
1506
  color: var(--text-primary);
1351
1507
  background: var(--accent-subtle);
1352
1508
  }
1509
+ }
1353
1510
 
1354
1511
  .nav-tab:focus-visible {
1355
1512
  outline: 2px solid var(--border-strong);
@@ -1357,10 +1514,12 @@ select.input option,
1357
1514
  color: var(--text-primary);
1358
1515
  }
1359
1516
 
1517
+ @media (hover: hover) {
1360
1518
  .nav-tab:hover::after {
1361
1519
  width: 24%;
1362
1520
  opacity: 0.4;
1363
1521
  }
1522
+ }
1364
1523
 
1365
1524
  .nav-tab.active {
1366
1525
  color: var(--text-primary);
@@ -1374,10 +1533,12 @@ select.input option,
1374
1533
 
1375
1534
  /* When the active tab is also hovered, keep its bar full-size (not the faint
1376
1535
  hover width). */
1536
+ @media (hover: hover) {
1377
1537
  .nav-tab.active:hover::after {
1378
1538
  width: 40%;
1379
1539
  opacity: 1;
1380
1540
  }
1541
+ }
1381
1542
 
1382
1543
  /* =====================================================
1383
1544
  Code
@@ -1415,19 +1576,21 @@ select.input option,
1415
1576
  @keyframes fadeIn {
1416
1577
  from {
1417
1578
  opacity: 0;
1418
- transform: translateY(8px);
1579
+ transform: translateY(var(--enter-offset));
1580
+ filter: blur(var(--enter-blur));
1419
1581
  }
1420
1582
 
1421
1583
  to {
1422
1584
  opacity: 1;
1423
1585
  transform: translateY(0);
1586
+ filter: blur(0);
1424
1587
  }
1425
1588
  }
1426
1589
 
1427
1590
  @keyframes fadeInScale {
1428
1591
  from {
1429
1592
  opacity: 0;
1430
- transform: scale(0.97);
1593
+ transform: scale(var(--pop-scale));
1431
1594
  }
1432
1595
 
1433
1596
  to {
@@ -1436,10 +1599,21 @@ select.input option,
1436
1599
  }
1437
1600
  }
1438
1601
 
1602
+ /* Mount-only enter for floating panels (a CSS replacement for a motion-library fade). */
1603
+ .yunui-pop-in {
1604
+ animation: fadeInScale var(--dur-fast) var(--ease-out);
1605
+ }
1606
+
1607
+ @media (prefers-reduced-motion: reduce) {
1608
+ .yunui-pop-in {
1609
+ animation: none;
1610
+ }
1611
+ }
1612
+
1439
1613
  @keyframes slideIn {
1440
1614
  from {
1441
1615
  opacity: 0;
1442
- transform: translateX(-8px);
1616
+ transform: translateX(calc(var(--enter-offset) * -1));
1443
1617
  }
1444
1618
 
1445
1619
  to {
@@ -1448,6 +1622,16 @@ select.input option,
1448
1622
  }
1449
1623
  }
1450
1624
 
1625
+ @keyframes yunui-skeleton-sweep {
1626
+ 0% {
1627
+ background-position: 200% 0;
1628
+ }
1629
+
1630
+ 100% {
1631
+ background-position: -100% 0;
1632
+ }
1633
+ }
1634
+
1451
1635
  @keyframes shimmer {
1452
1636
  0% {
1453
1637
  background-position: -200% 0;
@@ -1460,21 +1644,23 @@ select.input option,
1460
1644
 
1461
1645
  .animate-enter {
1462
1646
  opacity: 0;
1463
- animation: fadeIn 0.3s ease forwards;
1647
+ animation: fadeIn var(--dur-base) var(--ease-out) forwards;
1464
1648
  }
1465
1649
 
1466
1650
  .animate-fade {
1467
- animation: fadeInScale 0.2s ease forwards;
1651
+ animation: fadeInScale var(--dur-base) var(--ease-out) forwards;
1468
1652
  }
1469
1653
 
1470
1654
  .animate-slide {
1471
- animation: slideIn 0.2s ease forwards;
1655
+ animation: slideIn var(--dur-base) var(--ease-out) forwards;
1472
1656
  }
1473
1657
 
1474
1658
  .skeleton {
1475
- background: linear-gradient(90deg, rgba(0, 0, 0, 0.04) 25%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.04) 75%);
1659
+ background-color: color-mix(in srgb, var(--text-primary) 6%, transparent);
1660
+ background-image: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--text-primary) 7%, transparent) 50%, transparent 100%);
1476
1661
  background-size: 200% 100%;
1477
- animation: shimmer 1.5s infinite;
1662
+ background-repeat: no-repeat;
1663
+ animation: yunui-skeleton-sweep 1.6s linear infinite;
1478
1664
  border-radius: 6px;
1479
1665
  }
1480
1666
 
@@ -1525,12 +1711,14 @@ select.input option,
1525
1711
  }
1526
1712
 
1527
1713
  .hover-lift {
1528
- transition: transform 0.15s ease;
1714
+ transition: transform var(--dur-fast) var(--ease-standard);
1529
1715
  }
1530
1716
 
1717
+ @media (hover: hover) {
1531
1718
  .hover-lift:hover {
1532
1719
  transform: translateY(-2px);
1533
1720
  }
1721
+ }
1534
1722
 
1535
1723
  ::selection {
1536
1724
  background: var(--accent-muted);
@@ -1579,19 +1767,6 @@ select.input option,
1579
1767
  background-color: rgba(0, 0, 0, 0.7);
1580
1768
  }
1581
1769
 
1582
- /* Foreground/accent backgrounds - replaces bg-black */
1583
- .bg-accent-solid {
1584
- background-color: var(--accent);
1585
- }
1586
-
1587
- .bg-accent-subtle {
1588
- background-color: var(--accent-subtle);
1589
- }
1590
-
1591
- .bg-accent-muted {
1592
- background-color: var(--accent-muted);
1593
- }
1594
-
1595
1770
  /* Text utilities - use instead of text-black */
1596
1771
  .text-default {
1597
1772
  color: var(--text-primary);
@@ -1623,13 +1798,17 @@ select.input option,
1623
1798
  }
1624
1799
 
1625
1800
  /* Hover states for interactive elements */
1801
+ @media (hover: hover) {
1626
1802
  .hover-surface:hover {
1627
1803
  background-color: var(--accent-subtle);
1628
1804
  }
1805
+ }
1629
1806
 
1807
+ @media (hover: hover) {
1630
1808
  .hover-surface-strong:hover {
1631
1809
  background-color: var(--accent-muted);
1632
1810
  }
1811
+ }
1633
1812
 
1634
1813
  /* Scrollbar dark mode */
1635
1814
  .dark ::-webkit-scrollbar-thumb,
@@ -1637,23 +1816,29 @@ select.input option,
1637
1816
  background: rgba(255, 255, 255, 0.15);
1638
1817
  }
1639
1818
 
1819
+ @media (hover: hover) {
1640
1820
  .dark ::-webkit-scrollbar-thumb:hover,
1641
1821
  .true-black ::-webkit-scrollbar-thumb:hover {
1642
1822
  background: rgba(255, 255, 255, 0.25);
1643
1823
  }
1824
+ }
1644
1825
 
1645
1826
  /* Navigation dark mode fixes */
1827
+ @media (hover: hover) {
1646
1828
  .dark .nav-item:hover,
1647
1829
  .true-black .nav-item:hover {
1648
1830
  background: var(--accent-subtle);
1649
1831
  color: var(--text-primary);
1650
1832
  }
1833
+ }
1651
1834
 
1835
+ @media (hover: hover) {
1652
1836
  .dark .nav-item:hover > .nav-state-indicator,
1653
1837
  .true-black .nav-item:hover > .nav-state-indicator {
1654
1838
  background: var(--text-primary);
1655
1839
  opacity: 0.4;
1656
1840
  }
1841
+ }
1657
1842
 
1658
1843
  .dark .nav-item.active,
1659
1844
  .true-black .nav-item.active {
@@ -1681,7 +1866,13 @@ select.input option,
1681
1866
  font-weight: 500;
1682
1867
  color: var(--text-tertiary);
1683
1868
  border-radius: 12px;
1684
- transition: all 0.12s ease;
1869
+ transition:
1870
+ background-color var(--dur-fast) var(--ease-standard),
1871
+ border-color var(--dur-fast) var(--ease-standard),
1872
+ color var(--dur-fast) var(--ease-standard),
1873
+ box-shadow var(--dur-fast) var(--ease-standard),
1874
+ opacity var(--dur-fast) var(--ease-standard),
1875
+ transform var(--dur-instant) var(--ease-standard);
1685
1876
  white-space: nowrap;
1686
1877
  }
1687
1878
 
@@ -1695,25 +1886,30 @@ select.input option,
1695
1886
  height: 16px;
1696
1887
  background: var(--text-primary);
1697
1888
  border-radius: 2px;
1698
- transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
1889
+ transition: transform var(--dur-slow) var(--ease-standard), opacity var(--dur-base) var(--ease-standard);
1699
1890
  opacity: 0;
1700
1891
  }
1701
1892
 
1893
+ @media (hover: hover) {
1702
1894
  .dropdown-item:hover {
1703
1895
  color: var(--text-primary);
1704
1896
  background: rgba(0, 0, 0, 0.03);
1705
1897
  }
1898
+ }
1706
1899
 
1900
+ /* A highlighted menu row is a filled row, not a ringed one: the ring read as a second control inside the menu. */
1707
1901
  .dropdown-item:focus-visible {
1708
- outline: 2px solid var(--border-strong);
1709
- outline-offset: -2px;
1902
+ outline: none;
1903
+ background: var(--bg-hover, rgba(0, 0, 0, 0.05));
1710
1904
  color: var(--text-primary);
1711
1905
  }
1712
1906
 
1907
+ @media (hover: hover) {
1713
1908
  .dropdown-item:hover::before {
1714
1909
  transform: translateY(-50%) translateX(0);
1715
1910
  opacity: 0.3;
1716
1911
  }
1912
+ }
1717
1913
 
1718
1914
  .dropdown-item.active {
1719
1915
  color: var(--text-primary);
@@ -1726,17 +1922,21 @@ select.input option,
1726
1922
  height: 18px;
1727
1923
  }
1728
1924
 
1925
+ @media (hover: hover) {
1729
1926
  .dark .dropdown-item:hover,
1730
1927
  .true-black .dropdown-item:hover {
1731
1928
  background: var(--accent-subtle);
1732
1929
  color: var(--text-primary);
1733
1930
  }
1931
+ }
1734
1932
 
1933
+ @media (hover: hover) {
1735
1934
  .dark .dropdown-item:hover::before,
1736
1935
  .true-black .dropdown-item:hover::before {
1737
1936
  background: var(--text-primary);
1738
1937
  opacity: 0.4;
1739
1938
  }
1939
+ }
1740
1940
 
1741
1941
  .dark .dropdown-item.active,
1742
1942
  .true-black .dropdown-item.active {
@@ -1819,22 +2019,26 @@ select.input option,
1819
2019
  border-color: var(--border-default);
1820
2020
  }
1821
2021
 
2022
+ @media (hover: hover) {
1822
2023
  .dark .glass-card:hover {
1823
2024
  background: rgba(30, 30, 35, 0.5);
1824
2025
  border-color: var(--border-strong);
1825
2026
  box-shadow: var(--shadow-lg);
1826
2027
  }
2028
+ }
1827
2029
 
1828
2030
  .true-black .glass-card {
1829
2031
  background: rgba(255, 255, 255, 0.03);
1830
2032
  border-color: var(--border-default);
1831
2033
  }
1832
2034
 
2035
+ @media (hover: hover) {
1833
2036
  .true-black .glass-card:hover {
1834
2037
  background: rgba(255, 255, 255, 0.06);
1835
2038
  border-color: var(--border-strong);
1836
2039
  box-shadow: var(--shadow-lg);
1837
2040
  }
2041
+ }
1838
2042
 
1839
2043
  /* Code inline dark mode */
1840
2044
  .dark .code-inline,
@@ -1851,7 +2055,7 @@ select.input option,
1851
2055
  /* Toggle switch component */
1852
2056
  .toggle-track {
1853
2057
  background-color: var(--accent-muted);
1854
- transition: background-color 0.2s ease;
2058
+ transition: background-color var(--dur-base) var(--ease-standard);
1855
2059
  }
1856
2060
 
1857
2061
  .toggle-track.active {
@@ -1864,14 +2068,18 @@ select.input option,
1864
2068
  }
1865
2069
 
1866
2070
  /* Table rows hover */
2071
+ @media (hover: hover) {
1867
2072
  .table-row-hover:hover {
1868
2073
  background-color: var(--accent-subtle);
1869
2074
  }
2075
+ }
1870
2076
 
2077
+ @media (hover: hover) {
1871
2078
  .dark .table-row-hover:hover,
1872
2079
  .true-black .table-row-hover:hover {
1873
2080
  background-color: rgba(255, 255, 255, 0.03);
1874
2081
  }
2082
+ }
1875
2083
 
1876
2084
  /* Tabs */
1877
2085
  .tab-active {
@@ -1883,9 +2091,11 @@ select.input option,
1883
2091
  background-color: transparent;
1884
2092
  }
1885
2093
 
2094
+ @media (hover: hover) {
1886
2095
  .tab-inactive:hover {
1887
2096
  background-color: var(--accent-subtle);
1888
2097
  }
2098
+ }
1889
2099
 
1890
2100
  /* Empty state */
1891
2101
  .empty-state {
@@ -2089,7 +2299,7 @@ select.input option,
2089
2299
 
2090
2300
  /* Animated badge */
2091
2301
  .badge-pulse {
2092
- animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
2302
+ animation: pulse 2.4s var(--ease-standard) infinite;
2093
2303
  }
2094
2304
 
2095
2305
  @keyframes pulse {
@@ -2170,7 +2380,7 @@ select.input option,
2170
2380
 
2171
2381
  /* Floating animation - defined above at line 945 */
2172
2382
  .animate-float {
2173
- animation: float 6s ease-in-out infinite;
2383
+ animation: none; /* decorative loop retired: motion only explains a change */
2174
2384
  }
2175
2385
 
2176
2386
  /* Grid pattern background */
@@ -2269,17 +2479,19 @@ html {
2269
2479
  @keyframes fadeInUp {
2270
2480
  from {
2271
2481
  opacity: 0;
2272
- transform: translateY(30px);
2482
+ transform: translateY(var(--enter-offset));
2483
+ filter: blur(var(--enter-blur));
2273
2484
  }
2274
2485
 
2275
2486
  to {
2276
2487
  opacity: 1;
2277
2488
  transform: translateY(0);
2489
+ filter: blur(0);
2278
2490
  }
2279
2491
  }
2280
2492
 
2281
2493
  .fade-in-up {
2282
- animation: fadeInUp 0.6s ease-out forwards;
2494
+ animation: fadeInUp var(--dur-base) var(--ease-out) forwards;
2283
2495
  opacity: 0;
2284
2496
  }
2285
2497
 
@@ -2287,7 +2499,7 @@ html {
2287
2499
  @keyframes scaleIn {
2288
2500
  from {
2289
2501
  opacity: 0;
2290
- transform: scale(0.9);
2502
+ transform: scale(var(--pop-scale));
2291
2503
  }
2292
2504
 
2293
2505
  to {
@@ -2297,7 +2509,7 @@ html {
2297
2509
  }
2298
2510
 
2299
2511
  .scale-in {
2300
- animation: scaleIn 0.4s ease-out forwards;
2512
+ animation: scaleIn var(--dur-base) var(--ease-out) forwards;
2301
2513
  opacity: 0;
2302
2514
  }
2303
2515
 
@@ -2305,26 +2517,32 @@ html {
2305
2517
  .btn-shimmer {
2306
2518
  background: linear-gradient(90deg, var(--text-primary) 0%, var(--text-primary) 40%, rgba(255, 255, 255, 0.3) 50%, var(--text-primary) 60%, var(--text-primary) 100%);
2307
2519
  background-size: 200% 100%;
2308
- animation: shimmer 3s infinite;
2520
+ animation: none;
2309
2521
  }
2310
2522
 
2311
2523
  /* Glow on hover */
2312
2524
  .glow-hover {
2313
- transition: box-shadow 0.3s ease, transform 0.3s ease;
2525
+ transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
2314
2526
  }
2315
2527
 
2528
+ @media (hover: hover) {
2316
2529
  .glow-hover:hover {
2317
2530
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
2318
2531
  transform: translateY(-2px);
2319
2532
  }
2533
+ }
2320
2534
 
2535
+ @media (hover: hover) {
2321
2536
  .dark .glow-hover:hover {
2322
2537
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
2323
2538
  }
2539
+ }
2324
2540
 
2541
+ @media (hover: hover) {
2325
2542
  .true-black .glow-hover:hover {
2326
2543
  box-shadow: 0 0 30px rgba(212, 212, 216, 0.08);
2327
2544
  }
2545
+ }
2328
2546
 
2329
2547
  /* Gradient text animated */
2330
2548
  @keyframes gradientShift {
@@ -2345,7 +2563,7 @@ html {
2345
2563
  -webkit-background-clip: text;
2346
2564
  -webkit-text-fill-color: transparent;
2347
2565
  background-clip: text;
2348
- animation: gradientShift 5s ease infinite;
2566
+ animation: none;
2349
2567
  }
2350
2568
 
2351
2569
  /* Border glow */
@@ -2361,18 +2579,20 @@ html {
2361
2579
  padding: 2px;
2362
2580
  background: linear-gradient(135deg, var(--accent-muted), var(--accent-subtle), var(--accent-muted));
2363
2581
  background-size: 200% 200%;
2364
- animation: gradientShift 4s ease infinite;
2582
+ animation: none;
2365
2583
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
2366
2584
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
2367
2585
  -webkit-mask-composite: xor;
2368
2586
  mask-composite: exclude;
2369
2587
  opacity: 0;
2370
- transition: opacity 0.3s ease;
2588
+ transition: opacity var(--dur-base) var(--ease-standard);
2371
2589
  }
2372
2590
 
2591
+ @media (hover: hover) {
2373
2592
  .border-glow:hover::before {
2374
2593
  opacity: 1;
2375
2594
  }
2595
+ }
2376
2596
 
2377
2597
  /* Spotlight effect */
2378
2598
  @keyframes spotlight {
@@ -2402,12 +2622,14 @@ html {
2402
2622
  rgba(255, 255, 255, 0.05) 50%,
2403
2623
  rgba(255, 255, 255, 0) 100%);
2404
2624
  transform: rotate(45deg);
2405
- transition: all 0.5s ease;
2625
+ transition: opacity var(--dur-slow) var(--ease-standard);
2406
2626
  opacity: 0;
2407
2627
  }
2408
2628
 
2629
+ @media (hover: hover) {
2409
2630
  .spotlight-card:hover::after {
2410
- animation: spotlight 1.5s ease;
2631
+ animation: spotlight var(--dur-slow) var(--ease-standard);
2632
+ }
2411
2633
  }
2412
2634
 
2413
2635
  /* Typing cursor animation */
@@ -2426,7 +2648,7 @@ html {
2426
2648
 
2427
2649
  .typing-cursor::after {
2428
2650
  content: '|';
2429
- animation: blink 1s infinite;
2651
+ animation: blink 1.2s var(--ease-standard) infinite;
2430
2652
  margin-left: 2px;
2431
2653
  }
2432
2654
 
@@ -2443,12 +2665,14 @@ html {
2443
2665
  width: 0;
2444
2666
  height: 2px;
2445
2667
  background: var(--accent);
2446
- transition: width 0.3s ease;
2668
+ transition: width var(--dur-base) var(--ease-standard);
2447
2669
  }
2448
2670
 
2671
+ @media (hover: hover) {
2449
2672
  .underline-animated:hover::after {
2450
2673
  width: 100%;
2451
2674
  }
2675
+ }
2452
2676
 
2453
2677
  /* Marquee — seamless infinite scroll for the <Marquee> component.
2454
2678
  The component repeats its children N times in a flex track; each group
@@ -2482,25 +2706,27 @@ html {
2482
2706
  /* Reveal on scroll */
2483
2707
  .reveal {
2484
2708
  opacity: 0;
2485
- transform: translateY(30px);
2486
- transition: all 0.6s ease;
2709
+ transform: translateY(var(--enter-offset));
2710
+ filter: blur(var(--enter-blur));
2711
+ transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
2487
2712
  }
2488
2713
 
2489
2714
  .reveal.visible {
2490
2715
  opacity: 1;
2491
2716
  transform: translateY(0);
2717
+ filter: blur(0);
2492
2718
  }
2493
2719
 
2494
2720
  /* Magnetic button effect */
2495
2721
  .magnetic {
2496
- transition: transform 0.2s ease;
2722
+ transition: transform var(--dur-base) var(--ease-standard);
2497
2723
  }
2498
2724
 
2499
2725
  /* Counter animation */
2500
2726
  @keyframes countUp {
2501
2727
  from {
2502
2728
  opacity: 0;
2503
- transform: scale(0.5);
2729
+ transform: scale(var(--pop-scale));
2504
2730
  }
2505
2731
 
2506
2732
  to {
@@ -2510,7 +2736,7 @@ html {
2510
2736
  }
2511
2737
 
2512
2738
  .counter-animate {
2513
- animation: countUp 0.6s ease-out forwards;
2739
+ animation: countUp var(--dur-base) var(--ease-out) forwards;
2514
2740
  }
2515
2741
 
2516
2742
  /* Glassmorphism card enhanced */
@@ -2523,9 +2749,14 @@ html {
2523
2749
  box-shadow:
2524
2750
  0 8px 32px rgba(0, 0, 0, 0.08),
2525
2751
  inset 0 1px 0 rgba(255, 255, 255, 0.5);
2526
- transition: all 0.3s ease;
2752
+ transition:
2753
+ background-color var(--dur-fast) var(--ease-standard),
2754
+ border-color var(--dur-fast) var(--ease-standard),
2755
+ box-shadow var(--dur-base) var(--ease-standard),
2756
+ transform var(--dur-base) var(--ease-standard);
2527
2757
  }
2528
2758
 
2759
+ @media (hover: hover) {
2529
2760
  .glass-card-enhanced:hover {
2530
2761
  background: rgba(255, 255, 255, 0.8);
2531
2762
  box-shadow:
@@ -2533,6 +2764,7 @@ html {
2533
2764
  inset 0 1px 0 rgba(255, 255, 255, 0.6);
2534
2765
  transform: translateY(-4px);
2535
2766
  }
2767
+ }
2536
2768
 
2537
2769
  .dark .glass-card-enhanced {
2538
2770
  background: rgba(20, 20, 23, 0.6);
@@ -2542,12 +2774,14 @@ html {
2542
2774
  inset 0 1px 0 rgba(255, 255, 255, 0.1);
2543
2775
  }
2544
2776
 
2777
+ @media (hover: hover) {
2545
2778
  .dark .glass-card-enhanced:hover {
2546
2779
  background: rgba(30, 30, 35, 0.7);
2547
2780
  box-shadow:
2548
2781
  0 12px 40px rgba(0, 0, 0, 0.4),
2549
2782
  inset 0 1px 0 rgba(255, 255, 255, 0.15);
2550
2783
  }
2784
+ }
2551
2785
 
2552
2786
  .true-black .glass-card-enhanced {
2553
2787
  background: rgba(255, 255, 255, 0.03);
@@ -2557,12 +2791,14 @@ html {
2557
2791
  inset 0 1px 0 rgba(255, 255, 255, 0.05);
2558
2792
  }
2559
2793
 
2794
+ @media (hover: hover) {
2560
2795
  .true-black .glass-card-enhanced:hover {
2561
2796
  background: rgba(255, 255, 255, 0.05);
2562
2797
  box-shadow:
2563
2798
  0 0 0 1px rgba(255, 255, 255, 0.15),
2564
2799
  inset 0 1px 0 rgba(255, 255, 255, 0.08);
2565
2800
  }
2801
+ }
2566
2802
 
2567
2803
  /* Noise texture overlay */
2568
2804
  .noise-overlay {
@@ -2599,7 +2835,7 @@ html {
2599
2835
  height: 4px;
2600
2836
  background: var(--accent-muted);
2601
2837
  border-radius: 50%;
2602
- animation: twinkle 3s ease-in-out infinite;
2838
+ animation: none;
2603
2839
  }
2604
2840
 
2605
2841
  .particle:nth-child(1) {
@@ -2643,16 +2879,16 @@ html {
2643
2879
 
2644
2880
  /* Streaming cursor animation */
2645
2881
  @keyframes streaming-cursor {
2646
- 0%, 50% {
2647
- opacity: 1;
2882
+ 0%, 100% {
2883
+ opacity: 0.9;
2648
2884
  }
2649
- 51%, 100% {
2650
- opacity: 0;
2885
+ 50% {
2886
+ opacity: 0.25;
2651
2887
  }
2652
2888
  }
2653
2889
 
2654
2890
  .streaming-cursor {
2655
- animation: streaming-cursor 1s infinite;
2891
+ animation: streaming-cursor 1.2s var(--ease-standard) infinite;
2656
2892
  }
2657
2893
 
2658
2894
  /* =====================================================
@@ -2662,16 +2898,16 @@ html {
2662
2898
  @keyframes typewriter-fade-in {
2663
2899
  from {
2664
2900
  opacity: 0;
2665
- transform: translateY(2px);
2901
+ filter: blur(1.5px);
2666
2902
  }
2667
2903
  to {
2668
2904
  opacity: 1;
2669
- transform: translateY(0);
2905
+ filter: blur(0);
2670
2906
  }
2671
2907
  }
2672
2908
 
2673
2909
  .typewriter-text {
2674
- animation: typewriter-fade-in 0.1s ease-out;
2910
+ animation: typewriter-fade-in var(--dur-fast) var(--ease-out);
2675
2911
  }
2676
2912
 
2677
2913
  /* =====================================================
@@ -2704,7 +2940,7 @@ html {
2704
2940
  /* Ensure modals always render at the root level */
2705
2941
  @media (prefers-reduced-motion: no-preference) {
2706
2942
  .modal-content {
2707
- animation: fadeInScale 0.2s ease-out;
2943
+ animation: fadeInScale var(--dur-base) var(--ease-out);
2708
2944
  }
2709
2945
  }
2710
2946
 
@@ -2739,7 +2975,7 @@ html {
2739
2975
  .bg-brand-sheen {
2740
2976
  background-image: linear-gradient(110deg, var(--brand-solid-strong), var(--accent-solid-strong), var(--brand-solid-strong));
2741
2977
  background-size: 200% 100%;
2742
- animation: yunui-sheen 6s linear infinite;
2978
+ animation: none;
2743
2979
  }
2744
2980
  @keyframes yunui-sheen {
2745
2981
  to {
@@ -2783,7 +3019,7 @@ html {
2783
3019
  overflow: hidden;
2784
3020
  text-overflow: ellipsis;
2785
3021
  white-space: nowrap;
2786
- transition: opacity 180ms ease-out;
3022
+ transition: opacity var(--dur-base) var(--ease-out);
2787
3023
  }
2788
3024
 
2789
3025
  .yunui-text-shimmer__sweep {
@@ -2838,6 +3074,1215 @@ html {
2838
3074
  transition-duration: 0.01ms !important;
2839
3075
  scroll-behavior: auto !important;
2840
3076
  }
3077
+ /* The motion utilities keep a short opacity change (<= 120 ms): the tokens
3078
+ zero their offset, blur and scale under this media query. */
3079
+ .motion-enter,
3080
+ .motion-exit,
3081
+ .motion-pop,
3082
+ .motion-collapse,
3083
+ .yunui-fade-in {
3084
+ animation-duration: var(--dur-fast) !important;
3085
+ transition-duration: var(--dur-fast) !important;
3086
+ }
3087
+ /* A number swaps instantly: no roll, no blur, no width glide. */
3088
+ .yunui-mn,
3089
+ .yunui-mn-strip {
3090
+ transition: none !important;
3091
+ filter: none !important;
3092
+ }
2841
3093
  }
2842
3094
 
2843
3095
  } /* end @layer components */
3096
+
3097
+ /* =====================================================
3098
+ UNLAYERED OVERRIDES
3099
+ Rules here deliberately sit outside every `@layer`, because unlayered CSS
3100
+ wins against all layered CSS regardless of specificity. That is the only
3101
+ reliable way to override a third-party rule that lives in a later layer than
3102
+ anything we can write.
3103
+ ===================================================== */
3104
+
3105
+ /* Fumadocs card surface = YunUI's card surface.
3106
+ `--color-fd-card` was bridged only inside the true-black block, so in light
3107
+ and dark the docs used fumadocs' own values (#f1f1f1 / #191919) while every
3108
+ YunUI card next to them used `--bg-card` (#ffffff / #141417). Two card
3109
+ colours on one page is the thing the fd-* bridge exists to prevent.
3110
+
3111
+ It also matters for contrast: fumadocs renders code blocks on this surface,
3112
+ and GitHub's Shiki palettes are calibrated against their own canvas — white
3113
+ for `github-light-default`. On #f1f1f1 the comment token (#6e7781) measured
3114
+ 4.03:1; on white it is 4.55:1. Every intermediate grey still failed, so this
3115
+ is white or nothing. */
3116
+ :root:not(.true-black),
3117
+ .light,
3118
+ .dark {
3119
+ --color-fd-card: var(--bg-card);
3120
+ --color-fd-card-foreground: var(--text-primary);
3121
+ /* Fumadocs' own muted ink is #737373, which clears AA on pure white (4.74:1)
3122
+ and fails on every surface it actually lands on — 4.39:1 on #f6f6f6, 4.35
3123
+ on #f5f5f5, 4.20 on #f1f1f1. Only `true-black` had a bridge for this token,
3124
+ so light and dark inherited the failure. `--text-tertiary` is the
3125
+ equivalent step in YunUI's ramp and is tuned against the surfaces:
3126
+ 4.89 / 4.84 / 4.68 respectively, 5.28 on white. */
3127
+ --color-fd-muted-foreground: var(--text-tertiary);
3128
+ }
3129
+
3130
+ /* Shiki dual themes in the `true-black` theme.
3131
+ Fumadocs emits `--shiki-light` / `--shiki-dark` per token and switches with
3132
+ `.dark .shiki … code span { color: var(--shiki-dark) }`. Our third theme sets
3133
+ `class="true-black"` WITHOUT `dark` (next-themes maps one theme to one
3134
+ class), so that switch never fired and every code block rendered the LIGHT
3135
+ syntax theme on a near-black page: measured 1.35:1 for plain code text
3136
+ (#24292E on #0a0a0a). Unreadable.
3137
+
3138
+ An equivalent `.true-black` rule did exist, but inside `@layer components`,
3139
+ where fumadocs' own `.shiki … code span { color: var(--shiki-light) }` in
3140
+ `@layer utilities` beat it — later layer wins, specificity is not consulted.
3141
+ Unlayered, it wins.
3142
+
3143
+ Both DOM shapes are covered: fumadocs puts `.shiki` on the wrapping <figure>
3144
+ for block code, and on the <code> itself elsewhere. Only the first had a
3145
+ `true-black` counterpart. */
3146
+ .true-black .shiki:not(.not-fumadocs-codeblock *) code span,
3147
+ .true-black code.shiki:not(.not-fumadocs-code *) span {
3148
+ color: var(--shiki-dark);
3149
+ font-style: var(--shiki-dark-font-style);
3150
+ }
3151
+
3152
+ .true-black .shiki:not(.not-fumadocs-codeblock *),
3153
+ .true-black code.shiki:not(.not-fumadocs-code *) {
3154
+ color: var(--shiki-dark);
3155
+ }
3156
+
3157
+ /* Fumadocs tokens in the `true-black` theme — unlayered, and it has to be.
3158
+ Fumadocs ships its LIGHT defaults as `:root:not(.dark)` with no `@layer`.
3159
+ `true-black` sets `class="true-black"` and no `dark`, so that selector
3160
+ matches it, and unlayered CSS beats every layer regardless of specificity —
3161
+ so the `.true-black` bridge in `@layer components` lost silently. Docs body
3162
+ text came out at fumadocs' light `#525252` on black: 2.53:1.
3163
+
3164
+ The layered block above is kept as the single place to edit these values;
3165
+ this mirror exists purely to win the cascade. Keep the two in step. */
3166
+ /* `:root.true-black:not(.dark)` is (0,3,0), deliberately one step above
3167
+ fumadocs' `:root:not(.dark)` at (0,2,0). Being unlayered is necessary but not
3168
+ sufficient — a bare `.true-black` is only (0,1,0) and still lost. The
3169
+ `:not(.dark)` is redundant by construction (next-themes sets exactly one
3170
+ class) and is there to carry the specificity, and to say out loud which
3171
+ selector this is fighting. */
3172
+ :root.true-black:not(.dark),
3173
+ :root[data-theme="true-black"]:not(.dark) {
3174
+ --color-fd-background: #000000;
3175
+ --color-fd-foreground: #d4d4d8;
3176
+ --color-fd-muted: #111111;
3177
+ --color-fd-muted-foreground: rgba(161, 161, 170, 0.8);
3178
+ --color-fd-popover: #141414;
3179
+ --color-fd-popover-foreground: #d4d4d8;
3180
+ --color-fd-card: #0a0a0a;
3181
+ --color-fd-card-foreground: #d4d4d8;
3182
+ --color-fd-border: rgba(255, 255, 255, 0.08);
3183
+ --color-fd-primary: #d4d4d8;
3184
+ --color-fd-primary-foreground: #000000;
3185
+ --color-fd-secondary: #111111;
3186
+ --color-fd-secondary-foreground: #d4d4d8;
3187
+ --color-fd-accent: rgba(255, 255, 255, 0.06);
3188
+ --color-fd-accent-foreground: #d4d4d8;
3189
+ --color-fd-ring: #404040;
3190
+ --color-fd-overlay: rgba(0, 0, 0, 0.7);
3191
+ }
3192
+
3193
+ /* =====================================================
3194
+ Scroll fade (opt-in; after YunDesign's YunScrollFade)
3195
+ A bottom fade of a constant depth, shown only while more content is below.
3196
+ Apply `.scroll-fade` to a scroller and toggle `data-more="true"` (the ScrollFade
3197
+ component does both). Nothing here touches existing classes.
3198
+ ===================================================== */
3199
+
3200
+ .scroll-fade[data-more="true"] {
3201
+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--scroll-fade-depth, 22px)), transparent);
3202
+ mask-image: linear-gradient(to bottom, #000 calc(100% - var(--scroll-fade-depth, 22px)), transparent);
3203
+ }
3204
+
3205
+ /* =====================================================
3206
+ Default look, from YunDesign: window tier, flat cards, solid switch,
3207
+ press step, thin progress. Values are YunDesign's (Tokens.swift
3208
+ windowBackground, Theme.swift yunSurface, Controls.swift YunToggleStyle /
3209
+ YunButtonStyle / YunFader). Card edges stay on --border-hairline, exactly
3210
+ as YunDesign's flat yunSurface draws them.
3211
+ ===================================================== */
3212
+ :root {
3213
+ --bg-window: #f7f7f8;
3214
+ }
3215
+ :root.dark,
3216
+ :root[data-theme="dark"] {
3217
+ --bg-window: #0b0b0d;
3218
+ }
3219
+ /* True black keeps the OLED page at pure #000: no separate window tier. */
3220
+ :root.true-black,
3221
+ :root[data-theme="true-black"] {
3222
+ --bg-window: var(--bg-base);
3223
+ }
3224
+
3225
+ /* window: a page tier one step off the card fill. */
3226
+ body,
3227
+ .bg-background.h-dvh,
3228
+ .bg-background.min-h-dvh,
3229
+ .bg-background.min-h-screen {
3230
+ background-color: var(--bg-window);
3231
+ }
3232
+
3233
+ /* flat: border-only cards, no hover shadow, no backdrop blur. */
3234
+ .card {
3235
+ box-shadow: none;
3236
+ }
3237
+ @media (hover: hover) {
3238
+ .card:hover,
3239
+ .card-interactive:hover {
3240
+ box-shadow: none;
3241
+ }
3242
+ }
3243
+ .card {
3244
+ transition: border-color var(--dur-fast) var(--ease-standard);
3245
+ }
3246
+ .stat-card {
3247
+ backdrop-filter: none;
3248
+ -webkit-backdrop-filter: none;
3249
+ }
3250
+
3251
+ /* switch: solid-filled on state, knob takes the page colour. */
3252
+ .yunui-switch[aria-checked="true"] {
3253
+ background-color: var(--color-primary);
3254
+ }
3255
+ .yunui-switch[aria-checked="true"].border-\(--success\) {
3256
+ background-color: var(--success);
3257
+ }
3258
+ .yunui-switch[aria-checked="true"].border-\(--warning\) {
3259
+ background-color: var(--warning);
3260
+ }
3261
+ .yunui-switch[aria-checked="true"].border-\(--error\) {
3262
+ background-color: var(--error);
3263
+ }
3264
+ .yunui-switch[aria-checked="true"] .yunui-switch-thumb {
3265
+ background-color: var(--bg-base);
3266
+ }
3267
+
3268
+ /* press: YunDesign's third step (rest, hover, pressed): a tint. */
3269
+ .btn:active:not(:disabled) {
3270
+ background-image: linear-gradient(rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.05));
3271
+ }
3272
+ :root.dark .btn:active:not(:disabled),
3273
+ :root[data-theme="dark"] .btn:active:not(:disabled) {
3274
+ background-image: linear-gradient(rgb(255 255 255 / 0.06), rgb(255 255 255 / 0.06));
3275
+ }
3276
+ @media (prefers-reduced-motion: reduce) {
3277
+ .btn {
3278
+ transition: none;
3279
+ }
3280
+ }
3281
+
3282
+ /* thin: YunFader's 4pt track, applied to Progress only. The Slider keeps its
3283
+ 8px track and 20px thumb (a 12px thumb is too small a target). */
3284
+ .yunui-progress {
3285
+ height: 4px;
3286
+ }
3287
+
3288
+ /* =====================================================
3289
+ APP DENSITY (opt-in): data-yunui-density="compact"
3290
+ A calm, compact type scale for application consoles, derived from YunDesign
3291
+ (title 15 / body 13 / label 12 / caption 11 / mono 11) and widened to the web
3292
+ where Chinese text needs more room (caption and mono 12, never below).
3293
+ Set the attribute on <html> (or any wrapper). Nothing changes without it, so
3294
+ marketing and docs surfaces keep the default scale.
3295
+
3296
+ page title 20 / 1.3 600 section title 14 / 1.4 600
3297
+ body, table 13 / 1.55 400 label 12 / 1.5 500
3298
+ caption 12 / 1.5 400 mono use text-xs font-medium
3299
+ stat value 22 / 1.2 600 tabular hero 28 / 1.15 600 tabular
3300
+
3301
+ Unlayered on purpose: it must beat the utilities layer, which is where
3302
+ Tailwind's text-sm and friends live. The Tailwind size ramp is remapped
3303
+ through its own theme variables, so every component that uses text-xs,
3304
+ text-sm and so on follows the scale without a per-component edit.
3305
+ ===================================================== */
3306
+ [data-yunui-density="compact"] {
3307
+ --text-xs: 0.75rem;
3308
+ --text-xs--line-height: 1.5;
3309
+ --text-sm: 0.8125rem;
3310
+ --text-sm--line-height: 1.55;
3311
+ --text-base: 0.875rem;
3312
+ --text-base--line-height: 1.5;
3313
+ --text-lg: 1rem;
3314
+ --text-lg--line-height: 1.5;
3315
+ --text-xl: 1.25rem;
3316
+ --text-xl--line-height: 1.3;
3317
+ --text-2xl: 1.375rem;
3318
+ --text-2xl--line-height: 1.2;
3319
+ --text-3xl: 1.75rem;
3320
+ --text-3xl--line-height: 1.15;
3321
+ --text-4xl: 1.75rem;
3322
+ --text-4xl--line-height: 1.15;
3323
+ --yunui-density-pad-x: 0.75rem;
3324
+ --yunui-density-pad-y: 0.5rem;
3325
+ }
3326
+
3327
+ [data-yunui-density="compact"] .heading-xl {
3328
+ font-size: 1.25rem;
3329
+ line-height: 1.3;
3330
+ letter-spacing: -0.01em;
3331
+ }
3332
+ [data-yunui-density="compact"] .heading-lg {
3333
+ font-size: 1rem;
3334
+ line-height: 1.4;
3335
+ letter-spacing: -0.005em;
3336
+ }
3337
+ [data-yunui-density="compact"] .heading-md,
3338
+ [data-yunui-density="compact"] .yunui-section-title,
3339
+ [data-yunui-density="compact"] .yunui-card-title {
3340
+ font-size: 0.875rem;
3341
+ font-weight: 600;
3342
+ line-height: 1.4;
3343
+ letter-spacing: 0;
3344
+ }
3345
+ [data-yunui-density="compact"] .text-body {
3346
+ font-size: 0.8125rem;
3347
+ line-height: 1.55;
3348
+ }
3349
+ [data-yunui-density="compact"] .text-caption {
3350
+ font-size: 0.75rem;
3351
+ line-height: 1.5;
3352
+ }
3353
+ /* Label: sentence case, no tracking. Uppercase tracking at 11px is hard to read
3354
+ and meaningless for CJK. Keeps the tertiary ink; the faintest step is never used for text. */
3355
+ [data-yunui-density="compact"] .text-label {
3356
+ font-size: 0.75rem;
3357
+ font-weight: 500;
3358
+ line-height: 1.5;
3359
+ letter-spacing: 0;
3360
+ text-transform: none;
3361
+ }
3362
+ [data-yunui-density="compact"] .yunui-stat-value {
3363
+ font-size: 1.375rem;
3364
+ line-height: 1.2;
3365
+ font-weight: 600;
3366
+ }
3367
+ [data-yunui-density="compact"] .yunui-hero-value {
3368
+ font-size: 1.75rem;
3369
+ line-height: 1.15;
3370
+ }
3371
+ [data-yunui-density="compact"] .yunui-table {
3372
+ font-size: 0.8125rem;
3373
+ line-height: 1.55;
3374
+ }
3375
+ [data-yunui-density="compact"] .yunui-table .yunui-th {
3376
+ height: 2.25rem;
3377
+ padding-inline: var(--yunui-density-pad-x);
3378
+ font-size: 0.75rem;
3379
+ font-weight: 500;
3380
+ line-height: 1.5;
3381
+ letter-spacing: 0;
3382
+ text-transform: none;
3383
+ }
3384
+ [data-yunui-density="compact"] .yunui-table .yunui-th button {
3385
+ text-transform: none;
3386
+ letter-spacing: 0;
3387
+ }
3388
+ [data-yunui-density="compact"] .yunui-table .yunui-td {
3389
+ padding: var(--yunui-density-pad-y) var(--yunui-density-pad-x);
3390
+ }
3391
+ /* StatCard: a 28px icon tile and a tighter top row, so four tiles read as a
3392
+ calm strip rather than four posters. */
3393
+ [data-yunui-density="compact"] .yunui-stat-toprow {
3394
+ margin-bottom: 0.5rem;
3395
+ }
3396
+ [data-yunui-density="compact"] .yunui-stat-icon {
3397
+ width: 1.75rem;
3398
+ height: 1.75rem;
3399
+ border-radius: 0.5rem;
3400
+ }
3401
+ [data-yunui-density="compact"] .yunui-stat-icon svg {
3402
+ width: 1rem;
3403
+ height: 1rem;
3404
+ }
3405
+ /* Numeric slots inside chart text: reserve the width of a typical reading so a
3406
+ digit more or less never changes how a legend or readout row wraps. */
3407
+ [data-yunui-density="compact"] .yunui-legend-value {
3408
+ display: inline-block;
3409
+ min-width: 8ch;
3410
+ }
3411
+ [data-yunui-density="compact"] .yunui-readout-value {
3412
+ display: inline-block;
3413
+ min-width: 6ch;
3414
+ }
3415
+ /* The hard-coded 10 and 11px arbitrary sizes used across components become 12. */
3416
+ [data-yunui-density="compact"] .text-\[10px\],
3417
+ [data-yunui-density="compact"] .text-\[11px\],
3418
+ [data-yunui-density="compact"] .text-\[0\.6875rem\] {
3419
+ font-size: 0.75rem;
3420
+ }
3421
+ /* Sidebar section labels: sentence case at 12, not 10px capitals. */
3422
+ [data-yunui-density="compact"] .nav-section {
3423
+ font-size: 0.75rem;
3424
+ font-weight: 500;
3425
+ letter-spacing: 0;
3426
+ text-transform: none;
3427
+ }
3428
+ [data-yunui-density="compact"] .badge,
3429
+ [data-yunui-density="compact"] .yunui-table-responsive td::before {
3430
+ font-size: 0.75rem;
3431
+ }
3432
+ /* Code viewports (Shiki and the lightweight highlighter) are hard-coded at 14px
3433
+ in the platform monospace. Compact density sets them to 13px in the library's
3434
+ own monospace, the same face as every other mono run. */
3435
+ [data-yunui-density="compact"] .yunui-code-scroll,
3436
+ [data-yunui-density="compact"] .shiki-wrapper code {
3437
+ font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
3438
+ font-size: 0.8125rem;
3439
+ }
3440
+ /* Bars fed by a polled value do not slide to each new width. */
3441
+ [data-yunui-density="compact"] .yunui-bar-fill {
3442
+ transition: none;
3443
+ }
3444
+ /* One line, ellipsis (full text in the title): a longer sentence never makes a
3445
+ tile taller than its neighbours, which would move everything below it. */
3446
+ [data-yunui-density="compact"] .yunui-stat-sub {
3447
+ min-height: 1.5em;
3448
+ overflow: hidden;
3449
+ text-overflow: ellipsis;
3450
+ white-space: nowrap;
3451
+ }
3452
+ /* Fine print (pills, chart legend and readout, detail units, trace labels) is
3453
+ hard-coded at 10 to 11px by default; the density scale lifts it to 12. Chart
3454
+ axis ticks stay one step smaller at 11 so five of them still fit. */
3455
+ [data-yunui-density="compact"] .yunui-fine-print {
3456
+ font-size: 0.75rem;
3457
+ }
3458
+ [data-yunui-density="compact"] text[data-axis] {
3459
+ font-size: 11px;
3460
+ }
3461
+ /* Motion: nothing moves for more than 150 ms, and only opacity or colour. */
3462
+ [data-yunui-density="compact"] .animate-enter {
3463
+ opacity: 1;
3464
+ animation: yunui-density-fade var(--dur-fast) var(--ease-out) backwards;
3465
+ }
3466
+ [data-yunui-density="compact"] .yunui-progress > * {
3467
+ transition-duration: var(--dur-fast);
3468
+ }
3469
+ @keyframes yunui-density-fade {
3470
+ from {
3471
+ opacity: 0;
3472
+ }
3473
+ }
3474
+ @media (prefers-reduced-motion: reduce) {
3475
+ [data-yunui-density="compact"] .animate-enter {
3476
+ animation: none;
3477
+ }
3478
+ }
3479
+
3480
+ /* Numeric slots never change width: Geist and JetBrains Mono both carry tabular
3481
+ figures. Opt in with .yunui-num (any element) or use it implicitly through the
3482
+ stat value classes. */
3483
+ .yunui-num,
3484
+ .yunui-stat-value,
3485
+ .yunui-hero-value {
3486
+ font-variant-numeric: tabular-nums;
3487
+ }
3488
+
3489
+ /* =====================================================
3490
+ MOTION, after YunDesign (Tokens.swift Motion): hover 0.12 s; press, selection and popover open
3491
+ 0.15 s; disclosure/expand and toggles 0.18 s; always ease-out. Only opacity, colour and the one
3492
+ element a gesture moves ever animate: no springs, no layout movement, nothing loops except the
3493
+ skeleton shimmer. `prefers-reduced-motion` turns every one of them into an instant change.
3494
+ ===================================================== */
3495
+ :root {
3496
+ /* legacy names, now aliases of the motion tokens in tokens.css */
3497
+ --duration-hover: var(--dur-fast);
3498
+ --duration-press: var(--dur-fast);
3499
+ --duration-expand: var(--dur-base);
3500
+ }
3501
+
3502
+ /* Buttons: three steps (rest, hover +2%, pressed +4%) on the tokens above. */
3503
+ .btn {
3504
+ transition:
3505
+ background-color var(--dur-fast) var(--ease-standard),
3506
+ border-color var(--dur-fast) var(--ease-standard),
3507
+ color var(--dur-fast) var(--ease-standard),
3508
+ box-shadow var(--dur-fast) var(--ease-standard),
3509
+ opacity var(--dur-fast) var(--ease-standard);
3510
+ }
3511
+ @media (hover: hover) {
3512
+ .btn:hover:not(:disabled):not(:active) {
3513
+ background-image: linear-gradient(rgb(0 0 0 / 0.02), rgb(0 0 0 / 0.02));
3514
+ }
3515
+ }
3516
+ .btn:active:not(:disabled) {
3517
+ background-image: linear-gradient(rgb(0 0 0 / 0.04), rgb(0 0 0 / 0.04));
3518
+ }
3519
+ @media (hover: hover) {
3520
+ :root.dark .btn:hover:not(:disabled):not(:active),
3521
+ :root[data-theme="dark"] .btn:hover:not(:disabled):not(:active) {
3522
+ background-image: linear-gradient(rgb(255 255 255 / 0.02), rgb(255 255 255 / 0.02));
3523
+ }
3524
+ }
3525
+ :root.dark .btn:active:not(:disabled),
3526
+ :root[data-theme="dark"] .btn:active:not(:disabled) {
3527
+ background-image: linear-gradient(rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.04));
3528
+ }
3529
+
3530
+ /* Disclosure / collapsible: the content animates its height (Radix publishes the measured height). */
3531
+ @keyframes yunui-collapse-down {
3532
+ from {
3533
+ height: 0;
3534
+ opacity: 0;
3535
+ }
3536
+ to {
3537
+ height: var(--radix-collapsible-content-height);
3538
+ opacity: 1;
3539
+ }
3540
+ }
3541
+ @keyframes yunui-collapse-up {
3542
+ from {
3543
+ height: var(--radix-collapsible-content-height);
3544
+ opacity: 1;
3545
+ }
3546
+ to {
3547
+ height: 0;
3548
+ opacity: 0;
3549
+ }
3550
+ }
3551
+ .animate-fd-collapsible-down {
3552
+ animation: yunui-collapse-down var(--dur-base) var(--ease-out);
3553
+ }
3554
+ .animate-fd-collapsible-up {
3555
+ animation: yunui-collapse-up var(--dur-fast) var(--ease-in);
3556
+ }
3557
+
3558
+ /* Mount-only fades: a route's content, and a row that arrives after the list was first shown.
3559
+ Opacity only, so nothing moves. */
3560
+ @keyframes yunui-fade-in {
3561
+ from {
3562
+ opacity: 0;
3563
+ transform: translateY(var(--enter-offset));
3564
+ filter: blur(var(--enter-blur));
3565
+ }
3566
+ }
3567
+ .yunui-fade-in {
3568
+ animation: yunui-fade-in var(--dur-base) var(--ease-out) backwards;
3569
+ }
3570
+
3571
+ @media (prefers-reduced-motion: reduce) {
3572
+ .yunui-fade-in,
3573
+ .animate-fd-collapsible-down,
3574
+ .animate-fd-collapsible-up {
3575
+ animation: none;
3576
+ }
3577
+ }
3578
+
3579
+ /* =====================================================
3580
+ MOTION UTILITIES (tokens: tokens.css). Enter = opacity + a few px + a little blur;
3581
+ exit = opacity only and ~30% faster; popovers grow from their trigger side.
3582
+ ===================================================== */
3583
+ @layer components {
3584
+ @keyframes yunui-enter {
3585
+ from {
3586
+ opacity: 0;
3587
+ transform: translateY(var(--enter-offset));
3588
+ filter: blur(var(--enter-blur));
3589
+ }
3590
+ }
3591
+ @keyframes yunui-exit {
3592
+ to {
3593
+ opacity: 0;
3594
+ }
3595
+ }
3596
+ @keyframes yunui-pop {
3597
+ from {
3598
+ opacity: 0;
3599
+ transform: scale(var(--pop-scale));
3600
+ }
3601
+ }
3602
+ .motion-enter {
3603
+ animation: yunui-enter var(--dur-base) var(--ease-out) backwards;
3604
+ }
3605
+ .motion-exit {
3606
+ animation: yunui-exit var(--dur-instant) var(--ease-in) forwards;
3607
+ }
3608
+ /* Origin-aware: Radix publishes the transform origin of whichever primitive it is. */
3609
+ .motion-pop {
3610
+ transform-origin: var(
3611
+ --radix-popover-content-transform-origin,
3612
+ var(
3613
+ --radix-dropdown-menu-content-transform-origin,
3614
+ var(--radix-select-content-transform-origin, var(--radix-tooltip-content-transform-origin, var(--motion-origin, center)))
3615
+ )
3616
+ );
3617
+ }
3618
+ .motion-pop:not([data-state="closed"]) {
3619
+ animation: yunui-pop var(--dur-fast) var(--ease-out) backwards;
3620
+ }
3621
+ .motion-pop[data-state="closed"] {
3622
+ animation: yunui-exit var(--dur-instant) var(--ease-in) forwards;
3623
+ }
3624
+ /* Disclosure: grid rows 0fr -> 1fr, so the height animates without measuring it. */
3625
+ .motion-collapse {
3626
+ display: grid;
3627
+ grid-template-rows: 0fr;
3628
+ opacity: 0;
3629
+ transition:
3630
+ grid-template-rows var(--dur-base) var(--ease-standard),
3631
+ opacity var(--dur-base) var(--ease-standard);
3632
+ }
3633
+ .motion-collapse > * {
3634
+ min-height: 0;
3635
+ overflow: hidden;
3636
+ }
3637
+ .motion-collapse:is([data-open="true"], [data-state="open"]) {
3638
+ grid-template-rows: 1fr;
3639
+ opacity: 1;
3640
+ }
3641
+ .motion-press {
3642
+ transition: transform var(--dur-instant) var(--ease-standard);
3643
+ }
3644
+ .motion-press:active:not(:disabled) {
3645
+ transform: scale(0.98);
3646
+ }
3647
+ /* Centered dialog: grows from the middle (its centring uses the separate `translate` property). */
3648
+ .yunui-dialog-motion {
3649
+ transform-origin: center;
3650
+ }
3651
+ .yunui-dialog-motion[data-state="open"] {
3652
+ animation: yunui-enter-pop var(--dur-base) var(--ease-out) backwards;
3653
+ }
3654
+ .yunui-dialog-motion[data-state="closed"] {
3655
+ animation: yunui-exit var(--dur-instant) var(--ease-in) forwards;
3656
+ }
3657
+ @keyframes yunui-enter-pop {
3658
+ from {
3659
+ opacity: 0;
3660
+ transform: scale(var(--pop-scale)) translateY(var(--enter-offset));
3661
+ filter: blur(var(--enter-blur));
3662
+ }
3663
+ }
3664
+ /* Radix accordion body: rows keyframe so Presence waits for the close to finish. */
3665
+ .yunui-rows-motion[data-state="open"] {
3666
+ animation: yunui-rows-open var(--dur-base) var(--ease-out);
3667
+ }
3668
+ .yunui-rows-motion[data-state="closed"] {
3669
+ animation: yunui-rows-close var(--dur-fast) var(--ease-in) forwards;
3670
+ }
3671
+ @keyframes yunui-rows-open {
3672
+ from {
3673
+ grid-template-rows: 0fr;
3674
+ opacity: 0;
3675
+ }
3676
+ }
3677
+ @keyframes yunui-rows-close {
3678
+ to {
3679
+ grid-template-rows: 0fr;
3680
+ opacity: 0;
3681
+ }
3682
+ }
3683
+ /* Radix / tw-animate enter and exit speeds come from one place. */
3684
+ .animate-in {
3685
+ --tw-duration: var(--dur-base);
3686
+ --tw-ease: var(--ease-out);
3687
+ }
3688
+ .animate-out {
3689
+ --tw-duration: var(--dur-instant);
3690
+ --tw-ease: var(--ease-in);
3691
+ }
3692
+ /* A sliding selection pill (see useSlidingIndicator): one element moves between items. */
3693
+ .yunui-slider-pill {
3694
+ position: absolute;
3695
+ left: 0;
3696
+ top: 0;
3697
+ pointer-events: none;
3698
+ transform: translate3d(var(--pill-x, 0px), var(--pill-y, 0px), 0);
3699
+ width: var(--pill-w, 0px);
3700
+ height: var(--pill-h, 0px);
3701
+ opacity: var(--pill-o, 0);
3702
+ transition:
3703
+ transform var(--dur-slow) var(--ease-standard),
3704
+ width var(--dur-slow) var(--ease-standard),
3705
+ height var(--dur-slow) var(--ease-standard),
3706
+ opacity var(--dur-fast) var(--ease-standard);
3707
+ }
3708
+ .yunui-slider-pill[data-ready="false"] {
3709
+ transition: none;
3710
+ }
3711
+ .yunui-slider-pill.is-nav-bg {
3712
+ border-radius: 12px;
3713
+ background: color-mix(in srgb, var(--text-primary) 6%, transparent);
3714
+ }
3715
+ .yunui-slider-pill.is-nav-underline::after {
3716
+ content: "";
3717
+ position: absolute;
3718
+ left: 50%;
3719
+ bottom: 0.34rem;
3720
+ width: 40%;
3721
+ height: 2.5px;
3722
+ transform: translateX(-50%);
3723
+ border-radius: 9999px;
3724
+ background: var(--text-primary);
3725
+ }
3726
+ [data-accent-source="brand"] .yunui-slider-pill.is-nav-underline::after {
3727
+ background: var(--brand-solid-strong);
3728
+ }
3729
+ /* The pill carries the active underline; the tab's own bar stays off. */
3730
+ .yunui-nav-tabs-slide .nav-tab.active::after {
3731
+ opacity: 0;
3732
+ width: 0;
3733
+ }
3734
+ /* MotionNumber: one column of digits per place, rolled by translating the strip. */
3735
+ .yunui-mn {
3736
+ display: inline-flex;
3737
+ align-items: baseline;
3738
+ white-space: pre;
3739
+ font-variant-numeric: tabular-nums;
3740
+ transition: width var(--dur-slow) var(--ease-standard);
3741
+ }
3742
+ .yunui-mn-col {
3743
+ display: inline-block;
3744
+ position: relative;
3745
+ overflow: hidden;
3746
+ height: 1lh;
3747
+ vertical-align: bottom;
3748
+ }
3749
+ .yunui-mn-col:has(.yunui-mn-strip[data-rolling="true"]) {
3750
+ mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
3751
+ }
3752
+ .yunui-mn-strip {
3753
+ display: block;
3754
+ transform: translateY(calc(var(--mn-digit, 0) * -1lh));
3755
+ transition:
3756
+ transform var(--dur-slow) var(--ease-out),
3757
+ filter var(--dur-slow) var(--ease-out);
3758
+ }
3759
+ .yunui-mn-strip[data-rolling="true"] {
3760
+ filter: blur(1.5px);
3761
+ }
3762
+ .yunui-mn-strip::before {
3763
+ content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9";
3764
+ display: block;
3765
+ white-space: pre;
3766
+ line-height: inherit;
3767
+ text-align: center;
3768
+ }
3769
+ .yunui-mn-glyph {
3770
+ display: inline-block;
3771
+ white-space: pre;
3772
+ }
3773
+ .yunui-mn-glyph::before {
3774
+ content: attr(data-c);
3775
+ }
3776
+ /* Streaming Markdown: the tail span restarts one of two identical keyframes per commit. */
3777
+ .yunui-chunk-a {
3778
+ animation: yunui-chunk-in var(--dur-fast) var(--ease-out) backwards;
3779
+ }
3780
+ .yunui-chunk-b {
3781
+ animation: yunui-chunk-in-b var(--dur-fast) var(--ease-out) backwards;
3782
+ }
3783
+ @keyframes yunui-chunk-in-b {
3784
+ from {
3785
+ opacity: 0;
3786
+ filter: blur(1.5px);
3787
+ }
3788
+ }
3789
+ [data-yunui-streaming="true"] > .leading-relaxed:last-child::after {
3790
+ content: "";
3791
+ display: inline-block;
3792
+ width: 2px;
3793
+ height: 1em;
3794
+ margin-left: 2px;
3795
+ vertical-align: text-bottom;
3796
+ border-radius: 9999px;
3797
+ background: var(--text-primary);
3798
+ animation: streaming-cursor 1.2s var(--ease-standard) infinite;
3799
+ }
3800
+ /* Streaming text: each newly arrived chunk fades in; the caret breathes. */
3801
+ .yunui-chunk-in {
3802
+ animation: yunui-chunk-in var(--dur-fast) var(--ease-out) backwards;
3803
+ }
3804
+ @keyframes yunui-chunk-in {
3805
+ from {
3806
+ opacity: 0;
3807
+ filter: blur(1.5px);
3808
+ }
3809
+ }
3810
+ }
3811
+
3812
+ /* View transitions (document.startViewTransition via useViewTransition). The helper sets
3813
+ html[data-yunui-vt] for the duration; without the API the change is just instant. */
3814
+ html[data-yunui-vt="theme"] *,
3815
+ html[data-yunui-vt="theme"] *::before,
3816
+ html[data-yunui-vt="theme"] *::after {
3817
+ transition: none !important;
3818
+ }
3819
+ html[data-yunui-vt]::view-transition-group(root),
3820
+ html[data-yunui-vt]::view-transition-group(yunui-page) {
3821
+ animation-duration: 0s;
3822
+ }
3823
+ /* Theme: the whole page cross-fades once. */
3824
+ html[data-yunui-vt="theme"]::view-transition-old(root),
3825
+ html[data-yunui-vt="theme"]::view-transition-new(root) {
3826
+ animation-duration: var(--dur-base);
3827
+ animation-timing-function: var(--ease-standard);
3828
+ mix-blend-mode: normal;
3829
+ }
3830
+ html[data-yunui-vt="theme"]::view-transition-old(root) {
3831
+ animation-name: yunui-vt-fade-out;
3832
+ }
3833
+ /* Page: only the element marked .yunui-vt-page changes (fast fade-out, soft entrance); chrome and
3834
+ live data around it keep running. */
3835
+ html[data-yunui-vt="page"] .yunui-vt-page {
3836
+ view-transition-name: yunui-page;
3837
+ }
3838
+ html[data-yunui-vt="page"]::view-transition-old(root),
3839
+ html[data-yunui-vt="page"]::view-transition-new(root) {
3840
+ animation: none;
3841
+ }
3842
+ html[data-yunui-vt="page"]::view-transition-old(yunui-page) {
3843
+ animation: yunui-vt-fade-out var(--dur-fast) var(--ease-in) both;
3844
+ }
3845
+ html[data-yunui-vt="page"]::view-transition-new(yunui-page) {
3846
+ animation: yunui-vt-in var(--dur-base) var(--ease-out) both;
3847
+ }
3848
+ @keyframes yunui-vt-fade-out {
3849
+ to {
3850
+ opacity: 0;
3851
+ }
3852
+ }
3853
+ @keyframes yunui-vt-in {
3854
+ from {
3855
+ opacity: 0;
3856
+ transform: translateY(var(--enter-offset));
3857
+ filter: blur(var(--enter-blur));
3858
+ }
3859
+ }
3860
+
3861
+ /* =====================================================
3862
+ TOUCH TARGETS
3863
+ On a phone a 28px segment or a 16px switch is hard to hit. The target grows to about 44px without moving
3864
+ anything: an invisible ::after reaches 8px past the control above and below (the sides are left alone, so
3865
+ neighbours in a row never steal each other's taps). Controls that are positioned by the host (absolute,
3866
+ fixed, sticky) and ones that clip their own overflow keep their size.
3867
+ ===================================================== */
3868
+ @media (pointer: coarse), (max-width: 639px) {
3869
+ :where(button, [role="button"], [role="tab"], [role="switch"], [role="checkbox"], [role="radio"], summary):not(
3870
+ .absolute,
3871
+ .fixed,
3872
+ .sticky,
3873
+ .overflow-hidden,
3874
+ [data-no-tap-target]
3875
+ ) {
3876
+ position: relative;
3877
+ }
3878
+ :where(button, [role="button"], [role="tab"], [role="switch"], [role="checkbox"], [role="radio"], summary):not(
3879
+ .absolute,
3880
+ .fixed,
3881
+ .sticky,
3882
+ .overflow-hidden,
3883
+ [data-no-tap-target]
3884
+ )::after {
3885
+ content: "";
3886
+ position: absolute;
3887
+ inset: -8px 0;
3888
+ }
3889
+ /* A 16px switch, box or summary needs more room than a 28px button to reach 44px. */
3890
+ :where([role="switch"], [role="checkbox"], [role="radio"], summary):not(.absolute, .fixed, .sticky, .overflow-hidden, [data-no-tap-target])::after {
3891
+ inset: -14px -6px;
3892
+ }
3893
+ }
3894
+
3895
+ /* =====================================================
3896
+ HIT AREA (explicit 24 px minimum on both axes)
3897
+ A control whose own box is smaller than 24 px (an 11 px close glyph, a 16 px switch) gets an
3898
+ invisible ::after centred on it, grown to 24 px per axis, at every pointer type. The TOUCH TARGETS
3899
+ block above is the generic coarse-pointer / phone enlargement (height only, 8 px). This utility is
3900
+ the explicit per-component guarantee for the case where that block does not run (desktop pointers
3901
+ wider than 639 px). Both rules are unlayered; :where() in the TOUCH TARGETS block has zero
3902
+ specificity, so `.hit-area::after` wins where both apply. No layout change: the element's box is
3903
+ untouched and the ::after is absolutely positioned.
3904
+ ===================================================== */
3905
+ .hit-area {
3906
+ position: relative;
3907
+ }
3908
+ .hit-area::after {
3909
+ content: "";
3910
+ position: absolute;
3911
+ left: 50%;
3912
+ top: 50%;
3913
+ width: max(100%, 24px);
3914
+ height: max(100%, 24px);
3915
+ transform: translate(-50%, -50%);
3916
+ }
3917
+
3918
+ /* =====================================================================================
3919
+ Analytics charts (MetricChart, ColumnChart, Sparkline readout).
3920
+ Categorical slots are the validated dataviz palette (scripts/validate_palette: adjacent
3921
+ pairs, light and dark); the order is the color-blind-safety mechanism, never reorder.
3922
+ Chrome (grid, axis, ink) is one step off the surface and recessive.
3923
+ ===================================================================================== */
3924
+ :root {
3925
+ --chart-1: #2a78d6;
3926
+ --chart-2: #eb6834;
3927
+ --chart-3: #1baf7a;
3928
+ --chart-4: #eda100;
3929
+ --chart-5: #e87ba4;
3930
+ --chart-6: #008300;
3931
+ --chart-7: #6250d6;
3932
+ --chart-8: #e34948;
3933
+ --chart-muted: #898781;
3934
+ --chart-surface: var(--bg-card, #fff);
3935
+ --chart-grid: color-mix(in srgb, var(--text-primary, #09090b) 8%, transparent);
3936
+ --chart-axis: color-mix(in srgb, var(--text-primary, #09090b) 18%, transparent);
3937
+ --chart-ink: var(--text-tertiary, #6b6b73);
3938
+ --chart-marker: color-mix(in srgb, var(--text-primary, #09090b) 38%, transparent);
3939
+ }
3940
+ .dark,
3941
+ [data-theme="dark"],
3942
+ .true-black,
3943
+ [data-theme="true-black"] {
3944
+ --chart-1: #3987e5;
3945
+ --chart-2: #d95926;
3946
+ --chart-3: #199e70;
3947
+ --chart-4: #c98500;
3948
+ --chart-5: #d55181;
3949
+ --chart-6: #008300;
3950
+ --chart-7: #9085e9;
3951
+ --chart-8: #e66767;
3952
+ --chart-muted: #898781;
3953
+ --chart-grid: color-mix(in srgb, var(--text-primary, #fafafa) 9%, transparent);
3954
+ --chart-axis: color-mix(in srgb, var(--text-primary, #fafafa) 20%, transparent);
3955
+ --chart-marker: color-mix(in srgb, var(--text-primary, #fafafa) 40%, transparent);
3956
+ }
3957
+ .yunui-metric {
3958
+ position: relative;
3959
+ min-width: 0;
3960
+ }
3961
+ .yunui-metric[data-live] [data-live-layer],
3962
+ .yunui-metric[data-live] [data-live-axis] {
3963
+ transform: translateX(calc(var(--live-shift, 0) * -1px));
3964
+ }
3965
+ @media (prefers-reduced-motion: reduce) {
3966
+ .yunui-metric[data-live] [data-live-layer],
3967
+ .yunui-metric[data-live] [data-live-axis] {
3968
+ transform: none;
3969
+ }
3970
+ }
3971
+ .yunui-metric-head {
3972
+ display: flex;
3973
+ align-items: center;
3974
+ justify-content: space-between;
3975
+ gap: 8px;
3976
+ min-height: 24px;
3977
+ margin-bottom: 6px;
3978
+ }
3979
+ .yunui-metric-legend {
3980
+ display: flex;
3981
+ flex-wrap: wrap;
3982
+ gap: 2px 4px;
3983
+ margin: 0;
3984
+ padding: 0;
3985
+ list-style: none;
3986
+ }
3987
+ .yunui-metric-legend-item {
3988
+ display: inline-flex;
3989
+ align-items: center;
3990
+ gap: 6px;
3991
+ padding: 2px 6px;
3992
+ border-radius: 6px;
3993
+ font-size: 12px;
3994
+ line-height: 16px;
3995
+ color: var(--text-secondary, #52525b);
3996
+ background: transparent;
3997
+ border: 0;
3998
+ cursor: pointer;
3999
+ transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), opacity var(--dur-fast) var(--ease-standard);
4000
+ }
4001
+ .yunui-metric-legend-item[data-off] {
4002
+ opacity: 0.45;
4003
+ }
4004
+ @media (hover: hover) {
4005
+ .yunui-metric-legend-item:hover {
4006
+ background: var(--bg-hover, rgba(127, 127, 127, 0.1));
4007
+ color: var(--text-primary, inherit);
4008
+ }
4009
+ }
4010
+ .yunui-metric-legend-item:focus-visible,
4011
+ .yunui-metric-tool:focus-visible {
4012
+ outline: 2px solid var(--color-accent, currentColor);
4013
+ outline-offset: 1px;
4014
+ }
4015
+ .yunui-metric-key {
4016
+ display: inline-block;
4017
+ width: 12px;
4018
+ height: 3px;
4019
+ border-radius: 2px;
4020
+ flex: none;
4021
+ }
4022
+ .yunui-metric-tools {
4023
+ display: flex;
4024
+ align-items: center;
4025
+ gap: 2px;
4026
+ margin-left: auto;
4027
+ color: var(--text-tertiary, #6b6b73);
4028
+ }
4029
+ .yunui-metric-tool {
4030
+ display: inline-flex;
4031
+ align-items: center;
4032
+ justify-content: center;
4033
+ min-width: 24px;
4034
+ height: 24px;
4035
+ padding: 0 4px;
4036
+ border: 0;
4037
+ border-radius: 6px;
4038
+ background: transparent;
4039
+ color: inherit;
4040
+ cursor: pointer;
4041
+ font-size: 12px;
4042
+ line-height: 16px;
4043
+ transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
4044
+ }
4045
+ .yunui-metric-tool-text {
4046
+ padding: 0 6px;
4047
+ }
4048
+ .yunui-metric-tool[aria-pressed="true"] {
4049
+ color: var(--text-primary, inherit);
4050
+ background: var(--accent-muted, rgba(127, 127, 127, 0.16));
4051
+ }
4052
+ @media (hover: hover) {
4053
+ .yunui-metric-tool:hover {
4054
+ color: var(--text-primary, inherit);
4055
+ background: var(--bg-hover, rgba(127, 127, 127, 0.1));
4056
+ }
4057
+ }
4058
+ .yunui-metric-plot {
4059
+ position: relative;
4060
+ outline: none;
4061
+ user-select: none;
4062
+ -webkit-user-select: none;
4063
+ }
4064
+ .yunui-metric-plot:focus-visible {
4065
+ outline: 2px solid var(--color-accent, currentColor);
4066
+ outline-offset: 2px;
4067
+ border-radius: 4px;
4068
+ }
4069
+ .yunui-metric-empty {
4070
+ position: absolute;
4071
+ display: flex;
4072
+ align-items: center;
4073
+ justify-content: center;
4074
+ font-size: 12px;
4075
+ color: var(--text-tertiary, #6b6b73);
4076
+ pointer-events: none;
4077
+ }
4078
+ .yunui-metric-tip {
4079
+ position: absolute;
4080
+ z-index: 5;
4081
+ min-width: 132px;
4082
+ max-width: 260px;
4083
+ padding: 8px 10px;
4084
+ border-radius: 8px;
4085
+ border: 1px solid var(--border-subtle, rgba(127, 127, 127, 0.25));
4086
+ background: var(--bg-elevated, var(--chart-surface));
4087
+ box-shadow: var(--shadow-md, 0 4px 12px rgb(0 0 0 / 0.12));
4088
+ pointer-events: none;
4089
+ font-size: 12px;
4090
+ line-height: 16px;
4091
+ animation: yunui-metric-tip-in var(--dur-instant) var(--ease-standard) both;
4092
+ }
4093
+ @keyframes yunui-metric-tip-in {
4094
+ from {
4095
+ opacity: 0;
4096
+ }
4097
+ to {
4098
+ opacity: 1;
4099
+ }
4100
+ }
4101
+ .yunui-metric-tip-head {
4102
+ margin-bottom: 4px;
4103
+ color: var(--text-tertiary, #6b6b73);
4104
+ font-size: 12px;
4105
+ }
4106
+ .yunui-metric-tip-row {
4107
+ display: flex;
4108
+ align-items: center;
4109
+ gap: 8px;
4110
+ padding: 1px 0;
4111
+ opacity: 0.86;
4112
+ }
4113
+ .yunui-metric-tip-row[data-focus] {
4114
+ opacity: 1;
4115
+ }
4116
+ .yunui-metric-tip-value {
4117
+ min-width: 3.5ch;
4118
+ font-weight: 600;
4119
+ color: var(--text-primary, inherit);
4120
+ font-variant-numeric: tabular-nums;
4121
+ }
4122
+ .yunui-metric-tip-label {
4123
+ color: var(--text-secondary, #52525b);
4124
+ }
4125
+ .yunui-metric-tip-raw {
4126
+ margin-left: auto;
4127
+ padding-left: 6px;
4128
+ color: var(--text-tertiary, #6b6b73);
4129
+ font-size: 12px;
4130
+ }
4131
+ .yunui-metric-tip-marker {
4132
+ margin-top: 4px;
4133
+ padding-top: 4px;
4134
+ border-top: 1px solid var(--border-subtle, rgba(127, 127, 127, 0.25));
4135
+ color: var(--text-secondary, #52525b);
4136
+ }
4137
+ .yunui-metric-empty > span {
4138
+ padding: 2px 10px;
4139
+ border-radius: 6px;
4140
+ background: var(--chart-surface);
4141
+ }
4142
+ .yunui-metric-sr {
4143
+ position: absolute;
4144
+ width: 1px;
4145
+ height: 1px;
4146
+ margin: -1px;
4147
+ padding: 0;
4148
+ overflow: hidden;
4149
+ clip: rect(0, 0, 0, 0);
4150
+ white-space: nowrap;
4151
+ border: 0;
4152
+ }
4153
+ .yunui-column-bar {
4154
+ transition: opacity var(--dur-fast) var(--ease-standard);
4155
+ }
4156
+ @media (prefers-reduced-motion: reduce) {
4157
+ .yunui-metric-tip {
4158
+ animation: none;
4159
+ }
4160
+ }
4161
+
4162
+ /* ---------------------------------------------------------------------
4163
+ * Agent interaction motion — shared by ToolCall, ThinkingBlock,
4164
+ * AgentRunStatus, ChatMessageList and the composer. Everything animates
4165
+ * transform / opacity (and grid rows for height) on the critically damped
4166
+ * spring or short eases; the global reduced-motion reset above makes each of
4167
+ * them an instant change while keeping the end state.
4168
+ * ------------------------------------------------------------------- */
4169
+
4170
+ /* Height disclosure: the panel follows its content on the spring, no overshoot. */
4171
+ .yunui-disclosure {
4172
+ display: grid;
4173
+ grid-template-rows: 0fr;
4174
+ opacity: 0;
4175
+ transition:
4176
+ grid-template-rows var(--dur-spring) var(--ease-spring),
4177
+ opacity var(--dur-fast) var(--ease-exit);
4178
+ }
4179
+ .yunui-disclosure[data-open="true"] {
4180
+ grid-template-rows: 1fr;
4181
+ opacity: 1;
4182
+ transition:
4183
+ grid-template-rows var(--dur-spring) var(--ease-spring),
4184
+ opacity var(--dur-base) var(--ease-out);
4185
+ }
4186
+ .yunui-disclosure > * {
4187
+ min-height: 0;
4188
+ overflow: hidden;
4189
+ }
4190
+
4191
+ /* A label that changes: the new one settles in from 2px below over 160ms. */
4192
+ .yunui-swap-in {
4193
+ animation: yunui-swap-in var(--dur-base) var(--ease-out) backwards;
4194
+ }
4195
+ @keyframes yunui-swap-in {
4196
+ from {
4197
+ opacity: 0;
4198
+ transform: translateY(2px);
4199
+ }
4200
+ }
4201
+
4202
+ /* A live activity line: the old text leaves upward, the new one rolls in from below. */
4203
+ .yunui-roll {
4204
+ position: relative;
4205
+ display: inline-grid;
4206
+ min-width: 0;
4207
+ overflow: hidden;
4208
+ vertical-align: bottom;
4209
+ }
4210
+ .yunui-roll > * {
4211
+ grid-area: 1 / 1;
4212
+ min-width: 0;
4213
+ }
4214
+ .yunui-roll-in {
4215
+ animation: yunui-roll-in var(--dur-roll) var(--ease-out) backwards;
4216
+ }
4217
+ .yunui-roll-out {
4218
+ pointer-events: none;
4219
+ animation: yunui-roll-out var(--dur-roll) var(--ease-exit) forwards;
4220
+ }
4221
+ @keyframes yunui-roll-in {
4222
+ from {
4223
+ opacity: 0;
4224
+ transform: translateY(70%);
4225
+ }
4226
+ }
4227
+ @keyframes yunui-roll-out {
4228
+ to {
4229
+ opacity: 0;
4230
+ transform: translateY(-70%);
4231
+ }
4232
+ }
4233
+
4234
+ /* Rows of an opened group settle in 20ms apart (--i), 6px of travel. */
4235
+ .yunui-stagger-in {
4236
+ animation: yunui-stagger-in var(--dur-slow) var(--ease-out) backwards;
4237
+ animation-delay: calc(var(--i, 0) * 20ms);
4238
+ }
4239
+ @keyframes yunui-stagger-in {
4240
+ from {
4241
+ opacity: 0;
4242
+ transform: translateY(6px);
4243
+ }
4244
+ }
4245
+
4246
+ /* Status icons trade places with a quick scale and fade. */
4247
+ .yunui-icon-swap {
4248
+ display: inline-flex;
4249
+ animation: yunui-icon-swap var(--dur-base) var(--ease-out) backwards;
4250
+ }
4251
+ @keyframes yunui-icon-swap {
4252
+ from {
4253
+ opacity: 0;
4254
+ transform: scale(0.6);
4255
+ }
4256
+ }
4257
+
4258
+ /* A success check draws its stroke once. */
4259
+ .yunui-check-draw path {
4260
+ stroke-dasharray: 24;
4261
+ stroke-dashoffset: 0;
4262
+ animation: yunui-check-draw var(--dur-slow) var(--ease-out) backwards;
4263
+ }
4264
+ @keyframes yunui-check-draw {
4265
+ from {
4266
+ stroke-dashoffset: 24;
4267
+ }
4268
+ }
4269
+
4270
+ /* Composer progress ring: a thin arc fills with the reply, set via --p (0..1). */
4271
+ .yunui-progress-ring {
4272
+ position: absolute;
4273
+ inset: -3px;
4274
+ border-radius: inherit;
4275
+ pointer-events: none;
4276
+ background: conic-gradient(var(--primary, currentColor) calc(var(--p, 0) * 360deg), transparent 0);
4277
+ -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
4278
+ mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
4279
+ transition: opacity var(--dur-base) var(--ease-standard);
4280
+ }
4281
+
4282
+ /* Text shimmer settles to solid text when work stops instead of snapping. */
4283
+ .yunui-text-shimmer {
4284
+ transition: color var(--dur-settle) var(--ease-standard);
4285
+ }
4286
+ .yunui-text-shimmer[data-active="false"] {
4287
+ color: var(--yunui-text-shimmer-settled, var(--text-primary));
4288
+ }