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

Context

interface Context <Theme extends BaseTheme = BaseTheme> {
d: (
section: string,
key: string,
color: ColorValue,
) => ColorValue | Falsey
;
e: (value: string) => string;
f: (rule: TwindRule) => TwindRule;
h: (value: string) => string;
r: (value: string, isDark?: boolean) => RuleResult;
s: (property: string, value: string) => string;
theme: ThemeFunction<Theme>;
v: (value: string) => MaybeArray<string>;
}

§Type Parameters

§
Theme extends BaseTheme = BaseTheme
[src]

§Properties

§
d: (section: string, key: string, color: ColorValue) => ColorValue | Falsey
[src]

returns the dark color

§
e: (value: string) => string
[src]

escapes given string for use in a CSS selector or variable

§

called right before the rule is stringified and inserted into the sheet

§
h: (value: string) => string
[src]

create hash of given string — may be no-op eg returning the same input

§
r: (value: string, isDark?: boolean) => RuleResult
[src]

resolves a rule

§
s: (property: string, value: string) => string
[src]

stringifies a CSS property and value to a declaration

§
theme: ThemeFunction<Theme>
[src]

Allows to resolve theme values.

§
v: (value: string) => MaybeArray<string>
[src]

resolves a variant