# applyThemeToCSS

Canonical: https://docs.shumoku.dev/ja/library/api/applyThemeToCSS
Language: ja

@shumoku/core · 0.4.0 · function

# applyThemeToCSS

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/themes/utils.ts#L32)

APIの説明は英語のcanonical sourceを表示しています。

Apply theme to CSS variables

```
applyThemeToCSS(theme: Theme, root?: HTMLElement): void
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `theme` | `Theme` | 追加説明はありません。 | `—` |
| `root` | `HTMLElement` | 追加説明はありません。 | `document.documentElement` |

## 戻り値

```
void
```

[`libs/@shumoku/core/src/themes/utils.ts:32`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/themes/utils.ts#L32)
