code wiki / _hdl_build / nx_uigen_l1.nx

nx_uigen_l1.nx

buildroot/runtime/_hdl_build/nx_uigen_l1.nx

6868 B131 linesdepth 1pulls 1 transitivereach 14 importersview sourcekind librarytopic uigen
docsdependenciesstructsconstsfunctions

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

nx_sclass_kit.nx nx_uigen_l1.nx nx_kit_counsel.nx nx_kit_journal.nx nx_kit_market.nx nx_kit_shell.nx nx_uigen_l1_gate.nx nx_uigen_l2.nx nx_uigen_l3.nx

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

9const K_MAGIC_2000: i64 = 2000
10const K_MAGIC_65536: i64 = 65536

functions

13func l1_put_u8(buf: *u8, off: i64, v: i64) -> i64
23func l1_hsl_pack(h: i64, s: i64, l: i64) -> i64
called by 3: l1_rgbmainmain
59func l1_rgb(buf: *u8, off: i64, h: i64, s: i64, l: i64) -> i64
72func l1_tok(buf: *u8, off: i64, tok: *u8, h: i64, s: i64, l: i64) -> i64
82func l1_palette_style(buf: *u8, off: i64, hue: i64) -> i64
110func l1_layout_style(buf: *u8, off: i64, variant: i64) -> i64
119func l1_page(buf: *u8, off: i64, hue: i64, variant: i64, title: *u8, brand: *u8, h1: *u8, lede: *u8) -> i64