nx_sclass_kit.nx
buildroot/runtime/nx_sclass_kit.nx
about
nx_sclass_kit.nx -- reusable S-CLASS page component kit (the "gorgeous by construction" library).
Pure emit functions (NO syscalls -> any emitter composes it without a syscall-layer clash). Every
page built through this kit passes nx_brand_apply_enforced BY CONSTRUCTION: it ships the canonical
--nx- design-token SSOT, a base reset, responsive grid, reduced-motion, :focus-visible, a skip-link,
and semantic <header>/<main id=main>/<footer> landmarks. This closes the "fragmented adoption" gap at
the ROOT: emitters stop hand-rolling crude CSS and compose ONE tokenized shell + components.
Factored out of the proven nx_connect_lds_page (uxcx 7/7, design 9/9, canonical). license_tier: ORIGINAL
(no main -- a library, like nx_uxcx_grade)
dependencies 0 imports · 9 importers
imports: none
imported by: nx_connect_lds_page.nxnx_connect_page.nxnx_connect_reconnect_page.nxnx_connect_youth_page.nxnx_dataeng_compare_page.nxnx_fin_stack_page.nxnx_site_archetype.nxnx_site_build.nxnx_uigen_l1.nx
structs
| none |
consts
| none |
functions
| 11 | func he_puts(buf: *u8, off: i64, s: *u8) -> i64 |
| 20 | func sk_head(buf: *u8, off: i64, title: *u8, theme: i64) -> i64 called by 5: sk_opensk_open_sitesk_doc_openus_page_index_marketus_page_products_market calls 1: he_puts |
| 43 | func sk_header_open(buf: *u8, off: i64, brand: *u8, brandhref: *u8) -> i64 called by 5: sk_opensk_open_sitesk_doc_openus_page_index_marketus_page_products_market calls 1: he_puts |
| 53 | func sk_nav_item(buf: *u8, off: i64, label: *u8, href: *u8) -> i64 |
| 63 | func sk_header_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</nav></div></header><main id=\"main\">" as *u8) } |
| 68 | func sk_open(buf: *u8, off: i64, title: *u8, brand: *u8, theme: i64) -> i64 |
| 78 | func sk_open_site(buf: *u8, off: i64, title: *u8, brand: *u8, theme: i64, brandhref: *u8) -> i64 called by 9: sa_recipe_seqsa_recipesa_gallery_indexsb_build_sitel2_landingl3_emit_from_spec+3 calls 2: sk_headsk_header_open |
| 85 | func sk_hero(buf: *u8, off: i64, eyebrow: *u8, title_pre: *u8, title_grad: *u8, lede: *u8, cta1: *u8, cta1href: *u8, cta2: *u8, cta2href: *u8, hint: *u8) -> i64 |
| 100 | func sk_section_open(buf: *u8, off: i64, id: *u8, tag: *u8, h2: *u8, sub: *u8) -> i64 |
| 108 | func sk_card(buf: *u8, off: i64, icon_svg: *u8, title: *u8, body: *u8) -> i64 |
| 117 | func sk_card_link(buf: *u8, off: i64, icon_svg: *u8, title: *u8, body: *u8, href: *u8) -> i64 |
| 125 | func sk_section_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</div></div></section>" as *u8) } |
| 129 | func sk_search(buf: *u8, off: i64, action: *u8, placeholder: *u8) -> i64 |
| 140 | func sk_cta(buf: *u8, off: i64, tag: *u8, h2: *u8, p: *u8, b1: *u8, b1href: *u8, b2: *u8, b2href: *u8) -> i64 |
| 150 | func sk_close(buf: *u8, off: i64, scope: *u8, brand: *u8) -> i64 |
| 160 | func sk_trust_open(buf: *u8, off: i64, tag: *u8, h2: *u8, sub: *u8) -> i64 |
| 167 | func sk_trust_item(buf: *u8, off: i64, title: *u8, body: *u8) -> i64 |
| 173 | func sk_trust_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</ul></div></section>" as *u8) } |
| 186 | func sk_doc_styles(buf: *u8, off: i64) -> i64 |
| 200 | func sk_doc_open(buf: *u8, off: i64, title: *u8, brand: *u8, brandhref: *u8) -> i64 called by 6: mainl1_pagel2_dashboardl2_docl2_formus_shell_doc calls 3: sk_headsk_doc_stylessk_header_open |
| 207 | func sk_doc_main(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "<div class=\"doc\">" as *u8) } |
| 210 | func sk_doc_h1(buf: *u8, off: i64, h1: *u8, lede: *u8) -> i64 |
| 216 | func sk_h2(buf: *u8, off: i64, text: *u8) -> i64 { var o: i64 = he_puts(buf, off, "<h2>" as *u8); o = he_puts(buf, o, text); return he_puts(buf, o, "</h2>" as *u8) } |
| 217 | func sk_lede(buf: *u8, off: i64, text: *u8) -> i64 { var o: i64 = he_puts(buf, off, "<p class=\"lede\">" as *u8); o = he_puts(buf, o, text); return he_puts(buf, o, "</p>" as *u8) } |
| 218 | func sk_callout(buf: *u8, off: i64, html: *u8) -> i64 { var o: i64 = he_puts(buf, off, "<div class=\"callout\">" as *u8); o = he_puts(buf, o, html); return he_puts(buf, o, "</div>" as *u8) } |
| 221 | func sk_score_open(buf: *u8, off: i64, big: *u8, unit: *u8) -> i64 |
| 226 | func sk_stat(buf: *u8, off: i64, num: *u8, label: *u8) -> i64 |
| 231 | func sk_score_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</div></div>" as *u8) } |
| 235 | func sk_dtable_open(buf: *u8, off: i64, h1: *u8, h2: *u8, h3: *u8) -> i64 |
| 241 | func sk_drow(buf: *u8, off: i64, axis: *u8, chipkind: *u8, chiplabel: *u8, note: *u8) -> i64 |
| 250 | func sk_trow(buf: *u8, off: i64, c1: *u8, c2: *u8, c3: *u8) -> i64 |
| 256 | func sk_dtable_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</tbody></table></div>" as *u8) } |
| 259 | func sk_doc_close(buf: *u8, off: i64, foot_html: *u8, brand: *u8) -> i64 |
| 271 | func sk_form_open(buf: *u8, off: i64, action: *u8) -> i64 |
| 275 | func sk_field(buf: *u8, off: i64, id: *u8, label: *u8, kind: *u8, ph: *u8) -> i64 |
| 284 | func sk_field_area(buf: *u8, off: i64, id: *u8, label: *u8, ph: *u8) -> i64 |
| 292 | func sk_form_submit(buf: *u8, off: i64, text: *u8) -> i64 |
| 296 | func sk_form_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</form>" as *u8) } |
| 303 | func sk_mkt_styles(buf: *u8, off: i64) -> i64 |
| 313 | func sk_mband_open(buf: *u8, off: i64, klass: *u8, id: *u8, tag: *u8, h2: *u8, sub: *u8) -> i64 |
| 322 | func sk_pricing_open(buf: *u8, off: i64, id: *u8, tag: *u8, h2: *u8, sub: *u8) -> i64 |
| 326 | func sk_price_tier(buf: *u8, off: i64, plan: *u8, amount: *u8, period: *u8, feats_html: *u8, cta: *u8, href: *u8, featured: i64) -> i64 |
| 339 | func sk_pricing_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</div></div></section>" as *u8) } |
| 341 | func sk_quote(buf: *u8, off: i64, id: *u8, tag: *u8, quote: *u8, name: *u8, role: *u8) -> i64 |
| 351 | func sk_faq_open(buf: *u8, off: i64, id: *u8, tag: *u8, h2: *u8, sub: *u8) -> i64 |
| 355 | func sk_faq_item(buf: *u8, off: i64, q: *u8, a: *u8) -> i64 |
| 361 | func sk_faq_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</div></div></section>" as *u8) } |
| 363 | func sk_steps_open(buf: *u8, off: i64, id: *u8, tag: *u8, h2: *u8, sub: *u8) -> i64 |
| 367 | func sk_step(buf: *u8, off: i64, title: *u8, body: *u8) -> i64 calls 1: he_puts |
| 373 | func sk_steps_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</ol></div></section>" as *u8) } |
| 376 | func sk_split(buf: *u8, off: i64, id: *u8, tag: *u8, h2: *u8, lede: *u8, p1: *u8, p2: *u8, p3: *u8, flip: i64) -> i64 |