code wiki / _hdl_build / nx_ui_kit.nx

nx_ui_kit.nx

buildroot/runtime/_hdl_build/nx_ui_kit.nx

4371 B66 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic ui
docsdependenciesstructsconstsfunctions

about

nx_ui_kit.nx -- ui-design-system (U2, the emitting fix for the operator #1 gap). The REUSABLE POLISHED-page emitter primitive: reads the canonical sovereign design system (knowledge/registry/nishi_ds.css: tokens + dual light/dark + fluid type + responsive + polish) and a body-content fragment, and emits a complete scaffolded page (semantic header/nav/main/footer) with the design system inline. Any organ/session calls this instead of hand-rolling dev-grade CSS -> pages START polished (score POLISHED on nx_ui_audit) not DEV-GRADE 0/12. HTML uses UNQUOTED attributes (NishiLang-clean); the one required quote (viewport content) is emitted as a byte. This is the systemic remedy: fix the emitter, every future surface inherits quality. nx_ui_kit <bodyfile> <outfile> [titlefile] exit: 0 emitted | 4 css-or-body unreadable | 2 usage. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_ui_kit.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main uk_wr sys_write sys_exit sys_mmap uk_reads sys_openat_rd sys_read sys_close sys_openat_wr uk_q sys_mmap ↻ sys_write ↻ sys_write ↻ sys_close ↻ sys_renameat

structs

none

consts

12const K_MAGIC_65536: i64 = 65536
13const K_MAGIC_65000: i64 = 65000
14const K_MAGIC_262144: i64 = 262144
15const K_MAGIC_262000: i64 = 262000
16const K_MAGIC_1024: i64 = 1024

functions

18func uk_wr(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 }
called by 1: main calls 1: sys_write
19func uk_q(fd: i64) -> i64 { let b: *u8 = sys_mmap(8); b[0] = 34 as u8; sys_write(fd, b, 1); return 0 }
called by 1: main calls 2: sys_mmapsys_write
20func uk_reads(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
29func main(argc: i64, argv: *i64) -> i64