Skip to main content

readThemeSources

Callable

  • readThemeSources<Schema>(theme: Pick<Theme<Schema>, definition | sources>, stylesheet: StylesheetState, selector?: string, layer?: string): ResolvedThemeInput<Schema>

  • Decode only declared source allocations; derived values never become editable inputs.


    Type parameters

    Parameters

    • theme: Pick<Theme<Schema>, definition | sources>
    • stylesheet: StylesheetState
    • optionalselector: string
    • optionallayer: string

    Returns ResolvedThemeInput<Schema>