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

    Function tokensToMuiOptions

    • The inverse adapter (sxl → mui): map a partial TokenTheme (e.g. a TokenThemeProvider's overrides) onto the MUI palette/geometry slots the forward createThemeFromMUITheme reads. Studio merges the result INTO its createExhibitTheme input, so a token override flows sxl → mui → sxl: the MUI chrome (buttons / slider / tabs) follows it as well as the grid — no "half-themed" mixed bag. Only the mapped subset (colors, radius, fonts) crosses; non-color MUI config (components / spacing) is untouched. Partial in, partial out — only slots whose token is present are emitted.

      Parameters

      • Optionaltokens: Partial<TokenTheme>

      Returns ThemeOptions