code wiki / _hdl_build / nx_brand_book.nx

nx_brand_book.nx

buildroot/runtime/_hdl_build/nx_brand_book.nx

5469 B107 linesdepth 5pulls 11 transitivereach 7 importersview sourcekind librarytopic brand
docsdependenciesstructsconstsfunctions

about

nx_brand_book.nx -- R5: (a) BRAND-BOOK generator -- emit the brand guidelines doc FROM the token SSOT (the Nike/Coca-Cola "brand book": color swatches with measured WCAG contrast + AA/AAA badges, the type scale, the spacing scale), rendered IN the brand itself; (b) BRAND AUDIT -- scan a built page for OFF-TOKEN colour drift (hardcoded #rrggbb outside the :root token block = a page bypassing the design system). Complements nx_a11y_check (WCAG img/px/link grader) and CLOSES its queued 1.4.3 contrast gap via R2's nx_brand_guard. REUSE: nx_brand_tokens (bt_lookup/bt_find), nx_brand_guard (bg_contrast_hex_x100), nx_web_builder (render). 100% sovereign. license_tier: ORIGINAL

dependencies 5 imports · 6 importers

nx_syscalls.nx nx_itoa_lib.nx nx_brand_tokens.nx nx_brand_guard.nx nx_web_builder.nx nx_brand_book.nx nx_brand_aesthetic.nx nx_brand_book_gate.nx nx_brand_exceed2_gate.nx nx_brand_exceed3_gate.nx nx_brand_exceed_gate.nx nx_brand_preview.nx

imports: nx_syscalls.nxnx_itoa_lib.nxnx_brand_tokens.nxnx_brand_guard.nxnx_web_builder.nx

imported by: nx_brand_aesthetic.nxnx_brand_book_gate.nxnx_brand_exceed2_gate.nxnx_brand_exceed3_gate.nxnx_brand_exceed_gate.nxnx_brand_preview.nx

structs

none

consts

none

functions

19func bb_wn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 }
called by 1: bb_color_row calls 1: nxi_fd
20func bb_label(fd: i64, cx: i64) -> i64
called by 2: bb_color_rowmain calls 1: wb_w
26func bb_color_row(fd: i64, brand: *u8, bn: i64, name: *u8) -> i64
44func bb_kv(fd: i64, brand: *u8, bn: i64, group: *u8, name: *u8) -> i64
called by 1: bb_emit calls 3: sys_mmapbt_lookupwb_w
52func bb_emit(brand: *u8, bn: i64, fd: i64) -> i64
78func ba_hexd(c: i64) -> i64
called by 1: ba_is_hex6
84func ba_is_hex6(s: *u8, i: i64, hi: i64) -> i64
called by 1: ba_count_hex_in calls 1: ba_hexd
91func ba_count_hex_in(s: *u8, lo: i64, hi: i64) -> i64
called by 1: ba_audit calls 1: ba_is_hex6
99func ba_audit(html: *u8, n: i64) -> i64