Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

matchTheme

function matchTheme<Theme extends BaseTheme = BaseTheme, Section extends keyof Theme & string = keyof Theme & string>(
pattern: MaybeArray<string | RegExp>,
section?: "" | Section | KebabCase<Section>,
resolve?: keyof CSSProperties | ThemeRuleResolver<ThemeValue<Theme[Section]>, Theme>,
convert?: ThemeMatchConverter<ThemeValue<Theme[Section]>, Theme>,
): Rule<Theme>;
§
matchTheme<Theme extends BaseTheme = BaseTheme, Section extends keyof Theme & string = keyof Theme & string>(pattern: MaybeArray<string | RegExp>, section?: "" | Section | KebabCase<Section>, resolve?: keyof CSSProperties | ThemeRuleResolver<ThemeValue<Theme[Section]>, Theme>, convert?: ThemeMatchConverter<ThemeValue<Theme[Section]>, Theme>): Rule<Theme>
[src]

§Type Parameters

§
Theme extends BaseTheme = BaseTheme
[src]
§
Section extends keyof Theme & string = keyof Theme & string
[src]

§Parameters

§
pattern: MaybeArray<string | RegExp>
[src]
§
section?: "" | Section | KebabCase<Section> optional
[src]
§
resolve?: keyof CSSProperties | ThemeRuleResolver<ThemeValue<Theme[Section]>, Theme> optional
[src]
§
convert?: ThemeMatchConverter<ThemeValue<Theme[Section]>, Theme> optional
[src]

§Return Type