code wiki / _hdl_build / nx_brand_polish.nx

nx_brand_polish.nx

buildroot/runtime/_hdl_build/nx_brand_polish.nx

1968 B25 linesdepth 2pulls 2 transitivereach 61 importersview sourcekind librarytopic brand
docsdependenciesstructsconstsfunctions

about

nx_brand_polish.nx -- R7 visual polish: a token-driven MOTION language + MICRO-INTERACTIONS, emitted as pure CSS (zero JS) and wired into the builder's <style>. Motion uses the brand's motion tokens (var(--nx-motion-fast/ease)) so it re-themes with the brand; hover/active/focus states give interaction feedback; focus-visible rings use the accent token (accessible + on-brand). ACCESSIBILITY BY CONSTRUCTION: all movement is wrapped in @media(prefers-reduced-motion:no-preference) so motion-sensitive users never get it. HONEST SCOPE: this is the polish MECHANISM -- the subjective "world-class look" remains human-judged (R6 reports that axis as BEHIND). Library, no main; emits to an fd with its own writer (no nx_web_builder dep -> no import cycle). 100% sovereign. license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_brand_polish.nx nx_web_builder.nx

imports: nx_syscalls.nx

imported by: nx_web_builder.nx

structs

none

consts

none

functions

11func pol_w(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: pol_emit calls 1: sys_write
14func pol_emit(fd: i64) -> i64
called by 1: wb_doc_open_branded calls 1: pol_w