ThemeFunction
interface ThemeFunction <Theme extends BaseTheme = BaseTheme> {
(): Theme;
<Section extends keyof Theme & string, Key extends keyof Theme[Section]>(section: Section | KebabCase<Section>, key: Key): ThemeValue<Theme[Section]> | undefined;
<Section extends keyof Theme & string>(section: Section | KebabCase<Section>, key: string): ThemeValue<Theme[Section]> | undefined;
<Section extends keyof Theme & string, Key extends keyof Theme[Section]>(
section: Section | KebabCase<Section>,
key: Key,
defaultValue: ThemeValue<Theme[Section]>,
): ThemeValue<Theme[Section]>;<Section extends keyof Theme & string>(
section: Section | KebabCase<Section>,
key: string,
defaultValue: ThemeValue<Theme[Section]>,
): ThemeValue<Theme[Section]>;<Section extends keyof Theme & string>(key: `${Section}.${string}`, defaultValue: ThemeValue<Theme[Section]>): ThemeValue<Theme[Section]>;
(section: string): unknown | undefined;
(section: string, key: string): unknown | string | undefined;
<T>(
section: string,
key: string,
defaultValue: T,
): T | string;<T>(key: string, defaultValue: T): T | string;
}§Call Signatures
§
<Section extends keyof Theme & string, Key extends keyof Theme[Section]>(section: Section | KebabCase<Section>, key: Key): ThemeValue<Theme[Section]> | undefined
[src]§
<Section extends keyof Theme & string>(section: Section | KebabCase<Section>, key: string): ThemeValue<Theme[Section]> | undefined
[src]§
<Section extends keyof Theme & string, Key extends keyof Theme[Section]>(section: Section | KebabCase<Section>, key: Key, defaultValue: ThemeValue<Theme[Section]>): ThemeValue<Theme[Section]>
[src]§
<Section extends keyof Theme & string>(section: Section | KebabCase<Section>, key: string, defaultValue: ThemeValue<Theme[Section]>): ThemeValue<Theme[Section]>
[src]§
<Section extends keyof Theme & string>(key: `${Section}.${string}`, defaultValue: ThemeValue<Theme[Section]>): ThemeValue<Theme[Section]>
[src]