SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Function resolveToken

    • Read resolved --sxl-* token values off a live element via getComputedStyle.

      This is the escape hatch for the few consumers that CSS var() cannot reach — a <canvas>, an SVG data: URI, or SDK interop — where a concrete color string is required. Because it reads the computed style of el, the value already reflects that element's surface, mode, and any override, with no configuration and no theme context (see THEMING-DESIGN.md, decision 1). It is the counterpart to the CSS-first read path; do NOT use it where a plain var(--sxl-*) works.

      SSR / detached element: returns undefined / {} so the caller falls back to its literal. Never throws.

      name is a TokenTheme key (e.g. 'color-base-100') or a full custom-property name (e.g. '--sxl-color-base-100'); the --sxl- prefix is added when absent.

      Parameters

      • el: Element | null | undefined
      • name: string

      Returns string | undefined