Đã biết mình cần gì? Tra ở đây. Mỗi token có biến CSS, giá trị và công dụng. Chưa chắc token nào phù hợp? Hãy bắt đầu từ trang kiểu dáng, như Cách dùng màu hay Khoảng cách, nơi mỗi token được minh họa khi dùng.
Cách đọc bảng
- Token là biến CSS bạn viết trong code, như
--bh-color-text-subtle. - Giá trị là thứ token trỏ tới. Khi token trỏ tới token khác, giá trị cuối cùng hiện ở dưới. Token đổi giá trị ở giao diện tối hoặc cho chữ tiếng Việt cũng hiện các giá trị đó.
- Token theo nhóm là role token cho một loại phần tử, như card hay control. Mỗi nhóm liệt kê chúng sau các bậc của thang. Hãy dùng chúng trước khi dùng tới một bậc.
Màu sắc
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-color-brand-yellow | #fcb017 | Vàng thương hiệu. Logo, điểm nhấn, và thanh đánh dấu trang hiện tại ở chế độ tối (chế độ sáng dùng color.yellow.9). Không bao giờ dùng cho chữ hay icon trên nền sáng (1.85:1 trên nền trắng). |
--bh-color-brand-graphite | #2b2a28 | Graphite thương hiệu. Chữ và nút chính. |
--bh-color-brand-white | #ffffff | Trắng thương hiệu. |
--bh-color-static-white | #ffffff | Trắng ở cả hai giao diện. text.on-bold và icon.on-bold chỉ dùng nó ở chế độ sáng; ở chế độ tối chúng dùng graphite 1. |
--bh-color-static-black | #000000 | Đen ở cả hai giao diện. |
--bh-color-graphite-1 | #fdfdfcTối: #181717 | Nền ứng dụng. |
--bh-color-graphite-2 | #f1f1f0Tối: #201f1f | Nền nhạt: đầu bảng, vùng tĩnh. |
--bh-color-graphite-3 | #e5e5e4Tối: #282827 | Nền component khi nghỉ. |
--bh-color-graphite-4 | #d9d9d8Tối: #31302f | Nền component khi rê chuột. |
--bh-color-graphite-5 | #cdcccbTối: #393937 | Nền component khi nhấn hoặc đã chọn. |
--bh-color-graphite-6 | #bdbcbbTối: #454443 | Viền nhạt: đường chia, card. |
--bh-color-graphite-7 | #aaa9a8Tối: #555452 | Viền của phần tử tương tác. |
--bh-color-graphite-8 | #949390Tối: #6b6a67 | Viền đậm. Chữ và icon vô hiệu (text.disabled, icon.disabled). |
--bh-color-graphite-9 | #7b7976Tối: #878682 | Cạnh của control (border.bold): 3:1 trên mọi nền trung tính, kể cả dòng đã chọn. |
--bh-color-graphite-10 | #5f5e5bTối: #a8a6a3 | Chữ cấp ba (text.subtlest) và icon phụ (icon.subtle). Nút chính khi nhấn. |
--bh-color-graphite-11 | #42413fTối: #cdccc9 | Chữ phụ (text.subtle) và icon mặc định. Nút chính khi rê chuột. |
--bh-color-graphite-12 | #2b2a28Tối: #eeeeed | Chữ tương phản cao và nút chính. Ở giao diện sáng chính là màu graphite thương hiệu. |
--bh-color-graphite-alpha-1 | #00000000Tối: #ffffff00 | Graphite 1, trong suốt. |
--bh-color-graphite-alpha-2 | #0000000cTối: #ffffff09 | Graphite 2, trong suốt. |
--bh-color-graphite-alpha-3 | #00000018Tối: #ffffff12 | Graphite 3, trong suốt. |
--bh-color-graphite-alpha-4 | #00000024Tối: #ffffff1a | Graphite 4, trong suốt. |
--bh-color-graphite-alpha-5 | #00000031Tối: #ffffff24 | Graphite 5, trong suốt. |
--bh-color-graphite-alpha-6 | #00000041Tối: #ffffff31 | Graphite 6, trong suốt. |
--bh-color-graphite-alpha-7 | #00000054Tối: #ffffff42 | Graphite 7, trong suốt. |
--bh-color-graphite-alpha-8 | #0000006bTối: #ffffff59 | Graphite 8, trong suốt. |
--bh-color-graphite-alpha-9 | #00000085Tối: #ffffff78 | Graphite 9, trong suốt. |
--bh-color-graphite-alpha-10 | #000000a1Tối: #ffffff9c | Graphite 10, trong suốt. |
--bh-color-graphite-alpha-11 | #000000bdTối: #ffffffc6 | Graphite 11, trong suốt. |
--bh-color-graphite-alpha-12 | #000000d4Tối: #ffffffeb | Graphite 12, trong suốt. |
--bh-color-yellow-1 | #fefdf4Tối: #17130d | Nền ứng dụng. |
--bh-color-yellow-2 | #fff9ddTối: #1d170f | Nền nhạt: đầu bảng, vùng tĩnh. |
--bh-color-yellow-3 | #fff1bdTối: #32210a | Nền component khi nghỉ. |
--bh-color-yellow-4 | #ffe59cTối: #422902 | Nền component khi rê chuột. |
--bh-color-yellow-5 | #ffd87cTối: #513304 | Nền component khi nhấn hoặc đã chọn. |
--bh-color-yellow-6 | #ffc757Tối: #61400c | Viền nhạt: đường chia, card. |
--bh-color-yellow-7 | #fcb017Tối: #74501c | Viền của phần tử tương tác. |
--bh-color-yellow-8 | #d68b00Tối: #9a6613 | Viền đậm. |
--bh-color-yellow-9 | #a96700Tối: #bd7e1b | Nền đặc. |
--bh-color-yellow-10 | #905600Tối: #db9517 | Nền đặc khi rê chuột. |
--bh-color-yellow-11 | #764400Tối: #fcb017 | Chữ tương phản thấp. |
--bh-color-yellow-12 | #4a3015Tối: #f2dba4 | Chữ tương phản cao. |
--bh-color-blue-1 | #fbfdffTối: #0d1520 | Nền ứng dụng. |
--bh-color-blue-2 | #f4faffTối: #111927 | Nền nhạt: đầu bảng, vùng tĩnh. |
--bh-color-blue-3 | #e6f4feTối: #0d2847 | Nền component khi nghỉ. |
--bh-color-blue-4 | #d5efffTối: #003362 | Nền component khi rê chuột. |
--bh-color-blue-5 | #c2e5ffTối: #004074 | Nền component khi nhấn hoặc đã chọn. |
--bh-color-blue-6 | #acd8fcTối: #104d87 | Viền nhạt: đường chia, card. |
--bh-color-blue-7 | #8ec8f6Tối: #205d9e | Viền của phần tử tương tác. |
--bh-color-blue-8 | #52a1e6Tối: #1b6fc5 | Viền đậm. |
--bh-color-blue-9 | #0077d5Tối: #0088f1 | Nền đặc. |
--bh-color-blue-10 | #0064b5Tối: #3599fa | Nền đặc khi rê chuột. |
--bh-color-blue-11 | #005195Tối: #6bb3fa | Chữ tương phản thấp. |
--bh-color-blue-12 | #113264Tối: #b8dcf5 | Chữ tương phản cao. |
--bh-color-green-1 | #fbfefcTối: #0e1512 | Nền ứng dụng. |
--bh-color-green-2 | #f4fbf6Tối: #121b17 | Nền nhạt: đầu bảng, vùng tĩnh. |
--bh-color-green-3 | #e6f6ebTối: #132d21 | Nền component khi nghỉ. |
--bh-color-green-4 | #d6f1dfTối: #113b29 | Nền component khi rê chuột. |
--bh-color-green-5 | #c4e8d1Tối: #174933 | Nền component khi nhấn hoặc đã chọn. |
--bh-color-green-6 | #adddc0Tối: #20573e | Viền nhạt: đường chia, card. |
--bh-color-green-7 | #8eceaaTối: #28684a | Viền của phần tử tương tác. |
--bh-color-green-8 | #51ac7dTối: #207d54 | Viền đậm. |
--bh-color-green-9 | #008753Tối: #1f9962 | Nền đặc. |
--bh-color-green-10 | #007246Tối: #37a971 | Nền đặc khi rê chuột. |
--bh-color-green-11 | #005c3aTối: #5ec18a | Chữ tương phản thấp. |
--bh-color-green-12 | #193b2dTối: #a6e5c0 | Chữ tương phản cao. |
--bh-color-orange-1 | #fefcfbTối: #17120e | Nền ứng dụng. |
--bh-color-orange-2 | #fff7edTối: #1e160f | Nền nhạt: đầu bảng, vùng tĩnh. |
--bh-color-orange-3 | #ffefd6Tối: #331e0b | Nền component khi nghỉ. |
--bh-color-orange-4 | #ffdfb5Tối: #462100 | Nền component khi rê chuột. |
--bh-color-orange-5 | #ffd19aTối: #562800 | Nền component khi nhấn hoặc đã chọn. |
--bh-color-orange-6 | #ffc182Tối: #66350c | Viền nhạt: đường chia, card. |
--bh-color-orange-7 | #f5ae73Tối: #7e451d | Viền của phần tử tương tác. |
--bh-color-orange-8 | #df8547Tối: #ab5315 | Viền đậm. |
--bh-color-orange-9 | #ba4e00Tối: #db6200 | Nền đặc. |
--bh-color-orange-10 | #a74500Tối: #ef7200 | Nền đặc khi rê chuột. |
--bh-color-orange-11 | #8a3600Tối: #f5974e | Chữ tương phản thấp. |
--bh-color-orange-12 | #582d1dTối: #f1d2b4 | Chữ tương phản cao. |
--bh-color-red-1 | #fffcfcTối: #191110 | Nền ứng dụng. |
--bh-color-red-2 | #fff7f6Tối: #201312 | Nền nhạt: đầu bảng, vùng tĩnh. |
--bh-color-red-3 | #feebe9Tối: #3b1310 | Nền component khi nghỉ. |
--bh-color-red-4 | #ffdbd7Tối: #50100f | Nền component khi rê chuột. |
--bh-color-red-5 | #ffcec8Tối: #611716 | Nền component khi nhấn hoặc đã chọn. |
--bh-color-red-6 | #fdbeb7Tối: #722421 | Viền nhạt: đường chia, card. |
--bh-color-red-7 | #f4aaa2Tối: #8c3430 | Viền của phần tử tương tác. |
--bh-color-red-8 | #eb7a71Tối: #bc403b | Viền đậm. |
--bh-color-red-9 | #d83b39Tối: #ef4c48 | Nền đặc. |
--bh-color-red-10 | #ba2d2dTối: #ff615a | Nền đặc khi rê chuột. |
--bh-color-red-11 | #9b1e20Tối: #ff8e84 | Chữ tương phản thấp. |
--bh-color-red-12 | #641817Tối: #facdc8 | Chữ tương phản cao. |
--bh-color-text | {color.graphite.12}#2b2a28Tối: #eeeeed | Chữ mặc định. |
--bh-color-text-subtle | {color.graphite.11}#42413fTối: #cdccc9 | Chữ phụ: mô tả, cột phụ của bảng, điều hướng. |
--bh-color-text-subtlest | {color.graphite.10}#5f5e5bTối: #a8a6a3 | Chữ cấp ba: thông tin phụ, mốc thời gian, placeholder, chữ hướng dẫn, breadcrumb. Đạt 4.5:1 nhưng không đạt 7:1, nên không bao giờ dùng cho chữ nội dung. |
--bh-color-text-disabled | {color.graphite.8}#949390Tối: #6b6a67 | Chữ của control vô hiệu. Được miễn yêu cầu tương phản (WCAG 1.4.3). |
--bh-color-text-inverse | {color.graphite.1}#fdfdfcTối: #181717 | Chữ trên background.neutral.bold và surface.inverse. |
--bh-color-text-on-bold | {color.static.white}#ffffffTối: {color.graphite.1} → #181717 | Chữ trên nền trạng thái đặc (background.*.bold): trắng ở giao diện sáng, graphite 1 ở giao diện tối. |
--bh-color-text-on-brand | {color.brand.graphite}#2b2a28 | Chữ trên nền vàng thương hiệu (7.76:1). |
--bh-color-text-danger | {color.red.11}#9b1e20Tối: #ff8e84 | Chữ nguy hiểm. |
--bh-color-text-warning | {color.orange.11}#8a3600Tối: #f5974e | Chữ cảnh báo. |
--bh-color-text-success | {color.green.11}#005c3aTối: #5ec18a | Chữ thành công. |
--bh-color-text-info | {color.blue.11}#005195Tối: #6bb3fa | Chữ thông tin. |
--bh-color-icon | {color.graphite.11}#42413fTối: #cdccc9 | Màu icon mặc định. |
--bh-color-icon-subtle | {color.graphite.10}#5f5e5bTối: #a8a6a3 | Icon phụ, cạnh text.subtle hoặc text.subtlest. |
--bh-color-icon-disabled | {color.graphite.8}#949390Tối: #6b6a67 | Icon của control vô hiệu. |
--bh-color-icon-inverse | {color.graphite.1}#fdfdfcTối: #181717 | Icon trên background.neutral.bold và surface.inverse. |
--bh-color-icon-on-bold | {color.static.white}#ffffffTối: {color.graphite.1} → #181717 | Icon trên nền trạng thái đặc. |
--bh-color-icon-danger | {color.red.11}#9b1e20Tối: #ff8e84 | Icon nguy hiểm. |
--bh-color-icon-warning | {color.orange.11}#8a3600Tối: #f5974e | Icon cảnh báo. |
--bh-color-icon-success | {color.green.11}#005c3aTối: #5ec18a | Icon thành công. |
--bh-color-icon-info | {color.blue.11}#005195Tối: #6bb3fa | Icon thông tin. |
--bh-color-link | {color.blue.11}#005195Tối: #6bb3fa | Chữ liên kết. |
--bh-color-link-hover | {color.blue.12}#113264Tối: #b8dcf5 | Liên kết khi rê chuột. |
--bh-color-background-primary | {color.background.neutral.bold}#2b2a28Tối: #eeeeed | Hành động chính: nút chính. Trỏ tới background.neutral.bold, nên muốn đổi màu chính chỉ cần sửa một chỗ ở đây. |
--bh-color-background-primary-hover | {color.background.neutral.bold.hover}#42413fTối: #cdccc9 | Hành động chính khi hover. |
--bh-color-background-primary-pressed | {color.background.neutral.bold.pressed}#5f5e5bTối: #a8a6a3 | Hành động chính khi nhấn. |
--bh-color-background-neutral | {color.graphite.2}#f1f1f0Tối: {color.graphite.3} → #282827 | Nền trung tính khi nghỉ: nút mặc định, tag, ô nhập trên bề mặt nhạt. |
--bh-color-background-neutral-hover | {color.graphite.3}#e5e5e4Tối: {color.graphite.4} → #31302f | Nền trung tính khi rê chuột. |
--bh-color-background-neutral-pressed | {color.graphite.4}#d9d9d8Tối: {color.graphite.5} → #393937 | Nền trung tính khi nhấn. |
--bh-color-background-neutral-subtle | transparent | Trong suốt khi nghỉ: dòng bảng, mục menu, nút ghost. |
--bh-color-background-neutral-subtle-hover | {color.graphite-alpha.2}#0000000cTối: {color.graphite-alpha.2} → #ffffff09 | Dòng, mục menu hoặc nút ghost khi rê chuột. Nhạt hơn trạng thái đã chọn, để dòng đang rê chuột không bao giờ trông như đã chọn. |
--bh-color-background-neutral-subtle-pressed | {color.graphite-alpha.3}#00000018Tối: {color.graphite-alpha.3} → #ffffff12 | Dòng, mục menu hoặc nút ghost khi nhấn. Trong suốt, như khi hover. |
--bh-color-background-neutral-bold | {color.graphite.12}#2b2a28Tối: #eeeeed | Nút chính. Graphite ở giao diện sáng; chuyển sang sáng ở giao diện tối, để vẫn là phần tử nổi bật nhất. |
--bh-color-background-neutral-bold-hover | {color.graphite.11}#42413fTối: #cdccc9 | Nút chính khi rê chuột: lùi một bậc so với graphite 12, vì đó là bậc cuối. |
--bh-color-background-neutral-bold-pressed | {color.graphite.10}#5f5e5bTối: #a8a6a3 | Nút chính khi nhấn: lùi hai bậc so với graphite 12. |
--bh-color-background-neutral-transparent-hover | {color.graphite-alpha.3}#00000018Tối: {color.graphite-alpha.3} → #ffffff12 | Control không có nền lúc nghỉ (nút Subtle và Default) khi hover. Đậm hơn color.background.neutral.subtle.hover một bậc; dòng bảng và mục menu dùng mức nhạt hơn để dòng đang hover không trông như đang chọn. Trong suốt, nên thấy được trên mọi nền. |
--bh-color-background-neutral-transparent-pressed | {color.graphite-alpha.4}#00000024Tối: {color.graphite-alpha.4} → #ffffff1a | Control không có nền lúc nghỉ khi nhấn. Trong suốt. |
--bh-color-background-selected | {color.graphite.3}#e5e5e4Tối: {color.graphite.4} → #31302f | Dòng hoặc mục đã chọn. Luôn thêm một dấu hiệu thứ hai: thanh vàng, dấu tích hoặc chữ đậm. |
--bh-color-background-selected-hover | {color.graphite.4}#d9d9d8Tối: {color.graphite.5} → #393937 | Dòng hoặc mục đã chọn khi rê chuột. |
--bh-color-background-disabled | {color.graphite.2}#f1f1f0Tối: {color.graphite.3} → #282827 | Nền của control vô hiệu. |
--bh-color-background-brand-subtle | {color.yellow.2}#fff9ddTối: #1d170f | Bề mặt và ghi chú thương hiệu. |
--bh-color-background-brand-bold | {color.brand.yellow}#fcb017 | Nền vàng thương hiệu. Chữ graphite ở trên (text.on-brand). Không có nút màu vàng. |
--bh-color-background-danger-subtle | {color.red.3}#feebe9Tối: #3b1310 | Nền panel hoặc nhãn nguy hiểm. |
--bh-color-background-danger-subtle-hover | {color.red.4}#ffdbd7Tối: #50100f | Nền nguy hiểm nhạt khi rê chuột. |
--bh-color-background-danger-subtle-pressed | {color.red.5}#ffcec8Tối: #611716 | Nền nguy hiểm nhạt khi nhấn. |
--bh-color-background-danger | {color.red.5}#ffcec8Tối: #611716 | Nền nguy hiểm, đậm hơn subtle. |
--bh-color-background-danger-bold | {color.red.9}#d83b39Tối: #ef4c48 | Nền nguy hiểm đặc: nhãn trạng thái, nút nguy hiểm. Chữ và icon ở trên dùng text.on-bold / icon.on-bold (trắng ở giao diện sáng, graphite 1 ở giao diện tối). |
--bh-color-background-danger-bold-hover | {color.red.10}#ba2d2dTối: #ff615a | Nền nguy hiểm đặc khi rê chuột. |
--bh-color-background-danger-bold-pressed | {color.red.11}#9b1e20Tối: #ff8e84 | Nền nguy hiểm đặc khi nhấn. |
--bh-color-background-warning-subtle | {color.orange.3}#ffefd6Tối: #331e0b | Nền panel hoặc nhãn cảnh báo. |
--bh-color-background-warning-subtle-hover | {color.orange.4}#ffdfb5Tối: #462100 | Nền cảnh báo nhạt khi rê chuột. |
--bh-color-background-warning-subtle-pressed | {color.orange.5}#ffd19aTối: #562800 | Nền cảnh báo nhạt khi nhấn. |
--bh-color-background-warning | {color.orange.5}#ffd19aTối: #562800 | Nền cảnh báo, đậm hơn subtle. |
--bh-color-background-warning-bold | {color.orange.9}#ba4e00Tối: #db6200 | Nền cảnh báo đặc: nhãn trạng thái, badge. Chữ và icon ở trên dùng text.on-bold / icon.on-bold (trắng ở giao diện sáng, graphite 1 ở giao diện tối). |
--bh-color-background-warning-bold-hover | {color.orange.10}#a74500Tối: #ef7200 | Nền cảnh báo đặc khi rê chuột. |
--bh-color-background-warning-bold-pressed | {color.orange.11}#8a3600Tối: #f5974e | Nền cảnh báo đặc khi nhấn. |
--bh-color-background-success-subtle | {color.green.3}#e6f6ebTối: #132d21 | Nền panel hoặc nhãn thành công. |
--bh-color-background-success-subtle-hover | {color.green.4}#d6f1dfTối: #113b29 | Nền thành công nhạt khi rê chuột. |
--bh-color-background-success-subtle-pressed | {color.green.5}#c4e8d1Tối: #174933 | Nền thành công nhạt khi nhấn. |
--bh-color-background-success | {color.green.5}#c4e8d1Tối: #174933 | Nền thành công, đậm hơn subtle. |
--bh-color-background-success-bold | {color.green.9}#008753Tối: #1f9962 | Nền thành công đặc: nhãn trạng thái, badge. Chữ và icon ở trên dùng text.on-bold / icon.on-bold (trắng ở giao diện sáng, graphite 1 ở giao diện tối). |
--bh-color-background-success-bold-hover | {color.green.10}#007246Tối: #37a971 | Nền thành công đặc khi rê chuột. |
--bh-color-background-success-bold-pressed | {color.green.11}#005c3aTối: #5ec18a | Nền thành công đặc khi nhấn. |
--bh-color-background-info-subtle | {color.blue.3}#e6f4feTối: #0d2847 | Nền panel hoặc nhãn thông tin. |
--bh-color-background-info-subtle-hover | {color.blue.4}#d5efffTối: #003362 | Nền thông tin nhạt khi rê chuột. |
--bh-color-background-info-subtle-pressed | {color.blue.5}#c2e5ffTối: #004074 | Nền thông tin nhạt khi nhấn. |
--bh-color-background-info | {color.blue.5}#c2e5ffTối: #004074 | Nền thông tin, đậm hơn subtle. |
--bh-color-background-info-bold | {color.blue.9}#0077d5Tối: #0088f1 | Nền thông tin đặc: nhãn trạng thái, badge. Chữ và icon ở trên dùng text.on-bold / icon.on-bold (trắng ở giao diện sáng, graphite 1 ở giao diện tối). |
--bh-color-background-info-bold-hover | {color.blue.10}#0064b5Tối: #3599fa | Nền thông tin đặc khi rê chuột. |
--bh-color-background-info-bold-pressed | {color.blue.11}#005195Tối: #6bb3fa | Nền thông tin đặc khi nhấn. |
--bh-color-surface | {color.brand.white}#ffffffTối: {color.graphite.2} → #201f1f | Card và panel. Sáng hơn nền trang một bậc ở giao diện tối. |
--bh-color-surface-page | {color.brand.white}#ffffffTối: {color.graphite.1} → #181717 | Nền trang. Header của ứng dụng và menu bên cũng nằm trên nền này, tách bằng một đường viền. |
--bh-color-surface-subtle | {color.graphite.2}#f1f1f0Tối: #201f1f | Đầu bảng, vùng tĩnh. |
--bh-color-surface-overlay | {color.brand.white}#ffffffTối: {color.graphite.3} → #282827 | Nền của menu, popover, danh sách xổ xuống, toast, dialog và drawer. Ở dark mode sáng hơn nền card (color.surface) một bậc, để người dùng thấy chúng nằm trên card. |
--bh-color-surface-overlay-hover | {color.graphite.2}#f1f1f0Tối: {color.graphite.4} → #31302f | Mục trong menu hoặc danh sách khi rê chuột qua. |
--bh-color-surface-overlay-pressed | {color.graphite.3}#e5e5e4Tối: {color.graphite.5} → #393937 | Mục trong menu hoặc danh sách khi đang nhấn. |
--bh-color-surface-overlay-selected | {color.graphite.3}#e5e5e4Tối: {color.graphite.5} → #393937 | Mục đang được chọn trong menu hoặc danh sách. Luôn kèm thêm một dấu hiệu khác như dấu check hoặc chữ đậm. |
--bh-color-surface-overlay-selected-hover | {color.graphite.4}#d9d9d8Tối: {color.graphite.5} → #393937 | Mục đang được chọn khi rê chuột qua. Ở dark mode giữ graphite 5 (bằng màu đang chọn), vì graphite 6 làm chữ phụ và viền không đủ tương phản; dấu check cho biết mục đang được chọn. |
--bh-color-surface-inverse | {color.graphite.12}#2b2a28Tối: #eeeeed | Bề mặt đảo màu: tooltip. Chữ ở trên dùng text.inverse. |
--bh-color-surface-scrim | rgb(43 42 40 / 40%)Tối: rgb(0 0 0 / 60%) | Lớp phủ phía sau hộp thoại và drawer. |
--bh-color-border | {color.graphite.6}#bdbcbbTối: #454443 | Viền mặc định: đường chia, card, bảng. |
--bh-color-border-bold | {color.graphite.9}#7b7976Tối: #878682 | Cạnh của ô nhập, checkbox và select. 3:1 (WCAG 1.4.11) trên mọi bề mặt và nền trung tính, kể cả dòng đã chọn. |
--bh-color-border-hover | {color.graphite.7}#aaa9a8Tối: #555452 | Viền của nút có viền khi hover và khi nhấn, đậm hơn color.border một bậc. Khảo sát 55: 8/11 nút có viền đậm viền khi hover. |
--bh-color-border-disabled | {color.graphite.6}#bdbcbbTối: #454443 | Viền của control vô hiệu. |
--bh-color-border-focus | {color.blue.11}#005195Tối: #6bb3fa | Vòng focus: 2 px, cách control 2 px. 3:1 trên mọi bề mặt và dòng đã chọn. Ô nhập liệu: viền 1 px đổi sang màu này và một vòng 2 px cùng màu nằm bên trong, thành cạnh đặc 3 px, không có quầng. |
--bh-color-border-selected | {color.yellow.9}#a96700Tối: {color.brand.yellow} → #fcb017 | Thanh đánh dấu trang hoặc tab hiện tại. Vàng 9 ở chế độ sáng để thanh đạt 3:1 trên nền trang và trên background.selected; vàng thương hiệu ở chế độ tối. Luôn đi kèm một dấu hiệu thứ hai. |
--bh-color-border-brand | {color.brand.yellow}#fcb017 | Viền thương hiệu, như nhãn early-access. |
--bh-color-border-brand-subtle | {color.yellow.6}#ffc757Tối: #61400c | Viền của bề mặt và ghi chú thương hiệu. |
--bh-color-border-danger | {color.red.9}#d83b39Tối: {color.red.10} → #ff615a | Viền nguy hiểm: nhãn. Bậc 9 ở giao diện sáng; bậc 10 ở giao diện tối. |
--bh-color-border-danger-subtle | {color.red.7}#f4aaa2Tối: #8c3430 | Viền của panel nguy hiểm. |
--bh-color-border-warning | {color.orange.9}#ba4e00Tối: {color.orange.10} → #ef7200 | Viền cảnh báo: nhãn. Bậc 9 ở giao diện sáng; bậc 10 ở giao diện tối. |
--bh-color-border-warning-subtle | {color.orange.7}#f5ae73Tối: #7e451d | Viền của panel cảnh báo. |
--bh-color-border-success | {color.green.9}#008753Tối: {color.green.10} → #37a971 | Viền thành công: nhãn. Bậc 9 ở giao diện sáng; bậc 10 ở giao diện tối. |
--bh-color-border-success-subtle | {color.green.7}#8eceaaTối: #28684a | Viền của panel thành công. |
--bh-color-border-info | {color.blue.9}#0077d5Tối: {color.blue.10} → #3599fa | Viền thông tin: nhãn. Bậc 9 ở giao diện sáng; bậc 10 ở giao diện tối. |
--bh-color-border-info-subtle | {color.blue.7}#8ec8f6Tối: #205d9e | Viền của panel thông tin. |
--bh-color-skeleton | {color.graphite.4}#d9d9d8Tối: #31302f | Khối giữ chỗ khi đang tải. |
--bh-color-skeleton-subtle | {color.graphite.3}#e5e5e4Tối: #282827 | Vệt sáng chạy trên khối giữ chỗ khi đang tải. |
--bh-color-code-background | {color.brand.graphite}#2b2a28Tối: {color.graphite.1} → #181717 | Nền khối code. |
--bh-color-code-text | {color.graphite.2}#f1f1f0Tối: {color.graphite.12} → #eeeeed | Chữ trong khối code. |
Chữ
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-font-features | "cv05", "cv08" | Biến thể ký tự của Inter, bật ở mọi nơi (chốt 27/10/2026): cv05 thêm đuôi cho chữ l thường, cv08 thêm chân cho chữ I hoa, để l, I và 1 không bị nhầm trong tên, mã và khóa. Thuộc tính rút gọn font đặt lại font-feature-settings, nên CSS token đặt chúng trên mọi phần tử. JetBrains Mono không có cv05 và cv08, nên code không bị ảnh hưởng. |
--bh-font-family-sans | Inter, "Noto Sans", system-ui, sans-serif | Mọi chữ giao diện và chữ để đọc. Noto Sans là phông dự phòng: có đủ tiếng Việt và ký hiệu ₫, cỡ chữ gần với Inter. |
--bh-font-family-mono | "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace | Code, ID, khóa và tên token. |
--bh-font-size-100 | 0.75rem | 12 px. Chữ nội dung nhỏ, nhãn nhỏ, chú thích. |
--bh-font-size-200 | 0.875rem | 14 px. Chữ giao diện mặc định, nhãn, code, tiêu đề nhỏ nhất. |
--bh-font-size-300 | 1rem | 16 px. Chữ để đọc, tiêu đề card. |
--bh-font-size-400 | 1.25rem | 20 px. Tiêu đề mục. |
--bh-font-size-500 | 1.5rem | 24 px. Tiêu đề trang. |
--bh-font-size-600 | 2rem | 32 px. Tiêu đề lớn. |
--bh-font-size-700 | 3rem | 48 px. Chữ trưng bày, chỉ cho marketing. |
--bh-font-size-800 | 3.75rem | 60 px. Chữ trưng bày, chỉ cho marketing. |
--bh-font-size-900 | 4.5rem | 72 px. Chữ trưng bày, chỉ cho marketing. |
--bh-font-weight-regular | 400 | Chữ nội dung. |
--bh-font-weight-medium | 500 | Nhãn: nút, nhãn form, tab, mục menu. |
--bh-font-weight-semibold | 600 | Tiêu đề. |
--bh-font-weight-bold | 700 | Chỉ cho chữ trưng bày. |
--bh-font-display-large | {font.weight.bold} {font.size.900}/5rem {font.family.sans}700 4.5rem/5rem Inter, "Noto Sans", system-ui, sans-serifTiếng Việt (lang="vi"): 700 4.5rem/6.75rem Inter, "Noto Sans", system-ui, sans-serif | 72/80. Phần mở đầu marketing. Dưới 768 px, dùng display.small. Tiếng Việt: 72/108. |
--bh-font-display-medium | {font.weight.bold} {font.size.800}/4.25rem {font.family.sans}700 3.75rem/4.25rem Inter, "Noto Sans", system-ui, sans-serifTiếng Việt (lang="vi"): 700 3.75rem/5.5rem Inter, "Noto Sans", system-ui, sans-serif | 60/68. Mở đầu mục marketing. Dưới 768 px, dùng display.small. Tiếng Việt: 60/88. |
--bh-font-display-small | {font.weight.bold} {font.size.700}/3.5rem {font.family.sans}700 3rem/3.5rem Inter, "Noto Sans", system-ui, sans-serifTiếng Việt (lang="vi"): 700 3rem/4.5rem Inter, "Noto Sans", system-ui, sans-serif | 48/56. Tiêu đề marketing. Dưới 768 px, dùng heading.xlarge. Tiếng Việt: 48/72. |
--bh-font-heading-xlarge | {font.weight.semibold} {font.size.600}/2.5rem {font.family.sans}600 2rem/2.5rem Inter, "Noto Sans", system-ui, sans-serifTiếng Việt (lang="vi"): 600 2rem/3rem Inter, "Noto Sans", system-ui, sans-serif | 32/40. Tiêu đề lớn: trạng thái trống, onboarding, mục tài liệu và landing. Tiếng Việt: 32/48. |
--bh-font-heading-large | {font.weight.semibold} {font.size.500}/2rem {font.family.sans}600 1.5rem/2rem Inter, "Noto Sans", system-ui, sans-serifTiếng Việt (lang="vi"): 600 1.5rem/2.5rem Inter, "Noto Sans", system-ui, sans-serif | 24/32. Tiêu đề trang, một tiêu đề mỗi trang. Tiếng Việt: 24/40. |
--bh-font-heading-medium | {font.weight.semibold} {font.size.400}/1.75rem {font.family.sans}600 1.25rem/1.75rem Inter, "Noto Sans", system-ui, sans-serifTiếng Việt (lang="vi"): 600 1.25rem/2rem Inter, "Noto Sans", system-ui, sans-serif | 20/28. Tiêu đề mục và hộp thoại. Tiếng Việt: 20/32. |
--bh-font-heading-small | {font.weight.semibold} {font.size.300}/1.5rem {font.family.sans}600 1rem/1.5rem Inter, "Noto Sans", system-ui, sans-serif | 16/24. Tiêu đề card, panel và drawer. Tiếng Việt: giữ nguyên chiều cao dòng. |
--bh-font-heading-xsmall | {font.weight.semibold} {font.size.200}/1.25rem {font.family.sans}600 0.875rem/1.25rem Inter, "Noto Sans", system-ui, sans-serifTiếng Việt (lang="vi"): 600 0.875rem/1.5rem Inter, "Noto Sans", system-ui, sans-serif | 14/20. Tiêu đề nhóm trong form, danh sách và menu; tiêu đề banner. Tiếng Việt: 14/24. |
--bh-font-body-large | {font.weight.regular} {font.size.300}/1.5rem {font.family.sans}400 1rem/1.5rem Inter, "Noto Sans", system-ui, sans-serif | 16/24. Chữ để đọc: mô tả, trợ giúp, tài liệu, email. Tiếng Việt: giữ nguyên chiều cao dòng. |
--bh-font-body-default | {font.weight.regular} {font.size.200}/1.25rem {font.family.sans}400 0.875rem/1.25rem Inter, "Noto Sans", system-ui, sans-serifTiếng Việt (lang="vi"): 400 0.875rem/1.5rem Inter, "Noto Sans", system-ui, sans-serif | 14/20. Chữ giao diện mặc định: ô bảng, ô nhập, thông báo. Tiếng Việt: 14/24. |
--bh-font-body-small | {font.weight.regular} {font.size.100}/1rem {font.family.sans}400 0.75rem/1rem Inter, "Noto Sans", system-ui, sans-serifTiếng Việt (lang="vi"): 400 0.75rem/1.25rem Inter, "Noto Sans", system-ui, sans-serif | 12/16. Chữ phụ: chữ hướng dẫn, thông tin phụ, mốc thời gian, tooltip. Tiếng Việt: 12/20. |
--bh-font-label-default | {font.weight.medium} {font.size.200}/1.25rem {font.family.sans}500 0.875rem/1.25rem Inter, "Noto Sans", system-ui, sans-serifTiếng Việt (lang="vi"): 500 0.875rem/1.5rem Inter, "Noto Sans", system-ui, sans-serif | 14/20. Nút, nhãn form, tab, mục menu và điều hướng. Tiếng Việt: 14/24. |
--bh-font-label-small | {font.weight.medium} {font.size.100}/1rem {font.family.sans}500 0.75rem/1rem Inter, "Noto Sans", system-ui, sans-serifTiếng Việt (lang="vi"): 500 0.75rem/1.25rem Inter, "Noto Sans", system-ui, sans-serif | 12/16. Badge, tag, nút nhỏ, đầu bảng. Tiếng Việt: 12/20. |
--bh-font-code-default | {font.weight.regular} {font.size.200}/1.25rem {font.family.mono}400 0.875rem/1.25rem "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace | 14/20. Khối code, ID, khóa, JSON. Cùng cỡ với body.default: JetBrains Mono và Inter có cùng chiều cao chữ x. Tiếng Việt: giữ nguyên chiều cao dòng. |
Khoảng cách
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-space-0 | 0 | 0. Các phần tử dính liền, như các nút trong một segmented group. |
--bh-space-025 | 0.125rem | 2 px. Badge trên icon, chấm trạng thái cạnh chữ. Không dùng giữa các control hay làm padding. |
--bh-space-050 | 0.25rem | 4 px. Giữa icon và chữ 14 px; giữa tiêu đề và mô tả; trên và dưới chữ của tooltip và của ô bảng gọn. |
--bh-space-075 | 0.375rem | 6 px. Chỉ dùng bên trong component: trên và dưới nhãn của control 32 px, và hai bên tooltip. Không dùng cho bố cục, khoảng cách giữa các phần hay padding của card. |
--bh-space-100 | 0.5rem | 8 px. Giữa icon và chữ 16 px; giữa các nút; giữa nhãn và ô nhập; padding ngang của control 24 px; trên và dưới chữ trong ô bảng. |
--bh-space-150 | 0.75rem | 12 px. Padding ngang của control 32 px, như ô nhập và nút, và của ô bảng. |
--bh-space-200 | 1rem | 16 px. Giữa các phần tử liên quan: ô nhập, mục danh sách, card. Lề trang và gutter lưới dưới 768 px. |
--bh-space-250 | 1.25rem | 20 px. Giữa tiêu đề phần và nội dung của nó. Mép của logo và icon menu bên. |
--bh-space-300 | 1.5rem | 24 px. Bên trong card, panel và dialog. Giữa các tab. Lề trang và gutter lưới từ 768 px. |
--bh-space-400 | 2rem | 32 px. Giữa các nhóm, như các phần của form. Lề trang từ 1440 px. |
--bh-space-500 | 2.5rem | 40 px. Quanh trạng thái trống. |
--bh-space-600 | 3rem | 48 px. Giữa các phần của trang. |
--bh-space-800 | 4rem | 64 px. Giữa các phần lớn của một trang dài. Độ rộng menu bên khi thu gọn. |
--bh-space-1000 | 5rem | 80 px. Phía trên và dưới trang đăng nhập và onboarding. Hiếm khi dùng. |
Token theo nhóm · Dùng cho từng loại phần tử; mỗi token trỏ tới một bậc của thang ở trên.
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-space-control-x | {space.150}0.75rem | Lề ngang của control 32 px: nút, ô nhập, select. |
--bh-space-control-x-small | {space.100}0.5rem | Lề ngang của control 24 px. |
--bh-space-control-x-large | {space.200}1rem | Lề ngang của control 40 px ở trang đăng nhập và onboarding. |
--bh-space-control-gap | {space.050}0.25rem | Giữa icon và chữ trong một control. |
--bh-space-item-x | {space.150}0.75rem | Lề ngang của item trong menu, danh sách và thanh điều hướng bên. |
--bh-space-overlay | {space.050}0.25rem | Bên trong menu, select và popover chứa danh sách, quanh các item. Góc lồng khít: radius.overlay = radius.item + space.overlay. |
--bh-space-overlay-offset | {space.050}0.25rem | Giữa menu, popover hoặc tooltip và phần tử đã mở nó. |
--bh-space-overlay-content | {space.200}1rem | 16 px. Bên trong popover và hover card chứa nội dung thay vì danh sách. Danh sách giữ space.overlay. |
--bh-space-card | {space.300}1.5rem | Bên trong card và panel. |
--bh-space-modal | {space.300}1.5rem | Bên trong dialog và drawer. |
--bh-space-modal-gap | {space.200}1rem | Giữa tiêu đề, nội dung và nút của dialog hoặc drawer. |
--bh-space-table-cell-x | {space.150}0.75rem | Lề ngang của ô bảng. |
--bh-space-table-cell-y | {space.100}0.5rem | Lề trên và dưới của ô bảng. |
--bh-space-stack | {space.200}1rem | Giữa các mục liên quan xếp theo cột: field trong form, item trong danh sách, card. |
--bh-space-stack-group | {space.400}2rem | Giữa các nhóm xếp theo cột, như các phần của một form. |
Kích thước
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-size-control-small | 1.5rem | 24 px. Chiều cao control cỡ nhỏ: bảng dày đặc và thanh công cụ của chúng, bộ lọc, tag. Padding ngang space.100. |
--bh-size-control-default | 2rem | 32 px. Chiều cao của nút, ô nhập, select, segmented control và tab ở mọi chỗ còn lại: form, header, thanh công cụ. Padding ngang space.150. |
--bh-size-control-large | 2.5rem | 40 px. Chiều cao control ở trang đăng nhập và onboarding. Có thể dùng cho thao tác chính trên màn hình cảm ứng. |
--bh-size-target-minimum | 1.5rem | 24 px. Vùng nhỏ nhất phản hồi khi bấm hoặc chạm (WCAG 2.2 SC 2.5.8). Mọi control và nút icon đều có cỡ ít nhất bằng mức này. |
--bh-size-target-touch | 2.75rem | 44 px. Vùng phản hồi khi chạm trên màn hình cảm ứng. Mở rộng vùng bấm quanh control nhỏ hơn và giữ nguyên cỡ nhìn thấy; dòng trong danh sách và menu thì tăng chiều cao lên mức này. |
--bh-size-icon-default | 1rem | 16 px. Cỡ icon mặc định: nút, menu, bảng, ô nhập, cạnh chữ 14 px. |
--bh-size-icon-medium | 1.25rem | 20 px. Icon cạnh chữ 16 px, trong thanh công cụ và page header. |
--bh-size-icon-large | 1.5rem | 24 px. Icon đứng riêng, như trạng thái trong card hoặc trạng thái trống nhỏ. |
--bh-size-icon-empty | 2rem | 32 px. Chỉ cho trạng thái trống. |
--bh-size-tooltip-max-width | 15rem | 240 px. Độ rộng tối đa của tooltip trước khi chữ xuống dòng. Atlassian và Fluent dùng 240 px, Ant và Primer 250 px; 7 hệ dao động từ 200 tới 300 px. |
--bh-size-track-default | {space.050}0.25rem | 4 px. Độ dày của rãnh mảnh hoặc thanh kéo: progress, rãnh slider, thanh kéo drawer. Đi cùng radius.full. |
--bh-size-overlay-min-width | 8rem | 128 px. Độ rộng nhỏ nhất của menu, danh sách select, combobox hoặc command; rộng ra theo trigger hoặc mục dài nhất. |
--bh-size-overlay-width | 18rem | 288 px. Chiều rộng popover hoặc hover card chứa nội dung. |
--bh-size-overlay-max-height | 18rem | 288 px. Chiều cao tối đa của danh sách combobox hoặc command trước khi cuộn: khoảng tám mục 32 px. |
--bh-size-dialog-default | 32rem | 512 px. Độ rộng tối đa của dialog, trên màn hình rộng hơn mức đó cộng lề trang. |
--bh-size-dialog-small | 24rem | 384 px. Độ rộng tối đa của alert dialog hoặc drawer bên chứa ít control. |
--bh-size-dialog-xsmall | 20rem | 320 px. Alert dialog nhỏ (một câu hỏi ngắn), và độ rộng hẹp nhất alert dialog giữ trên điện thoại. |
Bo góc
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-radius-0 | 0 | 0. Cạnh chạm mép màn hình: header của trang, bảng tràn hết chiều ngang và panel chạy sát mép. |
--bh-radius-025 | 0.125rem | 2 px. Chi tiết nhỏ: badge, checkbox và phím tắt. |
--bh-radius-050 | 0.25rem | 4 px. Phần tử phụ trợ: tag, nhãn trạng thái, tooltip, ngày và giờ, button nhỏ, và mục trong menu. |
--bh-radius-075 | 0.375rem | 6 px. Phần tử tương tác: button, ô nhập, vùng nhập nhiều dòng, select và mục điều hướng bên cạnh. |
--bh-radius-100 | 0.5rem | 8 px. Phần tử chứa: card, alert và banner, khung trong trang, và UI nổi như menu, popover, toast. |
--bh-radius-150 | 0.75rem | 12 px. Phần tử lớn của trang: dialog, drawer, khung chứa cả trang và bảng có khung riêng. |
--bh-radius-200 | 1rem | 16 px. Khung media lớn: khung xem video và ảnh. Không component nào dùng mặc định. |
--bh-radius-full | 999px | Viên thuốc và hình tròn. Avatar và UI về người dùng, switch và chip. |
Token theo nhóm · Dùng cho từng loại phần tử; mỗi token trỏ tới một bậc của thang ở trên.
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-radius-control | {radius.075}0.375rem | Nút, ô nhập, select và item của thanh điều hướng bên. |
--bh-radius-control-small | {radius.050}0.25rem | Control 24 px: nút nhỏ và field đi kèm. |
--bh-radius-item | {radius.050}0.25rem | Item trong menu và danh sách. Lồng trong radius.overlay với space.overlay. |
--bh-radius-card | {radius.100}0.5rem | Card, alert, banner và khung trong trang. |
--bh-radius-overlay | {radius.100}0.5rem | UI nổi: menu, popover, danh sách của select và toast. |
--bh-radius-modal | {radius.150}0.75rem | Dialog, drawer và khung chứa cả trang. |
--bh-radius-pill | {radius.full}999px | Avatar, switch và chip. |
Viền
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-border-width-default | 1px | 1 px. Ô nhập, button phụ, card, bảng và đường phân cách. |
--bh-border-width-selected | 2px | 2 px. Thanh dưới tab đang chọn hoặc cạnh mục side nav đang chọn, và viền card đang chọn. Đi cùng color.border.selected. |
--bh-border-width-focused | 2px | 2 px. Focus ring. Đi cùng color.border.focus và state.focus.offset. |
--bh-border-width-accent | 4px | 4 px. Thanh trạng thái hoặc nhấn mạnh ở một cạnh: dòng bị lỗi, callout và trích dẫn. Đi cùng màu viền trạng thái hoặc màu brand. |
Độ mờ
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-opacity-disabled | 0.4 | Ảnh, logo, avatar và hình minh họa nằm trong thứ đang bị tắt. Không dùng cho button, ô nhập, chữ hay icon: chúng dùng token màu disabled. |
Đổ bóng
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-elevation-shadow-raised | 0 1px 2px rgb(43 42 40 / 8%), 0 1px 3px rgb(43 42 40 / 6%)Tối: 0 1px 2px rgb(0 0 0 / 40%), 0 1px 3px rgb(0 0 0 / 30%) | Card, kể cả card chỉ để xem nội dung, và card đang được kéo thả. Ở dark mode bóng đậm hơn. |
--bh-elevation-shadow-overlay | 0 4px 12px rgb(43 42 40 / 15%)Tối: 0 4px 12px rgb(0 0 0 / 50%) | Dropdown, menu, popover, danh sách xổ xuống của select và toast. Dùng kèm nền color.surface.overlay. |
--bh-elevation-shadow-modal | 0 8px 24px rgb(43 42 40 / 15%)Tối: 0 8px 24px rgb(0 0 0 / 50%) | Dialog, drawer và sheet toàn màn hình nằm trên lớp phủ mờ. Dùng kèm nền color.surface.overlay. |
Z-index
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-z-index-sticky | 100 | Header của bảng và thanh công cụ dính lại khi cuộn trang. |
--bh-z-index-navigation | 200 | Header của app và menu bên trái. |
--bh-z-index-overlay | 300 | Dropdown, menu, popover và danh sách xổ xuống của select. |
--bh-z-index-modal | 400 | Dialog, drawer và lớp phủ mờ phía sau chúng. |
--bh-z-index-spotlight | 500 | Tour hướng dẫn và vùng làm nổi bật khi onboarding, nằm trên dialog. |
--bh-z-index-tooltip | 600 | Tooltip, nằm trên mọi thành phần người dùng thao tác được. |
--bh-z-index-toast | 700 | Toast và skip link: luôn nằm trên cùng. |
Chuyển động
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-motion-duration-instant | 0ms | 0 ms. Đổi ngay lập tức. Khi người dùng bật giảm chuyển động, mọi thời lượng đều thành giá trị này. |
--bh-motion-duration-fast | 100ms | 100 ms. Hover, nhấn, đổi màu; đóng tooltip, menu, toast; thả vật đang kéo. |
--bh-motion-duration-default | 200ms | 200 ms. Mở tooltip, menu, popover, toast; thanh chỉ báo tab, núm switch, accordion, thanh điều hướng bên; đóng dialog và drawer. |
--bh-motion-duration-slow | 300ms | 300 ms. Mở dialog và drawer; đóng sheet toàn màn hình. |
--bh-motion-duration-slower | 400ms | 400 ms. Mở sheet toàn màn hình và các bề mặt lớn khác. |
--bh-motion-duration-slowest | 600ms | 600 ms. Khoảnh khắc nhấn mạnh hiếm gặp, người dùng chỉ thấy một lần, như hoàn tất onboarding. Không dùng cho control hằng ngày. |
--bh-motion-wait-tooltip-show | 300ms | 300 ms. Tooltip hiện sau khi con trỏ dừng chừng này; hiện ngay khi focus bằng bàn phím và với tooltip kế tiếp. Là thời gian chờ, không phải thời lượng: giữ nguyên khi giảm chuyển động. |
--bh-motion-wait-tooltip-hide | 100ms | 100 ms. Tooltip ẩn sau khi con trỏ rời đi chừng này. Giữ nguyên khi giảm chuyển động. |
--bh-motion-wait-spinner | 1000ms | 1000 ms. Chỉ hiện spinner khi phải chờ quá chừng này, để lần tải nhanh không bị nháy; dưới 1 giây người dùng vẫn liền mạch mà không cần dấu hiệu đang xử lý. Giữ nguyên khi giảm chuyển động. |
--bh-motion-wait-toast | 5000ms | 5 giây. Toast tự đóng sau chừng này. Đồng hồ dừng khi con trỏ hoặc focus ở trên toast. |
--bh-motion-wait-toast-action | 10000ms | 10 giây. Toast có nút hành động tự đóng sau chừng này. Đồng hồ dừng khi con trỏ hoặc focus ở trên toast. |
--bh-motion-loop-spinner | 1000ms | 1 s. Một vòng quay của spinner, tốc độ đều. Giảm chuyển động không đổi token này: spinner vẫn quay cùng tốc độ, vì nó là dấu hiệu duy nhất cho biết việc đang chạy. |
--bh-motion-easing-standard | cubic-bezier(0.4, 0, 0.2, 1) | Tăng tốc rồi giảm tốc. Thứ di chuyển ngay trong màn hình, và thay đổi do hệ thống tự chạy. |
--bh-motion-easing-enter | cubic-bezier(0, 0, 0.2, 1) | Nhanh lúc đầu rồi chậm dần đến khi dừng. Thứ đi vào màn hình: menu, dialog, drawer, toast. |
--bh-motion-easing-exit | cubic-bezier(0.4, 0, 1, 1) | Chậm lúc đầu rồi tăng tốc. Thứ rời khỏi màn hình. Dùng thời lượng ngắn hơn lúc vào một bậc. |
--bh-motion-easing-linear | cubic-bezier(0, 0, 1, 1) | Tốc độ đều. Mờ dần, đổi màu, thanh tiến trình và spinner. |
--bh-motion-easing-emphasized | cubic-bezier(0.05, 0.7, 0.1, 1) | Đi gần hết quãng đường ngay, rồi chậm rãi vào chỗ. Chỉ cho khoảnh khắc nhấn mạnh hiếm gặp, đi cùng motion.duration.slowest. |
--bh-motion-keyframe-offset-enter | 0.5rem | 8 px. Quãng menu, popover hoặc toast trượt khi đi vào. |
--bh-motion-keyframe-offset-exit | 0.25rem | 4 px. Quãng trượt khi rời đi. |
--bh-motion-keyframe-scale | 0.95 | Tỉ lệ dialog phóng lên từ đó khi mở, và thu về khi đóng. |
--bh-motion-keyframe-slide | 100% | Drawer, panel bên và sheet toàn màn hình trượt hết chiều rộng hoặc chiều cao của chính nó. |
Token theo nhóm · Dùng cho từng loại phần tử; mỗi token trỏ tới một bậc của thang ở trên.
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-motion-control | {motion.duration.fast} {motion.easing.standard}100ms cubic-bezier(0.4, 0, 0.2, 1) | Hover, nhấn và đổi màu của nút, ô nhập và các control khác. |
--bh-motion-indicator | {motion.duration.default} {motion.easing.enter}200ms cubic-bezier(0, 0, 0.2, 1) | Thanh chỉ báo tab, núm switch và các chỉ báo trượt sang chỗ mới. |
--bh-motion-expand | {motion.duration.default} {motion.easing.standard}200ms cubic-bezier(0.4, 0, 0.2, 1) | Accordion, cây thư mục và thanh điều hướng bên mở và đóng tại chỗ. |
--bh-motion-overlay-enter | {motion.duration.default} {motion.easing.enter}200ms cubic-bezier(0, 0, 0.2, 1) | Tooltip, menu, select, popover và toast đi vào. Mờ dần và trượt motion.keyframe.offset.enter. |
--bh-motion-overlay-exit | {motion.duration.fast} {motion.easing.exit}100ms cubic-bezier(0.4, 0, 1, 1) | Tooltip, menu, select, popover và toast rời đi. Mờ dần và trượt motion.keyframe.offset.exit. |
--bh-motion-modal-enter | {motion.duration.slow} {motion.easing.enter}300ms cubic-bezier(0, 0, 0.2, 1) | Dialog, drawer và panel bên mở ra. Dialog phóng từ motion.keyframe.scale; drawer trượt motion.keyframe.slide. |
--bh-motion-modal-exit | {motion.duration.default} {motion.easing.exit}200ms cubic-bezier(0.4, 0, 1, 1) | Dialog, drawer và panel bên đóng lại. |
--bh-motion-sheet-enter | {motion.duration.slower} {motion.easing.enter}400ms cubic-bezier(0, 0, 0.2, 1) | Sheet toàn màn hình và các bề mặt lớn khác đi vào. |
--bh-motion-sheet-exit | {motion.duration.slow} {motion.easing.exit}300ms cubic-bezier(0.4, 0, 1, 1) | Sheet toàn màn hình và các bề mặt lớn khác rời đi. |
--bh-motion-drop | {motion.duration.fast} {motion.easing.standard}100ms cubic-bezier(0.4, 0, 0.2, 1) | Vật đang kéo được thả vào chỗ, hoặc quay về khi hủy kéo. |
--bh-motion-emphasized | {motion.duration.slowest} {motion.easing.emphasized}600ms cubic-bezier(0.05, 0.7, 0.1, 1) | Khoảnh khắc nhấn mạnh hiếm gặp mà người dùng chỉ thấy một lần, như hoàn tất onboarding. |
Breakpoint
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-breakpoint-xs | 0px | Điện thoại và cửa sổ nhỏ, dưới 768 px. Một bố cục co giãn: 4 cột, gutter và lề 16 px, menu bên nằm trong drawer. Phải dùng được tới 320 px. |
--bh-breakpoint-md | 768px | Máy tính bảng và cửa sổ hẹp. 8 cột, gutter và lề 24 px. Menu bên vẫn nằm trong drawer. |
--bh-breakpoint-lg | 1024px | Laptop từ 1024 px, kể cả màn hình 1280 và 1366 px. 12 cột. Menu bên mở ở 280 px; người dùng có thể thu thành rail 64 px. |
--bh-breakpoint-xl | 1440px | Máy bàn, kể cả màn hình 1536 và 1920 px. Lề trang 32 px. |
Bố cục
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-layout-header-height | {space.600}3rem | Chiều cao nội dung header ứng dụng 48 px; viền dưới tính riêng. Chỉ chứa control chung; breadcrumb và thao tác của trang thuộc về header của trang. |
--bh-layout-sidebar-expanded | 17.5rem | Thanh điều hướng mở 280 px; dưới breakpoint.lg nó nằm trong drawer, không cố định bên cạnh. |
--bh-layout-sidebar-collapsed | {space.800}4rem | Rail điều hướng 64 px sau khi người dùng chủ động thu gọn. Giữ nhãn truy cập và tooltip. |
--bh-layout-page-narrow | 48rem | Độ rộng nội dung tối đa 768 px cho form, các bước wizard, trợ giúp và tài liệu; lề trang nằm ngoài giới hạn này. |
--bh-layout-page-wide | 80rem | Độ rộng nội dung tối đa 1280 px cho dashboard, trang chi tiết và tổng quan cài đặt. Bảng, nhật ký, trình dựng và canvas dùng toàn chiều rộng, không giới hạn. |
--bh-layout-page-margin-small | {space.200}1rem | Lề trang 16 px dưới breakpoint.md. |
--bh-layout-page-margin-medium | {space.300}1.5rem | Lề trang 24 px từ breakpoint.md tới dưới breakpoint.xl. |
--bh-layout-page-margin-large | {space.400}2rem | Lề trang 32 px từ breakpoint.xl. |
--bh-layout-grid-columns-small | 4 | 4 cột dưới breakpoint.md. Gutter và lề trang space.200. |
--bh-layout-grid-columns-medium | 8 | 8 cột từ breakpoint.md. Gutter và lề trang space.300. |
--bh-layout-grid-columns-large | 12 | 12 cột từ breakpoint.lg. Gutter space.300; lề trang space.400 từ breakpoint.xl. |
--bh-layout-panel-columns-default | 4 | Panel bên cạnh nội dung chính chiếm 4 trên 12 cột từ breakpoint.lg. Dưới breakpoint.lg nó mở thành drawer. |
--bh-layout-panel-columns-large | 3 | Panel bên chiếm 3 trên 12 cột từ breakpoint.xl. |
--bh-layout-overlay-default | max(50vw, 900px) | Độ rộng mặc định trên máy tính cho overlay xem dữ liệu, từ breakpoint.lg. Dưới breakpoint.lg dùng vai trò mobile. Không phải mặc định cho hộp thoại xác nhận nhỏ. |
--bh-layout-overlay-wide | 70vw | Biến thể rộng cho overlay xem dữ liệu khi nội dung cần, từ breakpoint.lg. Không bao giờ áp cho mọi drawer. |
--bh-layout-overlay-mobile | 100vw | Toàn bộ chiều rộng màn hình cho overlay xem dữ liệu dưới breakpoint.lg; nội dung và thao tác phải tự xuống dòng. |
--bh-layout-description-minimum | 12.5rem | Độ rộng tối thiểu 200 px cho cột mô tả khi xem dữ liệu có cấu trúc trên máy tính. Khi không đủ chỗ, xếp nội dung chồng lên nhau thay vì để cuộn ngang. |
Token của component · Chỉ dùng bên trong một component.
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-layout-renderer-minimum-inline-size | 21.875rem | 350 px. Added by PR #5 for interactive editor and canvas viewports in products. Not an approved foundation value and not on a scale; kept as a component token until the renderer decision. |
--bh-layout-renderer-minimum-block-size | 21.875rem | 350 px. Added by PR #5 for interactive editor and canvas viewports in products. Not an approved foundation value and not on a scale; kept as a component token until the renderer decision. |
Trạng thái tương tác
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-state-focus-offset | 2px | 2 px. Khoảng giữa control và focus ring. Ring vẽ ra ngoài; trong khung cắt mất ring (mục menu, ô bảng, tab trong vùng cuộn) thì dùng giá trị âm. |
Token của component
Token dành riêng cho một component. Sản phẩm dùng component; component dùng các token này. Mỗi token trỏ tới một token foundation hoặc một bậc của thang khi có bậc phù hợp.
Switch
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-switch-size-track-height | 1.25rem | 20 px. Chiều cao rãnh của switch. |
--bh-switch-size-track-width | 2.25rem | 36 px. Chiều rộng rãnh của switch. |
--bh-switch-size-thumb | 1rem | 16 px. Đường kính núm của switch. |
--bh-switch-focus-ring | {color.border.focus}#005195Tối: #6bb3fa | Keyboard-visible ring for either checked state; keep the existing focused border width and focus offset. Does not replace the ON/OFF track, thumb or label. |
--bh-switch-off-track | {color.background.neutral}#f1f1f0Tối: #282827 | OFF track, normal. Neutral boolean-state fill, never business-success green. |
--bh-switch-off-track-hover | {color.background.neutral.hover}#e5e5e4Tối: #31302f | OFF track, hover. Neutral boolean-state fill, never business-success green. |
--bh-switch-off-track-pressed | {color.background.neutral.pressed}#d9d9d8Tối: #393937 | OFF track, pressed. Neutral boolean-state fill, never business-success green. |
--bh-switch-off-track-focus | {switch.off.track}#f1f1f0Tối: #282827 | OFF track, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring. |
--bh-switch-off-track-loading | {switch.off.track}#f1f1f0Tối: #282827 | OFF track, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked. |
--bh-switch-off-track-disabled | {color.background.disabled}#f1f1f0Tối: #282827 | OFF track, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming. |
--bh-switch-off-thumb | {color.icon}#42413fTối: #cdccc9 | OFF thumb, normal. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground. |
--bh-switch-off-thumb-hover | {color.icon}#42413fTối: #cdccc9 | OFF thumb, hover. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground. |
--bh-switch-off-thumb-pressed | {color.icon}#42413fTối: #cdccc9 | OFF thumb, pressed. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground. |
--bh-switch-off-thumb-focus | {switch.off.thumb}#42413fTối: #cdccc9 | OFF thumb, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring. |
--bh-switch-off-thumb-loading | {switch.off.thumb}#42413fTối: #cdccc9 | OFF thumb, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked. |
--bh-switch-off-thumb-disabled | {color.icon.disabled}#949390Tối: #6b6a67 | OFF thumb, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming. |
--bh-switch-off-label | {color.text}#2b2a28Tối: #eeeeed | OFF label, normal. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground. |
--bh-switch-off-label-hover | {color.text}#2b2a28Tối: #eeeeed | OFF label, hover. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground. |
--bh-switch-off-label-pressed | {color.text}#2b2a28Tối: #eeeeed | OFF label, pressed. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground. |
--bh-switch-off-label-focus | {switch.off.label}#2b2a28Tối: #eeeeed | OFF label, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring. |
--bh-switch-off-label-loading | {switch.off.label}#2b2a28Tối: #eeeeed | OFF label, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked. |
--bh-switch-off-label-disabled | {color.text.disabled}#949390Tối: #6b6a67 | OFF label, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming. |
--bh-switch-off-border | {color.border.bold}#7b7976Tối: #878682 | OFF border, normal. Meaningful boundary without changing native geometry. |
--bh-switch-off-border-hover | {color.border.bold}#7b7976Tối: #878682 | OFF border, hover. Meaningful boundary without changing native geometry. |
--bh-switch-off-border-pressed | {color.graphite.10}#5f5e5bTối: #a8a6a3 | OFF border, pressed. Graphite 10 keeps at least 3:1 against the pressed neutral track in both themes without changing native geometry. |
--bh-switch-off-border-focus | {switch.off.border}#7b7976Tối: #878682 | OFF border, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring. |
--bh-switch-off-border-loading | {switch.off.border}#7b7976Tối: #878682 | OFF border, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked. |
--bh-switch-off-border-disabled | {color.border.disabled}#bdbcbbTối: #454443 | OFF border, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming. |
--bh-switch-off-loading-icon | {color.icon.inverse}#fdfdfcTối: #181717 | Spinner foreground inside the OFF thumb, paired with switch.off.thumb.loading. Keep the native spinning indicator and blocked callback behavior. |
--bh-switch-on-track | {color.background.neutral.bold}#2b2a28Tối: #eeeeed | ON track, normal. Neutral boolean-state fill, never business-success green. |
--bh-switch-on-track-hover | {color.background.neutral.bold.hover}#42413fTối: #cdccc9 | ON track, hover. Neutral boolean-state fill, never business-success green. |
--bh-switch-on-track-pressed | {color.background.neutral.bold.pressed}#5f5e5bTối: #a8a6a3 | ON track, pressed. Neutral boolean-state fill, never business-success green. |
--bh-switch-on-track-focus | {switch.on.track}#2b2a28Tối: #eeeeed | ON track, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring. |
--bh-switch-on-track-loading | {switch.on.track}#2b2a28Tối: #eeeeed | ON track, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked. |
--bh-switch-on-track-disabled | {color.background.disabled}#f1f1f0Tối: #282827 | ON track, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming. |
--bh-switch-on-thumb | {color.icon.inverse}#fdfdfcTối: #181717 | ON thumb, normal. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground. |
--bh-switch-on-thumb-hover | {color.icon.inverse}#fdfdfcTối: #181717 | ON thumb, hover. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground. |
--bh-switch-on-thumb-pressed | {color.icon.inverse}#fdfdfcTối: #181717 | ON thumb, pressed. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground. |
--bh-switch-on-thumb-focus | {switch.on.thumb}#fdfdfcTối: #181717 | ON thumb, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring. |
--bh-switch-on-thumb-loading | {switch.on.thumb}#fdfdfcTối: #181717 | ON thumb, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked. |
--bh-switch-on-thumb-disabled | {color.icon.disabled}#949390Tối: #6b6a67 | ON thumb, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming. |
--bh-switch-on-label | {color.text.inverse}#fdfdfcTối: #181717 | ON label, normal. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground. |
--bh-switch-on-label-hover | {color.text.inverse}#fdfdfcTối: #181717 | ON label, hover. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground. |
--bh-switch-on-label-pressed | {color.text.inverse}#fdfdfcTối: #181717 | ON label, pressed. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground. |
--bh-switch-on-label-focus | {switch.on.label}#fdfdfcTối: #181717 | ON label, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring. |
--bh-switch-on-label-loading | {switch.on.label}#fdfdfcTối: #181717 | ON label, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked. |
--bh-switch-on-label-disabled | {color.text.disabled}#949390Tối: #6b6a67 | ON label, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming. |
--bh-switch-on-border | {color.background.neutral.bold}#2b2a28Tối: #eeeeed | ON border, normal. Meaningful boundary without changing native geometry. |
--bh-switch-on-border-hover | {color.background.neutral.bold.hover}#42413fTối: #cdccc9 | ON border, hover. Meaningful boundary without changing native geometry. |
--bh-switch-on-border-pressed | {color.background.neutral.bold.pressed}#5f5e5bTối: #a8a6a3 | ON border, pressed. Meaningful boundary without changing native geometry. |
--bh-switch-on-border-focus | {switch.on.border}#2b2a28Tối: #eeeeed | ON border, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring. |
--bh-switch-on-border-loading | {switch.on.border}#2b2a28Tối: #eeeeed | ON border, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked. |
--bh-switch-on-border-disabled | {color.border.disabled}#bdbcbbTối: #454443 | ON border, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming. |
--bh-switch-on-loading-icon | {color.icon}#42413fTối: #cdccc9 | Spinner foreground inside the ON thumb, paired with switch.on.thumb.loading. Keep the native spinning indicator and blocked callback behavior. |
Avatar
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-avatar-size-default | {size.control.default}2rem | 32 px. Avatar ở mọi chỗ trừ bảng và danh sách dày; cao bằng control mặc định. |
--bh-avatar-size-small | {size.control.small}1.5rem | 24 px. Avatar trong bảng và danh sách dày; cao bằng control nhỏ. |
--bh-avatar-size-large | {size.control.large}2.5rem | 40 px. Avatar trong page header hoặc header hồ sơ; cao bằng control cỡ lớn. |
--bh-avatar-badge-size | {space.100}0.5rem | 8 px. Chấm trạng thái trên avatar. |
Nhãn
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-label-height-default | 1.25rem | 20 px. Chiều cao nhãn trạng thái trong dòng bảng và danh sách. |
--bh-label-height-large | {size.control.small}1.5rem | 24 px. Chiều cao nhãn trạng thái cỡ lớn. |
--bh-label-height-state | {size.control.default}2rem | 32 px. Chiều cao nhãn trạng thái của trang: mỗi trang một cái, là trạng thái trang đang nói tới. |
--bh-label-padding-default | {space.075}0.375rem | 6 px. Padding ngang của nhãn trạng thái. |
--bh-label-padding-large | {space.100}0.5rem | 8 px. Padding ngang của nhãn trạng thái cỡ lớn. |
--bh-label-padding-state | {space.150}0.75rem | 12 px. Padding ngang của nhãn trạng thái của trang. |
Tag
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-tag-height | {size.control.small}1.5rem | 24 px. Chiều cao của tag. |
--bh-tag-padding | {space.100}0.5rem | 8 px. Padding ngang của tag. |
Chip
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-chip-height-small | {size.control.small}1.5rem | 24 px. Chip trong thanh công cụ dày đặc. |
--bh-chip-height-default | {size.control.default}2rem | 32 px. Chip ở mọi chỗ khác. |
Thanh cuộn
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-scrollbar-width | {space.100}0.5rem | Shared vertical width and horizontal height: 0.5rem, nominal 8px at the native 16px root, matching Ant tableScrollThumbSize. Standards-only browsers use their native thin metric; overlay platforms may retain platform geometry. Never duplicate per-axis or per-application sizes. |
--bh-scrollbar-track | {color.border}#bdbcbbTối: #454443 | Track in both axes, following Ant tableScrollBg = colorSplit, mapped by the Beehexa Ant factory to color.border. Theme aliases resolve in light and dark. |
--bh-scrollbar-thumb | {color.text.subtlest}#5f5e5bTối: #a8a6a3 | Foreground thumb at rest, following Ant tableScrollThumbBg = colorTextPlaceholder, mapped to color.text.subtlest. Keep the opaque thumb distinguishable from scrollbar.track; do not weaken it with opacity. |
--bh-scrollbar-thumbHover | {color.text}#2b2a28Tối: #eeeeed | Hovered thumb, following Ant tableScrollThumbBgHover = colorTextHeading, mapped to color.text. Standards-only browsers expose the scroll host hover state rather than a thumb pseudo-element. |
--bh-scrollbar-thumbActive | {scrollbar.thumbHover}#2b2a28Tối: #eeeeed | Dragged/pressed thumb; Ant sticky scrollbar uses the same colorTextHeading role for hover and active. Standards-only browsers expose the scroll host active state rather than thumb drag state. |
--bh-scrollbar-corner | {scrollbar.track}#bdbcbbTối: #454443 | Junction of horizontal and vertical native tracks. Match the track so one two-axis scroll owner has a continuous surface; no separate app color. |
--bh-scrollbar-radius | {radius.full}999px | Fully rounded thumb and track. Ant sticky scrollbar uses borderRadius 100 to form a pill; use the canonical Beehexa full-radius alias rather than copying its fixed number. |
Panel đổi kích thước
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-resize-divider | {border.width.accent}4px | Visible divider thickness; do not use as the sole pointer hit area. |
--bh-resize-target | {size.target.minimum}1.5rem | Minimum pointer/keyboard target around a resize divider. |
--bh-resize-touchTarget | {size.target.touch}2.75rem | Touch target around a resize divider. |
--bh-resize-handle-width | {space.200}1rem | Visible handle width. |
--bh-resize-handle-height | {space.400}2rem | Visible handle height. |
--bh-resize-handle-radius | {radius.050}0.25rem | Visible handle corner radius. |
--bh-resize-handle-background | {color.surface}#ffffffTối: #201f1f | Handle surface paired with resize.grip. |
--bh-resize-handle-activeBackground | {color.background.neutral.bold}#2b2a28Tối: #eeeeed | Hovered or dragged handle surface paired with resize.activeGrip. |
--bh-resize-dot-size | {space.025}0.125rem | Diameter of each of the exactly three circular grip dots. |
--bh-resize-dot-pitch | {space.100}0.5rem | Equal center-to-center spacing of three dots, symmetric about the handle center in either orientation. |
--bh-resize-color | {color.border.bold}#7b7976Tối: #878682 | Resize divider and grip at rest. |
--bh-resize-active | {color.border.focus}#005195Tối: #6bb3fa | Hovered, keyboard-focused or dragged resize divider. |
--bh-resize-grip | {color.icon}#42413fTối: #cdccc9 | Grip mark on surface. |
--bh-resize-activeGrip | {color.text.inverse}#fdfdfcTối: #181717 | Grip marks on the active neutral bold handle surface. |
Nội dung ứng dụng
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-content-partner-logo-size | {space.500}2.5rem | Non-image partner-group placeholder extent, not a brand-image width or fixed-square Avatar recipe. |
--bh-content-partner-logo-image-size | {space.300}1.5rem | Common rendered height of connector and partner brand images. Width is always intrinsic/auto at this height; no square frame, width cap, crop or distortion. |
--bh-content-avatar-size | {size.control.default}2rem | Default person or permission-member identity avatar; a visual identity, not a hit target. |
--bh-content-identity-mark-size | {size.target.touch}2.75rem | System/provider identity container when shown beside content labels. |
--bh-content-identity-mark-image-size | {space.300}1.5rem | Contained system/provider identity glyph within the identity-mark container. |
--bh-content-empty-illustration-size | 6rem | Empty-state illustration container. Standard icons inside retain their own source icon sizes. |
--bh-content-tooltip-metric-max-inline-size | 28rem | Maximum readable width for an opt-in native date/metric Tooltip. The actual popup also stays within the viewport with space.200 on either side; not a global Tooltip width or a minimum. |
--bh-content-step-progress-segment-width | {space.200}1rem | 16px horizontal mark in an opt-in read-only native segmented Progress; not a navigation step or status dot. |
--bh-content-step-progress-segment-height | {space.050}0.25rem | 4px thickness of each horizontal step-progress mark; scales with the reader's root. |
--bh-content-step-progress-gap | {space.050}0.25rem | Space between adjacent read-only step-progress marks; no trailing native item margin. |
Trình soạn code
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-editor-background | {color.surface}#ffffffTối: #201f1f | Editor code canvas; pair with editor.text and syntax roles. |
--bh-editor-text | {color.text}#2b2a28Tối: #eeeeed | Editor default code foreground. |
--bh-editor-gutter | {color.surface.subtle}#f1f1f0Tối: #201f1f | Line-number gutter surface. |
--bh-editor-lineNumber | {color.text.subtlest}#5f5e5bTối: #a8a6a3 | Line numbers on the gutter. |
--bh-editor-selection | {color.background.selected}#e5e5e4Tối: #31302f | Selected code range, with native selection/caret cues. |
--bh-editor-lineHighlight | {color.surface.subtle}#f1f1f0Tối: #201f1f | Current editor line; caret and gutter provide additional cues. |
--bh-editor-cursor | {color.text}#2b2a28Tối: #eeeeed | Insertion caret. |
--bh-editor-border | {color.border}#bdbcbbTối: #454443 | Editor frame. |
--bh-editor-syntax-comment | {color.text.subtlest}#5f5e5bTối: #a8a6a3 | Comments: neutral, readable, no dimming. |
--bh-editor-syntax-string | {color.text.success}#005c3aTối: #5ec18a | String literals, not success state indicators. |
--bh-editor-syntax-number | {color.text.warning}#8a3600Tối: #f5974e | Numeric literals, not warning state indicators. |
--bh-editor-syntax-keyword | {color.text.info}#005195Tối: #6bb3fa | Language keywords, not info state indicators. |
--bh-editor-syntax-type | {color.text}#2b2a28Tối: #eeeeed | Types and identifiers. |
--bh-editor-syntax-delimiter | {color.text.subtle}#42413fTối: #cdccc9 | Punctuation and delimiters. |
--bh-editor-diff-inserted-background | {color.background.success.subtle}#e6f6ebTối: #132d21 | Inserted diff text and lines; show + gutter marker. |
--bh-editor-diff-inserted-text | {color.text.success}#005c3aTối: #5ec18a | Inserted diff annotation; + or inserted label required. |
--bh-editor-diff-removed-background | {color.background.danger.subtle}#feebe9Tối: #3b1310 | Removed diff text and lines; show − gutter marker. |
--bh-editor-diff-removed-text | {color.text.danger}#9b1e20Tối: #ff8e84 | Removed diff annotation; − or removed label required. |
--bh-editor-font-family | {font.family.mono}"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace | Editor numeric API family from code.default. |
--bh-editor-font-size | {font.size.200}0.875rem | Editor numeric API size from code.default: 14px nominal. |
--bh-editor-font-lineHeight | 1.25remTiếng Việt (lang="vi"): 1.5rem | Editor numeric API line height: 20px nominal; Vietnamese 24px. |
--bh-editor-font-weight | {font.weight.regular}400 | Editor code weight. |
Sơ đồ
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-diagram-canvas | {color.surface.page}#ffffffTối: #181717 | Opaque viewport and image-export sheet; transparent live SVG/groups expose its grid. Pair with node and edge text. |
--bh-diagram-grid | {color.border}#bdbcbbTối: #454443 | Subtle dotted drawing grid, shared with native Data Flow; never an execution cue. |
--bh-diagram-group-fill | {color.background.neutral.subtle}transparent | Transparent graph-stage body: retain native grouping boundary/title without hiding the viewport's dotted grid. Export keeps the opaque canvas sheet behind it. |
--bh-diagram-grid-gap | {space.200}1rem | Native Data Flow dotted-grid interval in graph coordinates, transformed with the camera. |
--bh-diagram-grid-dot | {border.width.default}1px | Native Data Flow grid dot radius in graph coordinates. |
--bh-diagram-node-fill | {color.surface}#ffffffTối: #201f1f | Default and indeterminate node fill. |
--bh-diagram-node-border | {color.border.bold}#7b7976Tối: #878682 | Meaningful default and indeterminate node boundary. |
--bh-diagram-node-title | {color.text}#2b2a28Tối: #eeeeed | Node title on node-fill. |
--bh-diagram-node-desc | {color.text.subtle}#42413fTối: #cdccc9 | Descriptive node and inspector text on neutral surfaces. |
--bh-diagram-tile-bg | {color.background.neutral}#f1f1f0Tối: #282827 | Step-category glyph plate; not a status. |
--bh-diagram-tile-glyph | {color.icon}#42413fTối: #cdccc9 | Step-category glyph on tile-bg. |
--bh-diagram-state-ran-ok | {color.text.info}#005195Tối: #6bb3fa | Execution evidence without a reported failure. Informational blue and a completion marker, never business-success green. |
--bh-diagram-ran-ok-fill | {color.surface}#ffffffTối: #201f1f | Ran step fill; retain text and completion marker as non-colour cues. |
--bh-diagram-log-reached | {color.text.info}#005195Tối: #6bb3fa | Log-only reachability, paired with a reach marker; not a typed successful execution. |
--bh-diagram-log-unfinished | {color.text.warning}#8a3600Tối: #f5974e | Started interval without a recorded ending, paired with an ellipsis and dashed boundary; not a proven failure. |
--bh-diagram-fail-stroke | {color.text.danger}#9b1e20Tối: #ff8e84 | Proven failure boundary and native shared state-label paint; pair with fail-fill and the native failure marker. |
--bh-diagram-fail-fill | {color.background.danger.subtle}#feebe9Tối: #3b1310 | Failed execution node fill. |
--bh-diagram-fail-title | {color.text.danger}#9b1e20Tối: #ff8e84 | Failure title on fail-fill. |
--bh-diagram-fail-desc | {color.text.danger}#9b1e20Tối: #ff8e84 | Failure description on fail-fill. |
--bh-diagram-unreached-fill | {color.surface.subtle}#f1f1f0Tối: #201f1f | Never-reached node fill; not a disabled control. |
--bh-diagram-unreached-stroke | {color.border.bold}#7b7976Tối: #878682 | Solid never-reached boundary with an explicit state label. |
--bh-diagram-unreached-title | {color.text.subtle}#42413fTối: #cdccc9 | Never-reached title on unreached-fill. |
--bh-diagram-unreached-desc | {color.text.subtle}#42413fTối: #cdccc9 | Never-reached description on unreached-fill. |
--bh-diagram-nottaken-stroke | {color.text.subtle}#42413fTối: #cdccc9 | Dashed not-taken boundary; dashes and label distinguish it from never reached. |
--bh-diagram-nottaken-fill | {color.surface}#ffffffTối: #201f1f | Not-taken branch fill. |
--bh-diagram-nottaken-title | {color.text}#2b2a28Tối: #eeeeed | Not-taken title on nottaken-fill. |
--bh-diagram-nottaken-desc | {color.text.subtle}#42413fTối: #cdccc9 | Not-taken description on nottaken-fill. |
--bh-diagram-badge-bg | {color.surface}#ffffffTối: #201f1f | Repeat-count plate; repetition alone is not a warning. |
--bh-diagram-badge-text | {color.text.subtle}#42413fTối: #cdccc9 | Descriptive repeat count on badge-bg. |
--bh-diagram-badge-border | {color.border.bold}#7b7976Tối: #878682 | Repeat-count outline. |
--bh-diagram-edge | {color.border.bold}#7b7976Tối: #878682 | Meaningful neutral relation line and arrow. |
--bh-diagram-edge-label-text | {color.text.subtle}#42413fTối: #cdccc9 | Relation label on edge-label-bg. |
--bh-diagram-edge-label-bg | {color.surface.page}#ffffffTối: #181717 | Opaque relation label plate. |
--bh-diagram-panel-bg | {color.surface}#ffffffTối: #201f1f | Inspector evidence surface. |
--bh-diagram-panel-border | {color.border}#bdbcbbTối: #454443 | Decorative inspector divider, not an interactive boundary. |
--bh-diagram-code-bg | {color.surface}#ffffffTối: #201f1f | Structured key/value evidence surface; full code blocks use color.code roles. |
--bh-diagram-code-key | {color.text.subtle}#42413fTối: #cdccc9 | Evidence field label on code-bg; not a link. |
--bh-diagram-code-value | {color.text}#2b2a28Tối: #eeeeed | Evidence field value on code-bg. |
--bh-diagram-selection-ring | {color.border.focus}#005195Tối: #6bb3fa | Independent outer selection/hover ring on canvas; never replace run-state paint. |
--bh-diagram-node-font | {font.body.default}400 0.875rem/1.25rem Inter, "Noto Sans", system-ui, sans-serif | Default Mermaid node label; inherits Vietnamese line-height. |
--bh-diagram-card-width | 15rem | 240px measurable execution-step label card width; preserve fixed layout topology. |
--bh-diagram-tile-size | {size.target.touch}2.75rem | 44px step-category glyph tile inside execution-card labels, not an interaction target. |
--bh-diagram-glyph-size | {space.400}2rem | 32px category symbol ink size within tile-size; this is a glyph, not display text. |
--bh-diagram-preview-height | 45rem | 720px embedded authoring preview budget shared by the diagram and adjacent step-detail panel; fullscreen fills its host instead. |
--bh-diagram-minimum-height | 20rem | 320px minimum authoring-preview viewport budget. Read-only split diagrams instead shrink with their enclosing pane. |
--bh-diagram-evidence-height | 13.75rem | 220px embedded structured-result viewer height; content scrolls within this budget. |
--bh-diagram-evidence-minimum-height | 12rem | 192px minimum pane budget for multiple request bodies so one expanded part does not hide another. |
--bh-diagram-padding | {space.100}0.5rem | Internal Mermaid node padding. |
--bh-diagram-export-padding | {space.300}1.5rem | Breathing room around fitted and exported drawing bounds. |
Flow
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-flow-category-task-foreground | {color.blue.11}#005195Tối: #6bb3fa | task identity foreground; not a workflow status. |
--bh-flow-category-task-background | {color.blue.3}#e6f4feTối: #0d2847 | task identity background; not a workflow status. |
--bh-flow-category-task-border | {color.blue.9}#0077d5Tối: #0088f1 | task identity border; not a workflow status. |
--bh-flow-category-task-hover | {color.blue.4}#d5efffTối: #003362 | task identity hover; not a workflow status. |
--bh-flow-category-dependency-foreground | {color.red.11}#9b1e20Tối: #ff8e84 | dependency identity foreground; not a workflow status. |
--bh-flow-category-dependency-background | {color.red.3}#feebe9Tối: #3b1310 | dependency identity background; not a workflow status. |
--bh-flow-category-dependency-border | {color.red.9}#d83b39Tối: #ef4c48 | dependency identity border; not a workflow status. |
--bh-flow-category-dependency-hover | {color.red.4}#ffdbd7Tối: #50100f | dependency identity hover; not a workflow status. |
--bh-flow-category-transformation-foreground | {color.green.11}#005c3aTối: #5ec18a | transformation identity foreground; not a workflow status. |
--bh-flow-category-transformation-background | {color.green.3}#e6f6ebTối: #132d21 | transformation identity background; not a workflow status. |
--bh-flow-category-transformation-border | {color.green.9}#008753Tối: #1f9962 | transformation identity border; not a workflow status. |
--bh-flow-category-transformation-hover | {color.green.4}#d6f1dfTối: #113b29 | transformation identity hover; not a workflow status. |
--bh-flow-category-validation-foreground | {color.red.11}#9b1e20Tối: #ff8e84 | validation identity foreground; not a workflow status. |
--bh-flow-category-validation-background | {color.red.3}#feebe9Tối: #3b1310 | validation identity background; not a workflow status. |
--bh-flow-category-validation-border | {color.red.11}#9b1e20Tối: #ff8e84 | validation identity border; not a workflow status. |
--bh-flow-category-validation-hover | {color.red.4}#ffdbd7Tối: #50100f | validation identity hover; not a workflow status. |
--bh-flow-category-pushStep-foreground | {color.yellow.11}#764400Tối: #fcb017 | pushStep identity foreground; not a workflow status. |
--bh-flow-category-pushStep-background | {color.yellow.3}#fff1bdTối: #32210a | pushStep identity background; not a workflow status. |
--bh-flow-category-pushStep-border | {color.yellow.9}#a96700Tối: #bd7e1b | pushStep identity border; not a workflow status. |
--bh-flow-category-pushStep-hover | {color.yellow.4}#ffe59cTối: #422902 | pushStep identity hover; not a workflow status. |
--bh-flow-category-decision-foreground | #087b88Tối: #7bdce5 | Decision identity label on its paired surface; AA small-text contrast, independent of the frame and directed-edge stroke. |
--bh-flow-category-decision-background | #e8f8faTối: #123c43 | decision node surface. |
--bh-flow-category-decision-border | #087f8cTối: #7bdce5 | decision meaningful frame and directed edge. |
--bh-flow-category-decision-hover | #e8f8faTối: #123c43 | decision hovered surface; focus is separate. |
--bh-flow-category-loop-foreground | #ad2171Tối: #f3a0d1 | loop label on paired background. |
--bh-flow-category-loop-background | #fcecf5Tối: #411b34 | loop node surface. |
--bh-flow-category-loop-border | #ad2171Tối: #f3a0d1 | loop meaningful frame and directed edge. |
--bh-flow-category-loop-hover | #fcecf5Tối: #411b34 | loop hovered surface; focus is separate. |
--bh-flow-category-grouped-foreground | #7040a0Tối: #c9a2ee | grouped label on paired background. |
--bh-flow-category-grouped-background | #f3ecfaTối: #30213f | grouped node surface. |
--bh-flow-category-grouped-border | #7040a0Tối: #c9a2ee | grouped meaningful frame and directed edge. |
--bh-flow-category-grouped-hover | #f3ecfaTối: #30213f | grouped hovered surface; focus is separate. |
--bh-flow-geometry-task-width | 450px | Fixed operational task width; rendering and layout share this value. |
--bh-flow-geometry-task-height | 130px | Fixed operational task height; rendering and layout share this value. |
--bh-flow-geometry-task_dependency-width | 450px | Fixed operational task_dependency width; rendering and layout share this value. |
--bh-flow-geometry-task_dependency-height | 130px | Fixed operational task_dependency height; rendering and layout share this value. |
--bh-flow-geometry-task_transformation-width | 450px | Fixed operational task_transformation width; rendering and layout share this value. |
--bh-flow-geometry-task_transformation-height | 130px | Fixed operational task_transformation height; rendering and layout share this value. |
--bh-flow-geometry-task_data-width | 450px | Fixed operational task_data width; rendering and layout share this value. |
--bh-flow-geometry-task_data-height | 130px | Fixed operational task_data height; rendering and layout share this value. |
--bh-flow-geometry-validationGroup-width | 350px | Fixed operational validationGroup width; rendering and layout share this value. |
--bh-flow-geometry-validationGroup-height | 130px | Fixed operational validationGroup height; rendering and layout share this value. |
--bh-flow-geometry-transformationGroup-width | 350px | Fixed operational transformationGroup width; rendering and layout share this value. |
--bh-flow-geometry-transformationGroup-height | 130px | Fixed operational transformationGroup height; rendering and layout share this value. |
--bh-flow-geometry-pushStepsGroup-width | 350px | Fixed operational pushStepsGroup width; rendering and layout share this value. |
--bh-flow-geometry-pushStepsGroup-height | 130px | Fixed operational pushStepsGroup height; rendering and layout share this value. |
--bh-flow-geometry-validation-width | 200px | Fixed operational validation width; rendering and layout share this value. |
--bh-flow-geometry-validation-height | 130px | Fixed operational validation height; rendering and layout share this value. |
--bh-flow-geometry-transformation-width | 200px | Fixed operational transformation width; rendering and layout share this value. |
--bh-flow-geometry-transformation-height | 130px | Fixed operational transformation height; rendering and layout share this value. |
--bh-flow-geometry-push_step-width | 200px | Fixed operational push_step width; rendering and layout share this value. |
--bh-flow-geometry-push_step-height | 130px | Fixed operational push_step height; rendering and layout share this value. |
--bh-flow-geometry-decision-width | 160px | Fixed operational decision width; rendering and layout share this value. |
--bh-flow-geometry-decision-height | 160px | Fixed operational decision height; rendering and layout share this value. |
--bh-flow-geometry-loop-width | 120px | Fixed operational loop width; rendering and layout share this value. |
--bh-flow-geometry-loop-height | 120px | Fixed operational loop height; rendering and layout share this value. |
--bh-flow-geometry-profile-width | 240px | Fixed operational profile width; rendering and layout share this value. |
--bh-flow-geometry-profile-height | 100px | Fixed operational profile height; rendering and layout share this value. |
--bh-flow-grid-HORIZONTAL | 80px | Operational graph grid HORIZONTAL; preserve graph coordinates. |
--bh-flow-grid-VERTICAL | 40px | Operational graph grid VERTICAL; preserve graph coordinates. |
--bh-flow-grid-TASK_DATA_X_GAP | 300px | Operational graph grid TASK_DATA_X_GAP; preserve graph coordinates. |
--bh-flow-grid-GROUP_Y_OFFSET | 200px | Operational graph grid GROUP_Y_OFFSET; preserve graph coordinates. |
--bh-flow-layout-VALIDATION_NODE_Y_GAP | 100px | Operational graph layout VALIDATION_NODE_Y_GAP; preserve graph coordinates. |
--bh-flow-layout-TRANSFORMATION_NODE_Y_GAP | 100px | Operational graph layout TRANSFORMATION_NODE_Y_GAP; preserve graph coordinates. |
--bh-flow-layout-PUSH_STEP_NODE_Y_GAP | 80px | Operational graph layout PUSH_STEP_NODE_Y_GAP; preserve graph coordinates. |
--bh-flow-layout-PUSH_STEP_NODE_X_GAP | 120px | Operational graph layout PUSH_STEP_NODE_X_GAP; preserve graph coordinates. |
--bh-flow-layout-PUSH_STEP_BRANCH_X_GAP | 200px | Operational graph layout PUSH_STEP_BRANCH_X_GAP; preserve graph coordinates. |
--bh-flow-layout-EXPANDED_GROUP_X | 50px | Operational graph layout EXPANDED_GROUP_X; preserve graph coordinates. |
--bh-flow-layout-EXPANDED_GROUP_Y_START | 50px | Operational graph layout EXPANDED_GROUP_Y_START; preserve graph coordinates. |
--bh-flow-layout-TREE_LEVEL_Y_GAP | 150px | Operational graph layout TREE_LEVEL_Y_GAP; preserve graph coordinates. |
--bh-flow-layout-TREE_SIBLING_X_GAP | 250px | Operational graph layout TREE_SIBLING_X_GAP; preserve graph coordinates. |
--bh-flow-layout-TREE_MIN_WIDTH | 200px | Operational graph layout TREE_MIN_WIDTH; preserve graph coordinates. |
--bh-flow-edge-width | {border.width.selected}2px | Operational graph edge width; preserve graph coordinates. |
--bh-flow-edge-marker | {space.200}1rem | Operational graph edge marker; preserve graph coordinates. |
--bh-flow-edge-radius | {space.250}1.25rem | Operational graph edge radius; preserve graph coordinates. |
--bh-flow-edge-handle | {space.150}0.75rem | Operational graph edge handle; preserve graph coordinates. |
Trực quan hóa dữ liệu
| Token | Giá trị | Mô tả |
|---|---|---|
--bh-visualization-metric-total-jobs | {color.text.info}#005195Tối: #6bb3fa | Total execution volume, not an execution status; pair with a named series and values. |
--bh-visualization-metric-success-rate | {color.text.success}#005c3aTối: #5ec18a | Successful execution proportion; thresholds remain explicit in text. |
--bh-visualization-metric-completed | {color.text.success}#005c3aTối: #5ec18a | Completed execution count, with a completed label. |
--bh-visualization-metric-failed | {color.text.danger}#9b1e20Tối: #ff8e84 | Failed execution count, with a failed label. |
--bh-visualization-metric-active-jobs | {color.text.info}#005195Tối: #6bb3fa | Currently active executions, not a success assessment. |
--bh-visualization-metric-avg-execution-time | {color.text.subtle}#42413fTối: #cdccc9 | Average execution duration; duration alone does not imply warning. |
--bh-visualization-metric-queue-depth | {color.text}#2b2a28Tối: #eeeeed | Queued execution volume; backlog alone does not imply failure. |
--bh-visualization-job-type-queue-status | {color.blue.11}#005195Tối: #6bb3fa | Queue-status categorical identity. Never infer processing status from this colour. |
--bh-visualization-job-type-sync-history | {color.green.11}#005c3aTối: #5ec18a | Sync-history categorical identity. Never infer success from this colour. |
--bh-visualization-job-type-polling-jobs | {color.orange.11}#8a3600Tối: #f5974e | Polling categorical identity. Never infer warning from this colour. |
--bh-visualization-job-type-generic-jobs | {color.graphite.11}#42413fTối: #cdccc9 | Generic-job categorical identity. Always include job-type text or a distinct glyph. |
--bh-visualization-priority-1 | {color.text.danger}#9b1e20Tối: #ff8e84 | Highest queue urgency, explicitly labelled P1; not a failed execution. |
--bh-visualization-priority-2 | {color.text.warning}#8a3600Tối: #f5974e | High queue urgency, explicitly labelled P2; not a warning outcome. |
--bh-visualization-priority-3 | {color.text.info}#005195Tối: #6bb3fa | Normal queue urgency, explicitly labelled P3. |
--bh-visualization-priority-4 | {color.text.subtle}#42413fTối: #cdccc9 | Low queue urgency, explicitly labelled P4; not a success outcome. |
--bh-visualization-priority-5 | {color.text.subtlest}#5f5e5bTối: #a8a6a3 | Lowest queue urgency, explicitly labelled P5. |
--bh-visualization-traffic-healthy-fill | {color.background.success.subtle}#e6f6ebTối: #132d21 | Accepted traffic; show its label. |
--bh-visualization-traffic-healthy-outline | {color.border.success}#008753Tối: #37a971 | Accepted traffic; show its label. |
--bh-visualization-traffic-attention-fill | {color.background.warning.subtle}#ffefd6Tối: #331e0b | Lower reject-ratio threshold; distinct label and pattern from degraded. |
--bh-visualization-traffic-attention-outline | {color.border.warning}#ba4e00Tối: #ef7200 | Lower reject-ratio threshold; distinct label and pattern from degraded. |
--bh-visualization-traffic-degraded-fill | {color.background.warning.subtle}#ffefd6Tối: #331e0b | Higher reject-ratio threshold; distinct label and pattern from attention. |
--bh-visualization-traffic-degraded-outline | {color.border.warning}#ba4e00Tối: #ef7200 | Higher reject-ratio threshold; distinct label and pattern from attention. |
--bh-visualization-traffic-critical-fill | {color.background.danger.subtle}#feebe9Tối: #3b1310 | Critical rejected-request ratio, not a failed fetch. |
--bh-visualization-traffic-critical-outline | {color.border.danger}#d83b39Tối: #ff615a | Critical rejected-request ratio, not a failed fetch. |
--bh-visualization-traffic-unavailable-fill | {color.surface.subtle}#f1f1f0Tối: #201f1f | No requests to assess; not a backend failure. |
--bh-visualization-traffic-unavailable-outline | {color.border.bold}#7b7976Tối: #878682 | No requests to assess; not a backend failure. |
--bh-visualization-traffic-fault-fill | {color.background.danger.subtle}#feebe9Tối: #3b1310 | Backend/internal request-processing faults; show a separate count and explicit fault label/icon, not a rejected-ratio threshold. |
--bh-visualization-traffic-fault-outline | {color.border.danger}#d83b39Tối: #ff615a | Backend/internal request-processing faults; show a separate count and explicit fault label/icon, not a rejected-ratio threshold. |
--bh-visualization-line-width | {border.width.selected}2px | Primary chart series stroke in CSS pixels. |
--bh-visualization-sparkline-width | {border.width.default}1px | Compact sparkline stroke in CSS pixels. |
--bh-visualization-grid-width | {border.width.default}1px | Chart grid and crosshair stroke in CSS pixels. |
--bh-visualization-sparkline-point-radius | {space.025}0.125rem | Compact sparkline endpoint radius. |
--bh-visualization-timeline-node-size | {space.200}1rem | Desktop timeline outer job-type mark diameter. |
--bh-visualization-timeline-node-inner-size | {space.100}0.5rem | Desktop timeline inner execution-status mark diameter. |
--bh-visualization-timeline-node-touch-size | {space.250}1.25rem | Touch and tablet outer timeline mark diameter; hit target remains size.target.touch. |
--bh-visualization-timeline-node-touch-inner-size | {space.150}0.75rem | Touch timeline inner status diameter. |
--bh-visualization-timeline-node-tablet-inner-size | {space.100}0.5rem | Tablet timeline inner status diameter. |
--bh-visualization-timeline-cluster-size | {space.300}1.5rem | Minimum aggregated timeline count marker diameter. |
--bh-visualization-chart-height | 120px | Operational trend chart plotting height. |
--bh-visualization-chart-initial-width | 400px | Initial plot width before measurement; replaced by actual container width. |
--bh-visualization-sparkline-height | {space.500}2.5rem | Standard compact trend plotting height. |
--bh-visualization-sparkline-compact-height | {space.400}2rem | Metric tile sparkline plotting height. |
--bh-visualization-sparkline-initial-width | 100px | Initial sparkline width before measurement. |
--bh-visualization-point-radius | {space.050}0.25rem | Normal chart sample marker radius. |
--bh-visualization-hover-point-radius | {space.075}0.375rem | Hovered chart sample marker radius; larger than normal independently of colour. |
--bh-visualization-failure-shadow | 0 0 {space.050} {color.border.danger}0 0 0.25rem #d83b39Tối: 0 0 0.25rem #ff615a | Opt-in failed-event shadow for a categorical SVG mark or DOM dot. Zero offset and no spread/border preserve the job-family fill; the danger colour follows the active theme, independently of keyboard focus. A grouped mark opts in when any represented event failed; grouping remains consumer data logic. |
--bh-visualization-ring-width | 10 | Ant Design dashboard progress stroke width, in percent of its viewBox. |
--bh-visualization-ring-size | 140px | Operational health progress ring diameter. |
--bh-visualization-ring-gap | 75 | Operational health dashboard ring opening in degrees. |
--bh-visualization-timeline-track-height | {space.075}0.375rem | Compact summary and grouped execution track thickness. |
--bh-visualization-activity-track-height | {space.100}0.5rem | Activity timeline track thickness with internal event segments. |
--bh-visualization-legend-mark-size | {space.100}0.5rem | 8 px. Colour mark beside a legend label. |