code wiki / _hdl_build / nx_brand_book.nx
nx_brand_book.nx
buildroot/runtime/_hdl_build/nx_brand_book.nx
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
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
| 19 | func bb_wn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 } |
| 20 | func bb_label(fd: i64, cx: i64) -> i64 |
| 26 | func bb_color_row(fd: i64, brand: *u8, bn: i64, name: *u8) -> i64 |
| 44 | func bb_kv(fd: i64, brand: *u8, bn: i64, group: *u8, name: *u8) -> i64 |
| 52 | func bb_emit(brand: *u8, bn: i64, fd: i64) -> i64 |
| 78 | func ba_hexd(c: i64) -> i64 called by 1: ba_is_hex6 |
| 84 | func ba_is_hex6(s: *u8, i: i64, hi: i64) -> i64 |
| 91 | func ba_count_hex_in(s: *u8, lo: i64, hi: i64) -> i64 |
| 99 | func ba_audit(html: *u8, n: i64) -> i64 |