code wiki / _hdl_build / nx_brand_polish.nx
nx_brand_polish.nx
buildroot/runtime/_hdl_build/nx_brand_polish.nx
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
imports: nx_syscalls.nx
imported by: nx_web_builder.nx
structs
| none |
consts
| none |
functions
| 11 | func 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 } |
| 14 | func pol_emit(fd: i64) -> i64 |