code wiki / _hdl_build / nx_brand_dark_gate.nx
nx_brand_dark_gate.nx
buildroot/runtime/_hdl_build/nx_brand_dark_gate.nx
about
nx_brand_dark_gate.nx -- R8 gate: dark-mode colour system. A brand with `dark|...` tokens emits a
@media(prefers-color-scheme:dark){:root{...}} override; a brand WITHOUT them emits nothing (backward-compatible).
BOTH light and dark must pass WCAG AA. Sovereignty + determinism hold. 100% sovereign. expect_exit: 0
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_sitegate_emit_lib.nxnx_brand_tokens.nxnx_brand_guard.nxnx_web_builder.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
| none |
functions
| 11 | func g_has(s: *u8, n: i64, lit: *u8) -> i64 { if bt_find(s, n, lit, bt_len(lit)) >= 0 { return 1 } return 0 } |
| 12 | func inband8(v: i64, lo: i64, hi: i64) -> i64 { if v < lo { return 0 } if v > hi { return 0 } return 1 } called by 1: main |
| 14 | func main() -> i64 |