Skip to main content

encodeThemePatch

Callable

  • encodeThemePatch<Schema, Prefix>(theme: Pick<Theme<Schema, Prefix>, definition | sources | prefix>, input: NoInfer<ThemePatch<Schema>>): Readonly<Record<`--${Prefix}-${string}`, string>>

  • Encode only supplied source paths. The renderer supplies current omitted allocations.


    Type parameters

    Parameters

    • theme: Pick<Theme<Schema, Prefix>, definition | sources | prefix>
    • input: NoInfer<ThemePatch<Schema>>

    Returns Readonly<Record<`--${Prefix}-${string}`, string>>