Trên trang này

Tất cả design token

Mọi token của Beehexa ở một chỗ, kèm giá trị ở giao diện sáng và tối và việc nó làm. Tìm theo tên, giá trị hoặc công dụng.

Đã 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

TokenGiá trịMô tả
--bh-color-brand-yellow#fcb017Và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#2b2a28Graphite thương hiệu. Chữ và nút chính.
--bh-color-brand-white#ffffffTrắng thương hiệu.
--bh-color-static-white#ffffffTrắ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: #181717Nền ứng dụng.
--bh-color-graphite-2#f1f1f0Tối: #201f1fNền nhạt: đầu bảng, vùng tĩnh.
--bh-color-graphite-3#e5e5e4Tối: #282827Nền component khi nghỉ.
--bh-color-graphite-4#d9d9d8Tối: #31302fNền component khi rê chuột.
--bh-color-graphite-5#cdcccbTối: #393937Nền component khi nhấn hoặc đã chọn.
--bh-color-graphite-6#bdbcbbTối: #454443Viền nhạt: đường chia, card.
--bh-color-graphite-7#aaa9a8Tối: #555452Viền của phần tử tương tác.
--bh-color-graphite-8#949390Tối: #6b6a67Viền đậm. Chữ và icon vô hiệu (text.disabled, icon.disabled).
--bh-color-graphite-9#7b7976Tối: #878682Cạ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: #a8a6a3Chữ cấp ba (text.subtlest) và icon phụ (icon.subtle). Nút chính khi nhấn.
--bh-color-graphite-11#42413fTối: #cdccc9Chữ phụ (text.subtle) và icon mặc định. Nút chính khi rê chuột.
--bh-color-graphite-12#2b2a28Tối: #eeeeedChữ 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: #ffffff00Graphite 1, trong suốt.
--bh-color-graphite-alpha-2#0000000cTối: #ffffff09Graphite 2, trong suốt.
--bh-color-graphite-alpha-3#00000018Tối: #ffffff12Graphite 3, trong suốt.
--bh-color-graphite-alpha-4#00000024Tối: #ffffff1aGraphite 4, trong suốt.
--bh-color-graphite-alpha-5#00000031Tối: #ffffff24Graphite 5, trong suốt.
--bh-color-graphite-alpha-6#00000041Tối: #ffffff31Graphite 6, trong suốt.
--bh-color-graphite-alpha-7#00000054Tối: #ffffff42Graphite 7, trong suốt.
--bh-color-graphite-alpha-8#0000006bTối: #ffffff59Graphite 8, trong suốt.
--bh-color-graphite-alpha-9#00000085Tối: #ffffff78Graphite 9, trong suốt.
--bh-color-graphite-alpha-10#000000a1Tối: #ffffff9cGraphite 10, trong suốt.
--bh-color-graphite-alpha-11#000000bdTối: #ffffffc6Graphite 11, trong suốt.
--bh-color-graphite-alpha-12#000000d4Tối: #ffffffebGraphite 12, trong suốt.
--bh-color-yellow-1#fefdf4Tối: #17130dNền ứng dụng.
--bh-color-yellow-2#fff9ddTối: #1d170fNền nhạt: đầu bảng, vùng tĩnh.
--bh-color-yellow-3#fff1bdTối: #32210aNền component khi nghỉ.
--bh-color-yellow-4#ffe59cTối: #422902Nền component khi rê chuột.
--bh-color-yellow-5#ffd87cTối: #513304Nền component khi nhấn hoặc đã chọn.
--bh-color-yellow-6#ffc757Tối: #61400cViền nhạt: đường chia, card.
--bh-color-yellow-7#fcb017Tối: #74501cViền của phần tử tương tác.
--bh-color-yellow-8#d68b00Tối: #9a6613Viền đậm.
--bh-color-yellow-9#a96700Tối: #bd7e1bNền đặc.
--bh-color-yellow-10#905600Tối: #db9517Nền đặc khi rê chuột.
--bh-color-yellow-11#764400Tối: #fcb017Chữ tương phản thấp.
--bh-color-yellow-12#4a3015Tối: #f2dba4Chữ tương phản cao.
--bh-color-blue-1#fbfdffTối: #0d1520Nền ứng dụng.
--bh-color-blue-2#f4faffTối: #111927Nền nhạt: đầu bảng, vùng tĩnh.
--bh-color-blue-3#e6f4feTối: #0d2847Nền component khi nghỉ.
--bh-color-blue-4#d5efffTối: #003362Nền component khi rê chuột.
--bh-color-blue-5#c2e5ffTối: #004074Nền component khi nhấn hoặc đã chọn.
--bh-color-blue-6#acd8fcTối: #104d87Viền nhạt: đường chia, card.
--bh-color-blue-7#8ec8f6Tối: #205d9eViền của phần tử tương tác.
--bh-color-blue-8#52a1e6Tối: #1b6fc5Viền đậm.
--bh-color-blue-9#0077d5Tối: #0088f1Nền đặc.
--bh-color-blue-10#0064b5Tối: #3599faNền đặc khi rê chuột.
--bh-color-blue-11#005195Tối: #6bb3faChữ tương phản thấp.
--bh-color-blue-12#113264Tối: #b8dcf5Chữ tương phản cao.
--bh-color-green-1#fbfefcTối: #0e1512Nền ứng dụng.
--bh-color-green-2#f4fbf6Tối: #121b17Nền nhạt: đầu bảng, vùng tĩnh.
--bh-color-green-3#e6f6ebTối: #132d21Nền component khi nghỉ.
--bh-color-green-4#d6f1dfTối: #113b29Nền component khi rê chuột.
--bh-color-green-5#c4e8d1Tối: #174933Nền component khi nhấn hoặc đã chọn.
--bh-color-green-6#adddc0Tối: #20573eViền nhạt: đường chia, card.
--bh-color-green-7#8eceaaTối: #28684aViền của phần tử tương tác.
--bh-color-green-8#51ac7dTối: #207d54Viền đậm.
--bh-color-green-9#008753Tối: #1f9962Nền đặc.
--bh-color-green-10#007246Tối: #37a971Nền đặc khi rê chuột.
--bh-color-green-11#005c3aTối: #5ec18aChữ tương phản thấp.
--bh-color-green-12#193b2dTối: #a6e5c0Chữ tương phản cao.
--bh-color-orange-1#fefcfbTối: #17120eNền ứng dụng.
--bh-color-orange-2#fff7edTối: #1e160fNền nhạt: đầu bảng, vùng tĩnh.
--bh-color-orange-3#ffefd6Tối: #331e0bNền component khi nghỉ.
--bh-color-orange-4#ffdfb5Tối: #462100Nền component khi rê chuột.
--bh-color-orange-5#ffd19aTối: #562800Nền component khi nhấn hoặc đã chọn.
--bh-color-orange-6#ffc182Tối: #66350cViền nhạt: đường chia, card.
--bh-color-orange-7#f5ae73Tối: #7e451dViền của phần tử tương tác.
--bh-color-orange-8#df8547Tối: #ab5315Viền đậm.
--bh-color-orange-9#ba4e00Tối: #db6200Nền đặc.
--bh-color-orange-10#a74500Tối: #ef7200Nền đặc khi rê chuột.
--bh-color-orange-11#8a3600Tối: #f5974eChữ tương phản thấp.
--bh-color-orange-12#582d1dTối: #f1d2b4Chữ tương phản cao.
--bh-color-red-1#fffcfcTối: #191110Nền ứng dụng.
--bh-color-red-2#fff7f6Tối: #201312Nền nhạt: đầu bảng, vùng tĩnh.
--bh-color-red-3#feebe9Tối: #3b1310Nền component khi nghỉ.
--bh-color-red-4#ffdbd7Tối: #50100fNền component khi rê chuột.
--bh-color-red-5#ffcec8Tối: #611716Nền component khi nhấn hoặc đã chọn.
--bh-color-red-6#fdbeb7Tối: #722421Viền nhạt: đường chia, card.
--bh-color-red-7#f4aaa2Tối: #8c3430Viền của phần tử tương tác.
--bh-color-red-8#eb7a71Tối: #bc403bViền đậm.
--bh-color-red-9#d83b39Tối: #ef4c48Nền đặc.
--bh-color-red-10#ba2d2dTối: #ff615aNền đặc khi rê chuột.
--bh-color-red-11#9b1e20Tối: #ff8e84Chữ tương phản thấp.
--bh-color-red-12#641817Tối: #facdc8Chữ tương phản cao.
--bh-color-text{color.graphite.12}#2b2a28Tối: #eeeeedChữ mặc định.
--bh-color-text-subtle{color.graphite.11}#42413fTối: #cdccc9Chữ phụ: mô tả, cột phụ của bảng, điều hướng.
--bh-color-text-subtlest{color.graphite.10}#5f5e5bTối: #a8a6a3Chữ 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: #6b6a67Chữ 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: #181717Chữ trên background.neutral.bold và surface.inverse.
--bh-color-text-on-bold{color.static.white}#ffffffTối: {color.graphite.1} → #181717Chữ 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}#2b2a28Chữ trên nền vàng thương hiệu (7.76:1).
--bh-color-text-danger{color.red.11}#9b1e20Tối: #ff8e84Chữ nguy hiểm.
--bh-color-text-warning{color.orange.11}#8a3600Tối: #f5974eChữ cảnh báo.
--bh-color-text-success{color.green.11}#005c3aTối: #5ec18aChữ thành công.
--bh-color-text-info{color.blue.11}#005195Tối: #6bb3faChữ thông tin.
--bh-color-icon{color.graphite.11}#42413fTối: #cdccc9Màu icon mặc định.
--bh-color-icon-subtle{color.graphite.10}#5f5e5bTối: #a8a6a3Icon phụ, cạnh text.subtle hoặc text.subtlest.
--bh-color-icon-disabled{color.graphite.8}#949390Tối: #6b6a67Icon của control vô hiệu.
--bh-color-icon-inverse{color.graphite.1}#fdfdfcTối: #181717Icon trên background.neutral.bold và surface.inverse.
--bh-color-icon-on-bold{color.static.white}#ffffffTối: {color.graphite.1} → #181717Icon trên nền trạng thái đặc.
--bh-color-icon-danger{color.red.11}#9b1e20Tối: #ff8e84Icon nguy hiểm.
--bh-color-icon-warning{color.orange.11}#8a3600Tối: #f5974eIcon cảnh báo.
--bh-color-icon-success{color.green.11}#005c3aTối: #5ec18aIcon thành công.
--bh-color-icon-info{color.blue.11}#005195Tối: #6bb3faIcon thông tin.
--bh-color-link{color.blue.11}#005195Tối: #6bb3faChữ liên kết.
--bh-color-link-hover{color.blue.12}#113264Tối: #b8dcf5Liên kết khi rê chuột.
--bh-color-background-primary{color.background.neutral.bold}#2b2a28Tối: #eeeeedHà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: #cdccc9Hành động chính khi hover.
--bh-color-background-primary-pressed{color.background.neutral.bold.pressed}#5f5e5bTối: #a8a6a3Hành động chính khi nhấn.
--bh-color-background-neutral{color.graphite.2}#f1f1f0Tối: {color.graphite.3} → #282827Nề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} → #31302fNền trung tính khi rê chuột.
--bh-color-background-neutral-pressed{color.graphite.4}#d9d9d8Tối: {color.graphite.5} → #393937Nền trung tính khi nhấn.
--bh-color-background-neutral-subtletransparentTrong 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} → #ffffff09Dò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} → #ffffff12Dò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: #eeeeedNú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: #cdccc9Nú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: #a8a6a3Nú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} → #ffffff12Control 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} → #ffffff1aControl 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} → #31302fDò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} → #393937Dòng hoặc mục đã chọn khi rê chuột.
--bh-color-background-disabled{color.graphite.2}#f1f1f0Tối: {color.graphite.3} → #282827Nền của control vô hiệu.
--bh-color-background-brand-subtle{color.yellow.2}#fff9ddTối: #1d170fBề mặt và ghi chú thương hiệu.
--bh-color-background-brand-bold{color.brand.yellow}#fcb017Nề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: #3b1310Nền panel hoặc nhãn nguy hiểm.
--bh-color-background-danger-subtle-hover{color.red.4}#ffdbd7Tối: #50100fNền nguy hiểm nhạt khi rê chuột.
--bh-color-background-danger-subtle-pressed{color.red.5}#ffcec8Tối: #611716Nền nguy hiểm nhạt khi nhấn.
--bh-color-background-danger{color.red.5}#ffcec8Tối: #611716Nền nguy hiểm, đậm hơn subtle.
--bh-color-background-danger-bold{color.red.9}#d83b39Tối: #ef4c48Nề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: #ff615aNền nguy hiểm đặc khi rê chuột.
--bh-color-background-danger-bold-pressed{color.red.11}#9b1e20Tối: #ff8e84Nền nguy hiểm đặc khi nhấn.
--bh-color-background-warning-subtle{color.orange.3}#ffefd6Tối: #331e0bNền panel hoặc nhãn cảnh báo.
--bh-color-background-warning-subtle-hover{color.orange.4}#ffdfb5Tối: #462100Nền cảnh báo nhạt khi rê chuột.
--bh-color-background-warning-subtle-pressed{color.orange.5}#ffd19aTối: #562800Nền cảnh báo nhạt khi nhấn.
--bh-color-background-warning{color.orange.5}#ffd19aTối: #562800Nền cảnh báo, đậm hơn subtle.
--bh-color-background-warning-bold{color.orange.9}#ba4e00Tối: #db6200Nề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: #ef7200Nền cảnh báo đặc khi rê chuột.
--bh-color-background-warning-bold-pressed{color.orange.11}#8a3600Tối: #f5974eNền cảnh báo đặc khi nhấn.
--bh-color-background-success-subtle{color.green.3}#e6f6ebTối: #132d21Nền panel hoặc nhãn thành công.
--bh-color-background-success-subtle-hover{color.green.4}#d6f1dfTối: #113b29Nền thành công nhạt khi rê chuột.
--bh-color-background-success-subtle-pressed{color.green.5}#c4e8d1Tối: #174933Nền thành công nhạt khi nhấn.
--bh-color-background-success{color.green.5}#c4e8d1Tối: #174933Nền thành công, đậm hơn subtle.
--bh-color-background-success-bold{color.green.9}#008753Tối: #1f9962Nề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: #37a971Nền thành công đặc khi rê chuột.
--bh-color-background-success-bold-pressed{color.green.11}#005c3aTối: #5ec18aNền thành công đặc khi nhấn.
--bh-color-background-info-subtle{color.blue.3}#e6f4feTối: #0d2847Nền panel hoặc nhãn thông tin.
--bh-color-background-info-subtle-hover{color.blue.4}#d5efffTối: #003362Nền thông tin nhạt khi rê chuột.
--bh-color-background-info-subtle-pressed{color.blue.5}#c2e5ffTối: #004074Nền thông tin nhạt khi nhấn.
--bh-color-background-info{color.blue.5}#c2e5ffTối: #004074Nền thông tin, đậm hơn subtle.
--bh-color-background-info-bold{color.blue.9}#0077d5Tối: #0088f1Nề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: #3599faNền thông tin đặc khi rê chuột.
--bh-color-background-info-bold-pressed{color.blue.11}#005195Tối: #6bb3faNền thông tin đặc khi nhấn.
--bh-color-surface{color.brand.white}#ffffffTối: {color.graphite.2} → #201f1fCard 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} → #181717Nề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} → #282827Nề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} → #31302fMụ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} → #393937Mụ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} → #393937Mụ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} → #393937Mụ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: #eeeeedBề mặt đảo màu: tooltip. Chữ ở trên dùng text.inverse.
--bh-color-surface-scrimrgb(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: #454443Viền mặc định: đường chia, card, bảng.
--bh-color-border-bold{color.graphite.9}#7b7976Tối: #878682Cạ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: #555452Viề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: #454443Viền của control vô hiệu.
--bh-color-border-focus{color.blue.11}#005195Tối: #6bb3faVò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} → #fcb017Thanh đá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}#fcb017Viền thương hiệu, như nhãn early-access.
--bh-color-border-brand-subtle{color.yellow.6}#ffc757Tối: #61400cViề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} → #ff615aViề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: #8c3430Viền của panel nguy hiểm.
--bh-color-border-warning{color.orange.9}#ba4e00Tối: {color.orange.10} → #ef7200Viề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: #7e451dViền của panel cảnh báo.
--bh-color-border-success{color.green.9}#008753Tối: {color.green.10} → #37a971Viề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: #28684aViền của panel thành công.
--bh-color-border-info{color.blue.9}#0077d5Tối: {color.blue.10} → #3599faViề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: #205d9eViền của panel thông tin.
--bh-color-skeleton{color.graphite.4}#d9d9d8Tối: #31302fKhối giữ chỗ khi đang tải.
--bh-color-skeleton-subtle{color.graphite.3}#e5e5e4Tối: #282827Vệ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} → #181717Nền khối code.
--bh-color-code-text{color.graphite.2}#f1f1f0Tối: {color.graphite.12} → #eeeeedChữ trong khối code.

Chữ

TokenGiá 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-sansInter, "Noto Sans", system-ui, sans-serifMọ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, monospaceCode, ID, khóa và tên token.
--bh-font-size-1000.75rem12 px. Chữ nội dung nhỏ, nhãn nhỏ, chú thích.
--bh-font-size-2000.875rem14 px. Chữ giao diện mặc định, nhãn, code, tiêu đề nhỏ nhất.
--bh-font-size-3001rem16 px. Chữ để đọc, tiêu đề card.
--bh-font-size-4001.25rem20 px. Tiêu đề mục.
--bh-font-size-5001.5rem24 px. Tiêu đề trang.
--bh-font-size-6002rem32 px. Tiêu đề lớn.
--bh-font-size-7003rem48 px. Chữ trưng bày, chỉ cho marketing.
--bh-font-size-8003.75rem60 px. Chữ trưng bày, chỉ cho marketing.
--bh-font-size-9004.5rem72 px. Chữ trưng bày, chỉ cho marketing.
--bh-font-weight-regular400Chữ nội dung.
--bh-font-weight-medium500Nhãn: nút, nhãn form, tab, mục menu.
--bh-font-weight-semibold600Tiêu đề.
--bh-font-weight-bold700Chỉ 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-serif72/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-serif60/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-serif48/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-serif32/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-serif24/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-serif20/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-serif16/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-serif14/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-serif16/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-serif14/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-serif12/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-serif14/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-serif12/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, monospace14/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

TokenGiá trịMô tả
--bh-space-000. Các phần tử dính liền, như các nút trong một segmented group.
--bh-space-0250.125rem2 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-0500.25rem4 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-0750.375rem6 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-1000.5rem8 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-1500.75rem12 px. Padding ngang của control 32 px, như ô nhập và nút, và của ô bảng.
--bh-space-2001rem16 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-2501.25rem20 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-3001.5rem24 px. Bên trong card, panel và dialog. Giữa các tab. Lề trang và gutter lưới từ 768 px.
--bh-space-4002rem32 px. Giữa các nhóm, như các phần của form. Lề trang từ 1440 px.
--bh-space-5002.5rem40 px. Quanh trạng thái trống.
--bh-space-6003rem48 px. Giữa các phần của trang.
--bh-space-8004rem64 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-10005rem80 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.

TokenGiá trịMô tả
--bh-space-control-x{space.150}0.75remLề ngang của control 32 px: nút, ô nhập, select.
--bh-space-control-x-small{space.100}0.5remLề ngang của control 24 px.
--bh-space-control-x-large{space.200}1remLề ngang của control 40 px ở trang đăng nhập và onboarding.
--bh-space-control-gap{space.050}0.25remGiữa icon và chữ trong một control.
--bh-space-item-x{space.150}0.75remLề ngang của item trong menu, danh sách và thanh điều hướng bên.
--bh-space-overlay{space.050}0.25remBê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.25remGiữa menu, popover hoặc tooltip và phần tử đã mở nó.
--bh-space-overlay-content{space.200}1rem16 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.5remBên trong card và panel.
--bh-space-modal{space.300}1.5remBên trong dialog và drawer.
--bh-space-modal-gap{space.200}1remGiữa tiêu đề, nội dung và nút của dialog hoặc drawer.
--bh-space-table-cell-x{space.150}0.75remLề ngang của ô bảng.
--bh-space-table-cell-y{space.100}0.5remLề trên và dưới của ô bảng.
--bh-space-stack{space.200}1remGiữ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}2remGiữa các nhóm xếp theo cột, như các phần của một form.

Kích thước

TokenGiá trịMô tả
--bh-size-control-small1.5rem24 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-default2rem32 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-large2.5rem40 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-minimum1.5rem24 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-touch2.75rem44 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-default1rem16 px. Cỡ icon mặc định: nút, menu, bảng, ô nhập, cạnh chữ 14 px.
--bh-size-icon-medium1.25rem20 px. Icon cạnh chữ 16 px, trong thanh công cụ và page header.
--bh-size-icon-large1.5rem24 px. Icon đứng riêng, như trạng thái trong card hoặc trạng thái trống nhỏ.
--bh-size-icon-empty2rem32 px. Chỉ cho trạng thái trống.
--bh-size-tooltip-max-width15rem240 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.25rem4 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-width8rem128 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-width18rem288 px. Chiều rộng popover hoặc hover card chứa nội dung.
--bh-size-overlay-max-height18rem288 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-default32rem512 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-small24rem384 px. Độ rộng tối đa của alert dialog hoặc drawer bên chứa ít control.
--bh-size-dialog-xsmall20rem320 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

TokenGiá trịMô tả
--bh-radius-000. 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-0250.125rem2 px. Chi tiết nhỏ: badge, checkbox và phím tắt.
--bh-radius-0500.25rem4 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-0750.375rem6 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-1000.5rem8 px. Phần tử chứa: card, alert và banner, khung trong trang, và UI nổi như menu, popover, toast.
--bh-radius-1500.75rem12 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-2001rem16 px. Khung media lớn: khung xem video và ảnh. Không component nào dùng mặc định.
--bh-radius-full999pxViê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.

TokenGiá trịMô tả
--bh-radius-control{radius.075}0.375remNút, ô nhập, select và item của thanh điều hướng bên.
--bh-radius-control-small{radius.050}0.25remControl 24 px: nút nhỏ và field đi kèm.
--bh-radius-item{radius.050}0.25remItem trong menu và danh sách. Lồng trong radius.overlay với space.overlay.
--bh-radius-card{radius.100}0.5remCard, alert, banner và khung trong trang.
--bh-radius-overlay{radius.100}0.5remUI nổi: menu, popover, danh sách của select và toast.
--bh-radius-modal{radius.150}0.75remDialog, drawer và khung chứa cả trang.
--bh-radius-pill{radius.full}999pxAvatar, switch và chip.

Viền

TokenGiá trịMô tả
--bh-border-width-default1px1 px. Ô nhập, button phụ, card, bảng và đường phân cách.
--bh-border-width-selected2px2 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-focused2px2 px. Focus ring. Đi cùng color.border.focus và state.focus.offset.
--bh-border-width-accent4px4 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ờ

TokenGiá trịMô tả
--bh-opacity-disabled0.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

TokenGiá trịMô tả
--bh-elevation-shadow-raised0 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-overlay0 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-modal0 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

TokenGiá trịMô tả
--bh-z-index-sticky100Header của bảng và thanh công cụ dính lại khi cuộn trang.
--bh-z-index-navigation200Header của app và menu bên trái.
--bh-z-index-overlay300Dropdown, menu, popover và danh sách xổ xuống của select.
--bh-z-index-modal400Dialog, drawer và lớp phủ mờ phía sau chúng.
--bh-z-index-spotlight500Tour hướng dẫn và vùng làm nổi bật khi onboarding, nằm trên dialog.
--bh-z-index-tooltip600Tooltip, nằm trên mọi thành phần người dùng thao tác được.
--bh-z-index-toast700Toast và skip link: luôn nằm trên cùng.

Chuyển động

TokenGiá trịMô tả
--bh-motion-duration-instant0ms0 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-fast100ms100 ms. Hover, nhấn, đổi màu; đóng tooltip, menu, toast; thả vật đang kéo.
--bh-motion-duration-default200ms200 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-slow300ms300 ms. Mở dialog và drawer; đóng sheet toàn màn hình.
--bh-motion-duration-slower400ms400 ms. Mở sheet toàn màn hình và các bề mặt lớn khác.
--bh-motion-duration-slowest600ms600 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-show300ms300 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-hide100ms100 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-spinner1000ms1000 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-toast5000ms5 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-action10000ms10 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-spinner1000ms1 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-standardcubic-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-entercubic-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-exitcubic-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-linearcubic-bezier(0, 0, 1, 1)Tốc độ đều. Mờ dần, đổi màu, thanh tiến trình và spinner.
--bh-motion-easing-emphasizedcubic-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-enter0.5rem8 px. Quãng menu, popover hoặc toast trượt khi đi vào.
--bh-motion-keyframe-offset-exit0.25rem4 px. Quãng trượt khi rời đi.
--bh-motion-keyframe-scale0.95Tỉ lệ dialog phóng lên từ đó khi mở, và thu về khi đóng.
--bh-motion-keyframe-slide100%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.

TokenGiá 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

TokenGiá trịMô tả
--bh-breakpoint-xs0pxĐ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-md768pxMá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-lg1024pxLaptop 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-xl1440pxMáy bàn, kể cả màn hình 1536 và 1920 px. Lề trang 32 px.

Bố cục

TokenGiá trịMô tả
--bh-layout-header-height{space.600}3remChiề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-expanded17.5remThanh đ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}4remRail đ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-narrow48remĐộ 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-wide80remĐộ 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}1remLề trang 16 px dưới breakpoint.md.
--bh-layout-page-margin-medium{space.300}1.5remLề trang 24 px từ breakpoint.md tới dưới breakpoint.xl.
--bh-layout-page-margin-large{space.400}2remLề trang 32 px từ breakpoint.xl.
--bh-layout-grid-columns-small44 cột dưới breakpoint.md. Gutter và lề trang space.200.
--bh-layout-grid-columns-medium88 cột từ breakpoint.md. Gutter và lề trang space.300.
--bh-layout-grid-columns-large1212 cột từ breakpoint.lg. Gutter space.300; lề trang space.400 từ breakpoint.xl.
--bh-layout-panel-columns-default4Panel 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-large3Panel bên chiếm 3 trên 12 cột từ breakpoint.xl.
--bh-layout-overlay-defaultmax(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-wide70vwBiế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-mobile100vwToà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-minimum12.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.

TokenGiá trịMô tả
--bh-layout-renderer-minimum-inline-size21.875rem350 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-size21.875rem350 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

TokenGiá trịMô tả
--bh-state-focus-offset2px2 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

TokenGiá trịMô tả
--bh-switch-size-track-height1.25rem20 px. Chiều cao rãnh của switch.
--bh-switch-size-track-width2.25rem36 px. Chiều rộng rãnh của switch.
--bh-switch-size-thumb1rem16 px. Đường kính núm của switch.
--bh-switch-focus-ring{color.border.focus}#005195Tối: #6bb3faKeyboard-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: #282827OFF track, normal. Neutral boolean-state fill, never business-success green.
--bh-switch-off-track-hover{color.background.neutral.hover}#e5e5e4Tối: #31302fOFF track, hover. Neutral boolean-state fill, never business-success green.
--bh-switch-off-track-pressed{color.background.neutral.pressed}#d9d9d8Tối: #393937OFF track, pressed. Neutral boolean-state fill, never business-success green.
--bh-switch-off-track-focus{switch.off.track}#f1f1f0Tối: #282827OFF 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: #282827OFF 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: #282827OFF track, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming.
--bh-switch-off-thumb{color.icon}#42413fTối: #cdccc9OFF 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: #cdccc9OFF 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: #cdccc9OFF 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: #cdccc9OFF 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: #cdccc9OFF 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: #6b6a67OFF thumb, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming.
--bh-switch-off-label{color.text}#2b2a28Tối: #eeeeedOFF 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: #eeeeedOFF 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: #eeeeedOFF 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: #eeeeedOFF 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: #eeeeedOFF 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: #6b6a67OFF label, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming.
--bh-switch-off-border{color.border.bold}#7b7976Tối: #878682OFF border, normal. Meaningful boundary without changing native geometry.
--bh-switch-off-border-hover{color.border.bold}#7b7976Tối: #878682OFF border, hover. Meaningful boundary without changing native geometry.
--bh-switch-off-border-pressed{color.graphite.10}#5f5e5bTối: #a8a6a3OFF 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: #878682OFF 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: #878682OFF 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: #454443OFF border, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming.
--bh-switch-off-loading-icon{color.icon.inverse}#fdfdfcTối: #181717Spinner 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: #eeeeedON track, normal. Neutral boolean-state fill, never business-success green.
--bh-switch-on-track-hover{color.background.neutral.bold.hover}#42413fTối: #cdccc9ON track, hover. Neutral boolean-state fill, never business-success green.
--bh-switch-on-track-pressed{color.background.neutral.bold.pressed}#5f5e5bTối: #a8a6a3ON track, pressed. Neutral boolean-state fill, never business-success green.
--bh-switch-on-track-focus{switch.on.track}#2b2a28Tối: #eeeeedON 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: #eeeeedON 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: #282827ON track, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming.
--bh-switch-on-thumb{color.icon.inverse}#fdfdfcTối: #181717ON 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: #181717ON 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: #181717ON 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: #181717ON 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: #181717ON 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: #6b6a67ON thumb, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming.
--bh-switch-on-label{color.text.inverse}#fdfdfcTối: #181717ON 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: #181717ON 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: #181717ON 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: #181717ON 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: #181717ON 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: #6b6a67ON label, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming.
--bh-switch-on-border{color.background.neutral.bold}#2b2a28Tối: #eeeeedON border, normal. Meaningful boundary without changing native geometry.
--bh-switch-on-border-hover{color.background.neutral.bold.hover}#42413fTối: #cdccc9ON border, hover. Meaningful boundary without changing native geometry.
--bh-switch-on-border-pressed{color.background.neutral.bold.pressed}#5f5e5bTối: #a8a6a3ON border, pressed. Meaningful boundary without changing native geometry.
--bh-switch-on-border-focus{switch.on.border}#2b2a28Tối: #eeeeedON 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: #eeeeedON 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: #454443ON border, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming.
--bh-switch-on-loading-icon{color.icon}#42413fTối: #cdccc9Spinner foreground inside the ON thumb, paired with switch.on.thumb.loading. Keep the native spinning indicator and blocked callback behavior.

Avatar

TokenGiá trịMô tả
--bh-avatar-size-default{size.control.default}2rem32 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.5rem24 px. Avatar trong bảng và danh sách dày; cao bằng control nhỏ.
--bh-avatar-size-large{size.control.large}2.5rem40 px. Avatar trong page header hoặc header hồ sơ; cao bằng control cỡ lớn.
--bh-avatar-badge-size{space.100}0.5rem8 px. Chấm trạng thái trên avatar.

Nhãn

TokenGiá trịMô tả
--bh-label-height-default1.25rem20 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.5rem24 px. Chiều cao nhãn trạng thái cỡ lớn.
--bh-label-height-state{size.control.default}2rem32 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.375rem6 px. Padding ngang của nhãn trạng thái.
--bh-label-padding-large{space.100}0.5rem8 px. Padding ngang của nhãn trạng thái cỡ lớn.
--bh-label-padding-state{space.150}0.75rem12 px. Padding ngang của nhãn trạng thái của trang.

Tag

TokenGiá trịMô tả
--bh-tag-height{size.control.small}1.5rem24 px. Chiều cao của tag.
--bh-tag-padding{space.100}0.5rem8 px. Padding ngang của tag.

Chip

TokenGiá trịMô tả
--bh-chip-height-small{size.control.small}1.5rem24 px. Chip trong thanh công cụ dày đặc.
--bh-chip-height-default{size.control.default}2rem32 px. Chip ở mọi chỗ khác.

Thanh cuộn

TokenGiá trịMô tả
--bh-scrollbar-width{space.100}0.5remShared 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: #454443Track 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: #a8a6a3Foreground 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: #eeeeedHovered 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: #eeeeedDragged/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: #454443Junction 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}999pxFully 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

TokenGiá trịMô tả
--bh-resize-divider{border.width.accent}4pxVisible divider thickness; do not use as the sole pointer hit area.
--bh-resize-target{size.target.minimum}1.5remMinimum pointer/keyboard target around a resize divider.
--bh-resize-touchTarget{size.target.touch}2.75remTouch target around a resize divider.
--bh-resize-handle-width{space.200}1remVisible handle width.
--bh-resize-handle-height{space.400}2remVisible handle height.
--bh-resize-handle-radius{radius.050}0.25remVisible handle corner radius.
--bh-resize-handle-background{color.surface}#ffffffTối: #201f1fHandle surface paired with resize.grip.
--bh-resize-handle-activeBackground{color.background.neutral.bold}#2b2a28Tối: #eeeeedHovered or dragged handle surface paired with resize.activeGrip.
--bh-resize-dot-size{space.025}0.125remDiameter of each of the exactly three circular grip dots.
--bh-resize-dot-pitch{space.100}0.5remEqual center-to-center spacing of three dots, symmetric about the handle center in either orientation.
--bh-resize-color{color.border.bold}#7b7976Tối: #878682Resize divider and grip at rest.
--bh-resize-active{color.border.focus}#005195Tối: #6bb3faHovered, keyboard-focused or dragged resize divider.
--bh-resize-grip{color.icon}#42413fTối: #cdccc9Grip mark on surface.
--bh-resize-activeGrip{color.text.inverse}#fdfdfcTối: #181717Grip marks on the active neutral bold handle surface.

Nội dung ứng dụng

TokenGiá trịMô tả
--bh-content-partner-logo-size{space.500}2.5remNon-image partner-group placeholder extent, not a brand-image width or fixed-square Avatar recipe.
--bh-content-partner-logo-image-size{space.300}1.5remCommon 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}2remDefault person or permission-member identity avatar; a visual identity, not a hit target.
--bh-content-identity-mark-size{size.target.touch}2.75remSystem/provider identity container when shown beside content labels.
--bh-content-identity-mark-image-size{space.300}1.5remContained system/provider identity glyph within the identity-mark container.
--bh-content-empty-illustration-size6remEmpty-state illustration container. Standard icons inside retain their own source icon sizes.
--bh-content-tooltip-metric-max-inline-size28remMaximum 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}1rem16px 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.25rem4px thickness of each horizontal step-progress mark; scales with the reader's root.
--bh-content-step-progress-gap{space.050}0.25remSpace between adjacent read-only step-progress marks; no trailing native item margin.

Trình soạn code

TokenGiá trịMô tả
--bh-editor-background{color.surface}#ffffffTối: #201f1fEditor code canvas; pair with editor.text and syntax roles.
--bh-editor-text{color.text}#2b2a28Tối: #eeeeedEditor default code foreground.
--bh-editor-gutter{color.surface.subtle}#f1f1f0Tối: #201f1fLine-number gutter surface.
--bh-editor-lineNumber{color.text.subtlest}#5f5e5bTối: #a8a6a3Line numbers on the gutter.
--bh-editor-selection{color.background.selected}#e5e5e4Tối: #31302fSelected code range, with native selection/caret cues.
--bh-editor-lineHighlight{color.surface.subtle}#f1f1f0Tối: #201f1fCurrent editor line; caret and gutter provide additional cues.
--bh-editor-cursor{color.text}#2b2a28Tối: #eeeeedInsertion caret.
--bh-editor-border{color.border}#bdbcbbTối: #454443Editor frame.
--bh-editor-syntax-comment{color.text.subtlest}#5f5e5bTối: #a8a6a3Comments: neutral, readable, no dimming.
--bh-editor-syntax-string{color.text.success}#005c3aTối: #5ec18aString literals, not success state indicators.
--bh-editor-syntax-number{color.text.warning}#8a3600Tối: #f5974eNumeric literals, not warning state indicators.
--bh-editor-syntax-keyword{color.text.info}#005195Tối: #6bb3faLanguage keywords, not info state indicators.
--bh-editor-syntax-type{color.text}#2b2a28Tối: #eeeeedTypes and identifiers.
--bh-editor-syntax-delimiter{color.text.subtle}#42413fTối: #cdccc9Punctuation and delimiters.
--bh-editor-diff-inserted-background{color.background.success.subtle}#e6f6ebTối: #132d21Inserted diff text and lines; show + gutter marker.
--bh-editor-diff-inserted-text{color.text.success}#005c3aTối: #5ec18aInserted diff annotation; + or inserted label required.
--bh-editor-diff-removed-background{color.background.danger.subtle}#feebe9Tối: #3b1310Removed diff text and lines; show − gutter marker.
--bh-editor-diff-removed-text{color.text.danger}#9b1e20Tối: #ff8e84Removed diff annotation; − or removed label required.
--bh-editor-font-family{font.family.mono}"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospaceEditor numeric API family from code.default.
--bh-editor-font-size{font.size.200}0.875remEditor numeric API size from code.default: 14px nominal.
--bh-editor-font-lineHeight1.25remTiếng Việt (lang="vi"): 1.5remEditor numeric API line height: 20px nominal; Vietnamese 24px.
--bh-editor-font-weight{font.weight.regular}400Editor code weight.

Sơ đồ

TokenGiá trịMô tả
--bh-diagram-canvas{color.surface.page}#ffffffTối: #181717Opaque 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: #454443Subtle dotted drawing grid, shared with native Data Flow; never an execution cue.
--bh-diagram-group-fill{color.background.neutral.subtle}transparentTransparent 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}1remNative Data Flow dotted-grid interval in graph coordinates, transformed with the camera.
--bh-diagram-grid-dot{border.width.default}1pxNative Data Flow grid dot radius in graph coordinates.
--bh-diagram-node-fill{color.surface}#ffffffTối: #201f1fDefault and indeterminate node fill.
--bh-diagram-node-border{color.border.bold}#7b7976Tối: #878682Meaningful default and indeterminate node boundary.
--bh-diagram-node-title{color.text}#2b2a28Tối: #eeeeedNode title on node-fill.
--bh-diagram-node-desc{color.text.subtle}#42413fTối: #cdccc9Descriptive node and inspector text on neutral surfaces.
--bh-diagram-tile-bg{color.background.neutral}#f1f1f0Tối: #282827Step-category glyph plate; not a status.
--bh-diagram-tile-glyph{color.icon}#42413fTối: #cdccc9Step-category glyph on tile-bg.
--bh-diagram-state-ran-ok{color.text.info}#005195Tối: #6bb3faExecution evidence without a reported failure. Informational blue and a completion marker, never business-success green.
--bh-diagram-ran-ok-fill{color.surface}#ffffffTối: #201f1fRan step fill; retain text and completion marker as non-colour cues.
--bh-diagram-log-reached{color.text.info}#005195Tối: #6bb3faLog-only reachability, paired with a reach marker; not a typed successful execution.
--bh-diagram-log-unfinished{color.text.warning}#8a3600Tối: #f5974eStarted 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: #ff8e84Proven 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: #3b1310Failed execution node fill.
--bh-diagram-fail-title{color.text.danger}#9b1e20Tối: #ff8e84Failure title on fail-fill.
--bh-diagram-fail-desc{color.text.danger}#9b1e20Tối: #ff8e84Failure description on fail-fill.
--bh-diagram-unreached-fill{color.surface.subtle}#f1f1f0Tối: #201f1fNever-reached node fill; not a disabled control.
--bh-diagram-unreached-stroke{color.border.bold}#7b7976Tối: #878682Solid never-reached boundary with an explicit state label.
--bh-diagram-unreached-title{color.text.subtle}#42413fTối: #cdccc9Never-reached title on unreached-fill.
--bh-diagram-unreached-desc{color.text.subtle}#42413fTối: #cdccc9Never-reached description on unreached-fill.
--bh-diagram-nottaken-stroke{color.text.subtle}#42413fTối: #cdccc9Dashed not-taken boundary; dashes and label distinguish it from never reached.
--bh-diagram-nottaken-fill{color.surface}#ffffffTối: #201f1fNot-taken branch fill.
--bh-diagram-nottaken-title{color.text}#2b2a28Tối: #eeeeedNot-taken title on nottaken-fill.
--bh-diagram-nottaken-desc{color.text.subtle}#42413fTối: #cdccc9Not-taken description on nottaken-fill.
--bh-diagram-badge-bg{color.surface}#ffffffTối: #201f1fRepeat-count plate; repetition alone is not a warning.
--bh-diagram-badge-text{color.text.subtle}#42413fTối: #cdccc9Descriptive repeat count on badge-bg.
--bh-diagram-badge-border{color.border.bold}#7b7976Tối: #878682Repeat-count outline.
--bh-diagram-edge{color.border.bold}#7b7976Tối: #878682Meaningful neutral relation line and arrow.
--bh-diagram-edge-label-text{color.text.subtle}#42413fTối: #cdccc9Relation label on edge-label-bg.
--bh-diagram-edge-label-bg{color.surface.page}#ffffffTối: #181717Opaque relation label plate.
--bh-diagram-panel-bg{color.surface}#ffffffTối: #201f1fInspector evidence surface.
--bh-diagram-panel-border{color.border}#bdbcbbTối: #454443Decorative inspector divider, not an interactive boundary.
--bh-diagram-code-bg{color.surface}#ffffffTối: #201f1fStructured key/value evidence surface; full code blocks use color.code roles.
--bh-diagram-code-key{color.text.subtle}#42413fTối: #cdccc9Evidence field label on code-bg; not a link.
--bh-diagram-code-value{color.text}#2b2a28Tối: #eeeeedEvidence field value on code-bg.
--bh-diagram-selection-ring{color.border.focus}#005195Tối: #6bb3faIndependent 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-serifDefault Mermaid node label; inherits Vietnamese line-height.
--bh-diagram-card-width15rem240px measurable execution-step label card width; preserve fixed layout topology.
--bh-diagram-tile-size{size.target.touch}2.75rem44px step-category glyph tile inside execution-card labels, not an interaction target.
--bh-diagram-glyph-size{space.400}2rem32px category symbol ink size within tile-size; this is a glyph, not display text.
--bh-diagram-preview-height45rem720px embedded authoring preview budget shared by the diagram and adjacent step-detail panel; fullscreen fills its host instead.
--bh-diagram-minimum-height20rem320px minimum authoring-preview viewport budget. Read-only split diagrams instead shrink with their enclosing pane.
--bh-diagram-evidence-height13.75rem220px embedded structured-result viewer height; content scrolls within this budget.
--bh-diagram-evidence-minimum-height12rem192px minimum pane budget for multiple request bodies so one expanded part does not hide another.
--bh-diagram-padding{space.100}0.5remInternal Mermaid node padding.
--bh-diagram-export-padding{space.300}1.5remBreathing room around fitted and exported drawing bounds.

Flow

TokenGiá trịMô tả
--bh-flow-category-task-foreground{color.blue.11}#005195Tối: #6bb3fatask identity foreground; not a workflow status.
--bh-flow-category-task-background{color.blue.3}#e6f4feTối: #0d2847task identity background; not a workflow status.
--bh-flow-category-task-border{color.blue.9}#0077d5Tối: #0088f1task identity border; not a workflow status.
--bh-flow-category-task-hover{color.blue.4}#d5efffTối: #003362task identity hover; not a workflow status.
--bh-flow-category-dependency-foreground{color.red.11}#9b1e20Tối: #ff8e84dependency identity foreground; not a workflow status.
--bh-flow-category-dependency-background{color.red.3}#feebe9Tối: #3b1310dependency identity background; not a workflow status.
--bh-flow-category-dependency-border{color.red.9}#d83b39Tối: #ef4c48dependency identity border; not a workflow status.
--bh-flow-category-dependency-hover{color.red.4}#ffdbd7Tối: #50100fdependency identity hover; not a workflow status.
--bh-flow-category-transformation-foreground{color.green.11}#005c3aTối: #5ec18atransformation identity foreground; not a workflow status.
--bh-flow-category-transformation-background{color.green.3}#e6f6ebTối: #132d21transformation identity background; not a workflow status.
--bh-flow-category-transformation-border{color.green.9}#008753Tối: #1f9962transformation identity border; not a workflow status.
--bh-flow-category-transformation-hover{color.green.4}#d6f1dfTối: #113b29transformation identity hover; not a workflow status.
--bh-flow-category-validation-foreground{color.red.11}#9b1e20Tối: #ff8e84validation identity foreground; not a workflow status.
--bh-flow-category-validation-background{color.red.3}#feebe9Tối: #3b1310validation identity background; not a workflow status.
--bh-flow-category-validation-border{color.red.11}#9b1e20Tối: #ff8e84validation identity border; not a workflow status.
--bh-flow-category-validation-hover{color.red.4}#ffdbd7Tối: #50100fvalidation identity hover; not a workflow status.
--bh-flow-category-pushStep-foreground{color.yellow.11}#764400Tối: #fcb017pushStep identity foreground; not a workflow status.
--bh-flow-category-pushStep-background{color.yellow.3}#fff1bdTối: #32210apushStep identity background; not a workflow status.
--bh-flow-category-pushStep-border{color.yellow.9}#a96700Tối: #bd7e1bpushStep identity border; not a workflow status.
--bh-flow-category-pushStep-hover{color.yellow.4}#ffe59cTối: #422902pushStep identity hover; not a workflow status.
--bh-flow-category-decision-foreground#087b88Tối: #7bdce5Decision 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: #123c43decision node surface.
--bh-flow-category-decision-border#087f8cTối: #7bdce5decision meaningful frame and directed edge.
--bh-flow-category-decision-hover#e8f8faTối: #123c43decision hovered surface; focus is separate.
--bh-flow-category-loop-foreground#ad2171Tối: #f3a0d1loop label on paired background.
--bh-flow-category-loop-background#fcecf5Tối: #411b34loop node surface.
--bh-flow-category-loop-border#ad2171Tối: #f3a0d1loop meaningful frame and directed edge.
--bh-flow-category-loop-hover#fcecf5Tối: #411b34loop hovered surface; focus is separate.
--bh-flow-category-grouped-foreground#7040a0Tối: #c9a2eegrouped label on paired background.
--bh-flow-category-grouped-background#f3ecfaTối: #30213fgrouped node surface.
--bh-flow-category-grouped-border#7040a0Tối: #c9a2eegrouped meaningful frame and directed edge.
--bh-flow-category-grouped-hover#f3ecfaTối: #30213fgrouped hovered surface; focus is separate.
--bh-flow-geometry-task-width450pxFixed operational task width; rendering and layout share this value.
--bh-flow-geometry-task-height130pxFixed operational task height; rendering and layout share this value.
--bh-flow-geometry-task_dependency-width450pxFixed operational task_dependency width; rendering and layout share this value.
--bh-flow-geometry-task_dependency-height130pxFixed operational task_dependency height; rendering and layout share this value.
--bh-flow-geometry-task_transformation-width450pxFixed operational task_transformation width; rendering and layout share this value.
--bh-flow-geometry-task_transformation-height130pxFixed operational task_transformation height; rendering and layout share this value.
--bh-flow-geometry-task_data-width450pxFixed operational task_data width; rendering and layout share this value.
--bh-flow-geometry-task_data-height130pxFixed operational task_data height; rendering and layout share this value.
--bh-flow-geometry-validationGroup-width350pxFixed operational validationGroup width; rendering and layout share this value.
--bh-flow-geometry-validationGroup-height130pxFixed operational validationGroup height; rendering and layout share this value.
--bh-flow-geometry-transformationGroup-width350pxFixed operational transformationGroup width; rendering and layout share this value.
--bh-flow-geometry-transformationGroup-height130pxFixed operational transformationGroup height; rendering and layout share this value.
--bh-flow-geometry-pushStepsGroup-width350pxFixed operational pushStepsGroup width; rendering and layout share this value.
--bh-flow-geometry-pushStepsGroup-height130pxFixed operational pushStepsGroup height; rendering and layout share this value.
--bh-flow-geometry-validation-width200pxFixed operational validation width; rendering and layout share this value.
--bh-flow-geometry-validation-height130pxFixed operational validation height; rendering and layout share this value.
--bh-flow-geometry-transformation-width200pxFixed operational transformation width; rendering and layout share this value.
--bh-flow-geometry-transformation-height130pxFixed operational transformation height; rendering and layout share this value.
--bh-flow-geometry-push_step-width200pxFixed operational push_step width; rendering and layout share this value.
--bh-flow-geometry-push_step-height130pxFixed operational push_step height; rendering and layout share this value.
--bh-flow-geometry-decision-width160pxFixed operational decision width; rendering and layout share this value.
--bh-flow-geometry-decision-height160pxFixed operational decision height; rendering and layout share this value.
--bh-flow-geometry-loop-width120pxFixed operational loop width; rendering and layout share this value.
--bh-flow-geometry-loop-height120pxFixed operational loop height; rendering and layout share this value.
--bh-flow-geometry-profile-width240pxFixed operational profile width; rendering and layout share this value.
--bh-flow-geometry-profile-height100pxFixed operational profile height; rendering and layout share this value.
--bh-flow-grid-HORIZONTAL80pxOperational graph grid HORIZONTAL; preserve graph coordinates.
--bh-flow-grid-VERTICAL40pxOperational graph grid VERTICAL; preserve graph coordinates.
--bh-flow-grid-TASK_DATA_X_GAP300pxOperational graph grid TASK_DATA_X_GAP; preserve graph coordinates.
--bh-flow-grid-GROUP_Y_OFFSET200pxOperational graph grid GROUP_Y_OFFSET; preserve graph coordinates.
--bh-flow-layout-VALIDATION_NODE_Y_GAP100pxOperational graph layout VALIDATION_NODE_Y_GAP; preserve graph coordinates.
--bh-flow-layout-TRANSFORMATION_NODE_Y_GAP100pxOperational graph layout TRANSFORMATION_NODE_Y_GAP; preserve graph coordinates.
--bh-flow-layout-PUSH_STEP_NODE_Y_GAP80pxOperational graph layout PUSH_STEP_NODE_Y_GAP; preserve graph coordinates.
--bh-flow-layout-PUSH_STEP_NODE_X_GAP120pxOperational graph layout PUSH_STEP_NODE_X_GAP; preserve graph coordinates.
--bh-flow-layout-PUSH_STEP_BRANCH_X_GAP200pxOperational graph layout PUSH_STEP_BRANCH_X_GAP; preserve graph coordinates.
--bh-flow-layout-EXPANDED_GROUP_X50pxOperational graph layout EXPANDED_GROUP_X; preserve graph coordinates.
--bh-flow-layout-EXPANDED_GROUP_Y_START50pxOperational graph layout EXPANDED_GROUP_Y_START; preserve graph coordinates.
--bh-flow-layout-TREE_LEVEL_Y_GAP150pxOperational graph layout TREE_LEVEL_Y_GAP; preserve graph coordinates.
--bh-flow-layout-TREE_SIBLING_X_GAP250pxOperational graph layout TREE_SIBLING_X_GAP; preserve graph coordinates.
--bh-flow-layout-TREE_MIN_WIDTH200pxOperational graph layout TREE_MIN_WIDTH; preserve graph coordinates.
--bh-flow-edge-width{border.width.selected}2pxOperational graph edge width; preserve graph coordinates.
--bh-flow-edge-marker{space.200}1remOperational graph edge marker; preserve graph coordinates.
--bh-flow-edge-radius{space.250}1.25remOperational graph edge radius; preserve graph coordinates.
--bh-flow-edge-handle{space.150}0.75remOperational graph edge handle; preserve graph coordinates.

Trực quan hóa dữ liệu

TokenGiá trịMô tả
--bh-visualization-metric-total-jobs{color.text.info}#005195Tối: #6bb3faTotal execution volume, not an execution status; pair with a named series and values.
--bh-visualization-metric-success-rate{color.text.success}#005c3aTối: #5ec18aSuccessful execution proportion; thresholds remain explicit in text.
--bh-visualization-metric-completed{color.text.success}#005c3aTối: #5ec18aCompleted execution count, with a completed label.
--bh-visualization-metric-failed{color.text.danger}#9b1e20Tối: #ff8e84Failed execution count, with a failed label.
--bh-visualization-metric-active-jobs{color.text.info}#005195Tối: #6bb3faCurrently active executions, not a success assessment.
--bh-visualization-metric-avg-execution-time{color.text.subtle}#42413fTối: #cdccc9Average execution duration; duration alone does not imply warning.
--bh-visualization-metric-queue-depth{color.text}#2b2a28Tối: #eeeeedQueued execution volume; backlog alone does not imply failure.
--bh-visualization-job-type-queue-status{color.blue.11}#005195Tối: #6bb3faQueue-status categorical identity. Never infer processing status from this colour.
--bh-visualization-job-type-sync-history{color.green.11}#005c3aTối: #5ec18aSync-history categorical identity. Never infer success from this colour.
--bh-visualization-job-type-polling-jobs{color.orange.11}#8a3600Tối: #f5974ePolling categorical identity. Never infer warning from this colour.
--bh-visualization-job-type-generic-jobs{color.graphite.11}#42413fTối: #cdccc9Generic-job categorical identity. Always include job-type text or a distinct glyph.
--bh-visualization-priority-1{color.text.danger}#9b1e20Tối: #ff8e84Highest queue urgency, explicitly labelled P1; not a failed execution.
--bh-visualization-priority-2{color.text.warning}#8a3600Tối: #f5974eHigh queue urgency, explicitly labelled P2; not a warning outcome.
--bh-visualization-priority-3{color.text.info}#005195Tối: #6bb3faNormal queue urgency, explicitly labelled P3.
--bh-visualization-priority-4{color.text.subtle}#42413fTối: #cdccc9Low queue urgency, explicitly labelled P4; not a success outcome.
--bh-visualization-priority-5{color.text.subtlest}#5f5e5bTối: #a8a6a3Lowest queue urgency, explicitly labelled P5.
--bh-visualization-traffic-healthy-fill{color.background.success.subtle}#e6f6ebTối: #132d21Accepted traffic; show its label.
--bh-visualization-traffic-healthy-outline{color.border.success}#008753Tối: #37a971Accepted traffic; show its label.
--bh-visualization-traffic-attention-fill{color.background.warning.subtle}#ffefd6Tối: #331e0bLower reject-ratio threshold; distinct label and pattern from degraded.
--bh-visualization-traffic-attention-outline{color.border.warning}#ba4e00Tối: #ef7200Lower reject-ratio threshold; distinct label and pattern from degraded.
--bh-visualization-traffic-degraded-fill{color.background.warning.subtle}#ffefd6Tối: #331e0bHigher reject-ratio threshold; distinct label and pattern from attention.
--bh-visualization-traffic-degraded-outline{color.border.warning}#ba4e00Tối: #ef7200Higher reject-ratio threshold; distinct label and pattern from attention.
--bh-visualization-traffic-critical-fill{color.background.danger.subtle}#feebe9Tối: #3b1310Critical rejected-request ratio, not a failed fetch.
--bh-visualization-traffic-critical-outline{color.border.danger}#d83b39Tối: #ff615aCritical rejected-request ratio, not a failed fetch.
--bh-visualization-traffic-unavailable-fill{color.surface.subtle}#f1f1f0Tối: #201f1fNo requests to assess; not a backend failure.
--bh-visualization-traffic-unavailable-outline{color.border.bold}#7b7976Tối: #878682No requests to assess; not a backend failure.
--bh-visualization-traffic-fault-fill{color.background.danger.subtle}#feebe9Tối: #3b1310Backend/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: #ff615aBackend/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}2pxPrimary chart series stroke in CSS pixels.
--bh-visualization-sparkline-width{border.width.default}1pxCompact sparkline stroke in CSS pixels.
--bh-visualization-grid-width{border.width.default}1pxChart grid and crosshair stroke in CSS pixels.
--bh-visualization-sparkline-point-radius{space.025}0.125remCompact sparkline endpoint radius.
--bh-visualization-timeline-node-size{space.200}1remDesktop timeline outer job-type mark diameter.
--bh-visualization-timeline-node-inner-size{space.100}0.5remDesktop timeline inner execution-status mark diameter.
--bh-visualization-timeline-node-touch-size{space.250}1.25remTouch and tablet outer timeline mark diameter; hit target remains size.target.touch.
--bh-visualization-timeline-node-touch-inner-size{space.150}0.75remTouch timeline inner status diameter.
--bh-visualization-timeline-node-tablet-inner-size{space.100}0.5remTablet timeline inner status diameter.
--bh-visualization-timeline-cluster-size{space.300}1.5remMinimum aggregated timeline count marker diameter.
--bh-visualization-chart-height120pxOperational trend chart plotting height.
--bh-visualization-chart-initial-width400pxInitial plot width before measurement; replaced by actual container width.
--bh-visualization-sparkline-height{space.500}2.5remStandard compact trend plotting height.
--bh-visualization-sparkline-compact-height{space.400}2remMetric tile sparkline plotting height.
--bh-visualization-sparkline-initial-width100pxInitial sparkline width before measurement.
--bh-visualization-point-radius{space.050}0.25remNormal chart sample marker radius.
--bh-visualization-hover-point-radius{space.075}0.375remHovered chart sample marker radius; larger than normal independently of colour.
--bh-visualization-failure-shadow0 0 {space.050} {color.border.danger}0 0 0.25rem #d83b39Tối: 0 0 0.25rem #ff615aOpt-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-width10Ant Design dashboard progress stroke width, in percent of its viewBox.
--bh-visualization-ring-size140pxOperational health progress ring diameter.
--bh-visualization-ring-gap75Operational health dashboard ring opening in degrees.
--bh-visualization-timeline-track-height{space.075}0.375remCompact summary and grouped execution track thickness.
--bh-visualization-activity-track-height{space.100}0.5remActivity timeline track thickness with internal event segments.
--bh-visualization-legend-mark-size{space.100}0.5rem8 px. Colour mark beside a legend label.