For AI agents: the complete documentation index is available at https://a3s-lab.github.io/UI/v0.4.0/llms.txt, the full documentation bundle is available at https://a3s-lab.github.io/UI/v0.4.0/llms-full.txt, and this page is available as Markdown at https://a3s-lab.github.io/UI/v0.4.0/foundations/color.md.

颜色

A3S UI 以中性色承担结构,以 A3S OS 蓝承担主操作、焦点、链接与选择;更深的标志蓝用于品牌身份。绿色、琥珀色与红色只表达结果,不能替代文本、图标或结构。

实时预览
画布--background
弱化表面--muted
A3S 主操作--primary
蓝色焦点 / 选择--a3s-blue

语义令牌

角色浅色深色用途
--background#ffffff#0d0d0f应用画布
--foreground#111113#f4f4f5主要内容
--card#ffffff#151518稳定与抬升表面
--muted#f7f7f8#19191d弱化表面
--accent#eef4ff#17223b选择或强调表面
--a3s-panel-strong#eeeeef#26262b激活表面
--muted-foreground#52525b#b4b4bc辅助文本
--a3s-subtle#71717a#888891非关键注释
--border#dedee1#333338控件与浮层边界
--input#c9c9ce#45454b强边界
--primary#1456f0#4380f9默认主操作
--ring / --a3s-blue#1456f0#4380f9焦点、链接与选择
--a3s-brand-blue#243a9a#7aa2f7A3S 身份与信息

状态保留色

实时预览
焦点 / 选择成功警告危险

浅色主题中的成功、警告和危险值分别是 #16845b、#a86412 与 #c93d45;深色主题分别是 #57c795、#e7ad55 与 #ef7a82。普通卡片、导航和工具栏不使用这些状态色装饰。

.selection-region {
  --ring: var(--a3s-blue);
}

参数

主题切换通过 <html> 上的 dark 类完成。应用可以在 :root、.dark 或局部产品容器中覆盖语义令牌,但必须成组映射主操作、悬停、焦点、选择表面和前景色。紫罗兰等可选强调色不会替代默认 A3S OS 蓝契约,也不会改写语义状态色。