createCustomTheme
createCustomTheme(
selector,overrides):void
Defined in: src/theme/createCustomTheme.ts:34
Creates a custom theme scoped to a CSS selector by deep-merging overrides onto the dark theme defaults.
MUST be called in a .css.ts file (build-time only).
Parameters
Section titled “Parameters”selector
Section titled “selector”string
CSS selector to scope the theme to (e.g. ‘.my-brand’, ‘[data-theme=“light”]‘)
overrides
Section titled “overrides”Partial theme values to override
Returns
Section titled “Returns”void
Example
Section titled “Example”import { createCustomTheme } from 'entangle-ui/theme';
createCustomTheme('.my-brand', { colors: { accent: { primary: '#ff6600' }, },});