# Type Alias: ThemeFn

```
type ThemeFn = () => Theme;
```

A function that returns a theme value. This allows for dynamic theme selection based on runtime conditions. The function is evaluated lazily whenever the theme is accessed.

## Returns[#](#returns)

[`Theme`](https://img.ly/docs/cesdk/vue/api/cesdk-js/documentation/namespaces/configtypes/type-aliases/theme/)

---



[Source](https:/img.ly/docs/cesdk/vue/api/cesdk-js/documentation/namespaces/configtypes/type-aliases/themeconfig)