code wiki / _hdl_build / nx_ui_kit.nx
nx_ui_kit.nx
buildroot/runtime/_hdl_build/nx_ui_kit.nx
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
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
structs
| none |
consts
| 12 | const K_MAGIC_65536: i64 = 65536 |
| 13 | const K_MAGIC_65000: i64 = 65000 |
| 14 | const K_MAGIC_262144: i64 = 262144 |
| 15 | const K_MAGIC_262000: i64 = 262000 |
| 16 | const K_MAGIC_1024: i64 = 1024 |
functions
| 18 | func 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 } |
| 19 | func uk_q(fd: i64) -> i64 { let b: *u8 = sys_mmap(8); b[0] = 34 as u8; sys_write(fd, b, 1); return 0 } |
| 20 | func uk_reads(path: *u8, buf: *u8, cap: i64) -> i64 |
| 29 | func main(argc: i64, argv: *i64) -> i64 |