---
url: /api/formats/css/src/variables/themeClass.md
---
[pantoken-root](../../../../index.md) / [formats/css/src](../index.md) / themeClass

# Variable: themeClass

> `const` **themeClass**: (`theme`) => `string`

Beta

Class equivalents of the scope attributes, for hosts that sanitize `data-*` but allow `class` —
Canvas RCE content being the one that forced them. They follow the repo's global-modifier naming
(`.--name`), and the emitter pairs each attribute selector with its class twin.

## Parameters

### theme

`string`

## Returns

`string`
