g3-toolkit API Reference
    Preparing search index...

    Function structuralThemeRules

    • Theme-reactive colors for structural scenes (round 41 dark-mode fix). Cytoscape cannot read CSS variables, so structural colors were hardcoded light values in STRUCTURAL_RULES and never responded to the theme; the rows rendered light even in dark mode. These rules are recomposed on theme change exactly like themeColorRules, and must be merged AFTER STRUCTURAL_RULES (which now carries structure only) and after the generic themeColorRules so the structural selectors win their colors.

      Mirrors the G3tTheme token vocabulary: containers/headers sit on the secondary/tertiary surfaces, rows on the canvas surface, labels in the primary text color, severities in the semantic tokens.

      Parameters

      • theme: {
            accentPrimary: string;
            bgSecondary: string;
            bgTertiary: string;
            border: string;
            canvasBg: string;
            error: string;
            textPrimary: string;
            textSecondary: string;
            warning: string;
        }

      Returns CyStylesheet[]