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

fromTheme

deprecated
@deprecated

Use matchTheme instead.

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

§Type Parameters

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

§Parameters

§
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