# ThemeInterface

> Resolves ordered config recipes for semantic component contexts.

[API reference](/docs/api/index.md) › [HTML Core](/docs/extensions/html-core/reference/index.md) › [Theme](/docs/extensions/html-core/reference/theme/index.md) › ThemeInterface

| interface | `UIAwesome\Html\Core\Theme\ThemeInterface` |
| --- | --- |
| Source | [`src/Theme/ThemeInterface.php`](https://github.com/ui-awesome/html-core/blob/main/src/Theme/ThemeInterface.php#L12) |

Resolves ordered config recipes for semantic component contexts.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`getName()`](#method-getName) abstract | Returns the stable theme identifier used in diagnostics and as the conventional recipe-name prefix. | `ThemeInterface` |
| [`getRecipes()`](#method-getRecipes) abstract | Returns recipes in the order in which they must be applied. | `ThemeInterface` |

## Method details

### getName() <span id="method-getName"></span>

```php
abstract public function getName(): string
```

Returns the stable theme identifier used in diagnostics and as the conventional recipe-name prefix.

**Returns**

`string`: Stable theme identifier.

### getRecipes() <span id="method-getRecipes"></span>

```php
abstract public function getRecipes(UIAwesome\Html\Core\Config\ComponentContext $context): iterable<UIAwesome\Html\Core\Config\Recipe>
```

Returns recipes in the order in which they must be applied.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$context` | [`UIAwesome\Html\Core\Config\ComponentContext`](/docs/extensions/html-core/reference/config/componentcontext/index.md) | Semantic component context. |

**Returns**

`iterable<`[`UIAwesome\Html\Core\Config\Recipe`](/docs/extensions/html-core/reference/config/recipe/index.md)`>`