# getThemeFromCSS

Canonical: https://docs.shumoku.dev/en/library/api/getThemeFromCSS
Language: en

@shumoku/core · 0.4.0 · function

# getThemeFromCSS

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

Get theme from CSS variables

```
getThemeFromCSS(root?: HTMLElement): Partial<Theme>
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `root` | `HTMLElement` | No additional description. | `document.documentElement` |

## Returns

```
Partial<Theme>
```

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