Packages
@twind/core › ThemeFunction
Type parameters
| Name | Type |
|---|---|
Theme | extends BaseTheme = BaseTheme |
Callable
ThemeFunction
▸ ThemeFunction(): Theme
Returns
Theme
Defined in
packages/core/src/types.ts:149
ThemeFunction
▸ ThemeFunction<Section>(section): Theme[Section]
Type parameters
| Name | Type |
|---|---|
Section | extends string |
Parameters
| Name | Type |
|---|---|
section | Section | KebabCase<Section> |
Returns
Theme[Section]
Defined in
packages/core/src/types.ts:151
ThemeFunction
▸ ThemeFunction<Section, Key>(section, key): undefined | ThemeValue<Theme[Section]>
Type parameters
| Name | Type |
|---|---|
Section | extends string |
Key | extends string | number | symbol |
Parameters
| Name | Type |
|---|---|
section | Section | KebabCase<Section> |
key | Key |
Returns
undefined | ThemeValue<Theme[Section]>
Defined in
packages/core/src/types.ts:153
ThemeFunction
▸ ThemeFunction<Section>(section, key): undefined | ThemeValue<Theme[Section]>
Type parameters
| Name | Type |
|---|---|
Section | extends string |
Parameters
| Name | Type |
|---|---|
section | Section | KebabCase<Section> |
key | string |
Returns
undefined | ThemeValue<Theme[Section]>
Defined in
packages/core/src/types.ts:158
ThemeFunction
▸ ThemeFunction<Section, Key>(section, key, defaultValue): ThemeValue<Theme[Section]>
Type parameters
| Name | Type |
|---|---|
Section | extends string |
Key | extends string | number | symbol |
Parameters
| Name | Type |
|---|---|
section | Section | KebabCase<Section> |
key | Key |
defaultValue | ThemeValue<Theme[Section]> |
Returns
ThemeValue<Theme[Section]>
Defined in
packages/core/src/types.ts:162
ThemeFunction
▸ ThemeFunction<Section>(section, key, defaultValue): ThemeValue<Theme[Section]>
Type parameters
| Name | Type |
|---|---|
Section | extends string |
Parameters
| Name | Type |
|---|---|
section | Section | KebabCase<Section> |
key | string |
defaultValue | ThemeValue<Theme[Section]> |
Returns
ThemeValue<Theme[Section]>
Defined in
packages/core/src/types.ts:168
ThemeFunction
▸ ThemeFunction<Section>(key): ThemeValue<Theme[Section]>
Type parameters
| Name | Type |
|---|---|
Section | extends string |
Parameters
| Name | Type |
|---|---|
key | `${Section}.${string}` |
Returns
ThemeValue<Theme[Section]>
Defined in
packages/core/src/types.ts:175
ThemeFunction
▸ ThemeFunction<Section>(key, defaultValue): ThemeValue<Theme[Section]>
Type parameters
| Name | Type |
|---|---|
Section | extends string |
Parameters
| Name | Type |
|---|---|
key | `${Section}.${string}` |
defaultValue | ThemeValue<Theme[Section]> |
Returns
ThemeValue<Theme[Section]>
Defined in
packages/core/src/types.ts:177
ThemeFunction
▸ ThemeFunction(section): unknown
Parameters
| Name | Type |
|---|---|
section | string |
Returns
unknown
Defined in
packages/core/src/types.ts:182
ThemeFunction
▸ ThemeFunction(section, key): unknown
Parameters
| Name | Type |
|---|---|
section | string |
key | string |
Returns
unknown
Defined in
packages/core/src/types.ts:183
ThemeFunction
▸ ThemeFunction<T>(section, key, defaultValue): string | T
Type parameters
| Name |
|---|
T |
Parameters
| Name | Type |
|---|---|
section | string |
key | string |
defaultValue | T |
Returns
string | T
Defined in
packages/core/src/types.ts:184
ThemeFunction
▸ ThemeFunction<T>(key, defaultValue): string | T
Type parameters
| Name |
|---|
T |
Parameters
| Name | Type |
|---|---|
key | string |
defaultValue | T |
Returns
string | T