code wiki / _hdl_build / nx_uigen_l1.nx
nx_uigen_l1.nx
buildroot/runtime/_hdl_build/nx_uigen_l1.nx
about
nx_uigen_l1.nx -- ROADMAP RUNG L1: PARAMETERIZED UI GENERATION (the first rung where the SYSTEM, not a
human, makes the design choices). From a compact SPEC (seed hue + layout variant) it GENERATES a full page:
real color-theory palette GENERATION (integer HSL->RGB) for BOTH themes -- light (ink dark, bg light) AND a
hue-tinted dark (ink light, bg dark) -> WCAG-accessible BY CONSTRUCTION in each theme -- composing the
canonical kit (nx_sclass_kit) so craft stays S-class. Different spec -> a VISIBLY DISTINCT, accessible,
on-brief page. Attacks census GAPs design-diversity / palette-generation / layout-generation. Pure emit
(no syscalls) so it composes anywhere. license_tier: ORIGINAL
dependencies 1 imports · 7 importers
imports: nx_sclass_kit.nx
imported by: nx_kit_counsel.nxnx_kit_journal.nxnx_kit_market.nxnx_kit_shell.nxnx_uigen_l1_gate.nxnx_uigen_l2.nxnx_uigen_l3.nx
structs
| none |
consts
| 9 | const K_MAGIC_2000: i64 = 2000 |
| 10 | const K_MAGIC_65536: i64 = 65536 |
functions
| 13 | func l1_put_u8(buf: *u8, off: i64, v: i64) -> i64 |
| 23 | func l1_hsl_pack(h: i64, s: i64, l: i64) -> i64 |
| 59 | func l1_rgb(buf: *u8, off: i64, h: i64, s: i64, l: i64) -> i64 |
| 72 | func l1_tok(buf: *u8, off: i64, tok: *u8, h: i64, s: i64, l: i64) -> i64 |
| 82 | func l1_palette_style(buf: *u8, off: i64, hue: i64) -> i64 |
| 110 | func l1_layout_style(buf: *u8, off: i64, variant: i64) -> i64 |
| 119 | func l1_page(buf: *u8, off: i64, hue: i64, variant: i64, title: *u8, brand: *u8, h1: *u8, lede: *u8) -> i64 called by 1: main calls 10: sk_doc_opensk_nav_itemsk_header_closel1_palette_stylel1_layout_stylesk_doc_main+4 |