Context
interface Context <Theme extends BaseTheme = BaseTheme> {
d: (
section: string,
key: string,
color: ColorValue,
) => ColorValue | Falsey;e: (value: string) => string;
h: (value: string) => string;
r: (value: string, isDark?: boolean) => RuleResult;
s: (property: string, value: string) => string;
theme: ThemeFunction<Theme>;
v: (value: string) => MaybeArray<string>;
}§Properties
§
d: (section: string, key: string, color: ColorValue) => ColorValue | Falsey
[src]returns the dark color
§
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