Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fresh/plugins/twindv1_deps.ts>fromTheme

The next-gen web framework.
Extremely Popular
Go to Latest
function fromTheme
Deprecated
Deprecated

Use matchTheme instead.

import { fromTheme } from "https://deno.land/x/fresh@1.5.1/plugins/twindv1_deps.ts";

Type Parameters

optional
Theme extends BaseTheme = BaseTheme
optional
Section extends keyof Theme & string = keyof Theme & string

Parameters

optional
section: "" | Section | KebabCase<Section>
optional
resolve: keyof CSSProperties | ThemeRuleResolver<ThemeValue<Theme[Section]>, Theme>
optional
convert: ThemeMatchConverter<ThemeValue<Theme[Section]>, Theme>

Returns

RuleResolver<Theme>