Skip to main content

DocumentThemeOptions

Defined in: packages/reformer/src/theme/adapters.ts:128

Настройки documentTheme.

Properties​

attribute?​

optional attribute: "class" | "data-theme";

Defined in: packages/reformer/src/theme/adapters.ts:136

Маркер тёмной темы. 'class' — класс dark (светлая — без класса); 'data-theme' — атрибут data-theme="dark|light". Оба читает @custom-variant dark у @reformer/ui-kit. По умолчанию 'class'.


colorScheme?​

optional colorScheme: boolean;

Defined in: packages/reformer/src/theme/adapters.ts:138

Ставить color-scheme (полосы прокрутки, системные контролы). По умолчанию true.


root?​

optional root: HTMLElement;

Defined in: packages/reformer/src/theme/adapters.ts:130

Элемент, на который ставится маркер темы. По умолчанию document.documentElement.