Documentation / @tenancy-node/core / Theme
Class: Theme
Defined in: core/src/domain/entities/theme.ts:39
Tema visual de un tenant. Inmutable: merge devuelve un tema nuevo.
Properties
accent
readonlyaccent:HexColor|undefined
Defined in: core/src/domain/entities/theme.ts:43
background
readonlybackground:HexColor|undefined
Defined in: core/src/domain/entities/theme.ts:44
custom
readonlycustom:Readonly<Record<string,string>>
Defined in: core/src/domain/entities/theme.ts:51
favicon
readonlyfavicon:string|undefined
Defined in: core/src/domain/entities/theme.ts:47
font
readonlyfont:string|undefined
Defined in: core/src/domain/entities/theme.ts:48
logo
readonlylogo:string|undefined
Defined in: core/src/domain/entities/theme.ts:46
mode
readonlymode:"light"|"dark"|"auto"|undefined
Defined in: core/src/domain/entities/theme.ts:50
primary
readonlyprimary:HexColor
Defined in: core/src/domain/entities/theme.ts:41
radius
readonlyradius:"none"|"sm"|"md"|"lg"|undefined
Defined in: core/src/domain/entities/theme.ts:49
secondary
readonlysecondary:HexColor
Defined in: core/src/domain/entities/theme.ts:42
text
readonlytext:HexColor|undefined
Defined in: core/src/domain/entities/theme.ts:45
Methods
equals()
equals(
other):boolean
Defined in: core/src/domain/entities/theme.ts:81
Parameters
other
Theme
Returns
boolean
merge()
merge(
patch):Theme
Defined in: core/src/domain/entities/theme.ts:71
Aplica un cambio parcial y valida el resultado completo.
Parameters
patch
Returns
Theme
toJSON()
toJSON():
ThemeProps
Defined in: core/src/domain/entities/theme.ts:85
Returns
create()
staticcreate(props):Theme
Defined in: core/src/domain/entities/theme.ts:54
Parameters
props
Returns
Theme