Class: FlyzeThemingService
@flyze/lib-core-angular 1.0.0-alpha.34· latestDefined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:27
Implements
Section titled “Implements”OnDestroy
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FlyzeThemingService():
FlyzeThemingService
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:120
Returns
Section titled “Returns”FlyzeThemingService
Properties
Section titled “Properties”customPreferredColorScheme$
Section titled “customPreferredColorScheme$”
readonlycustomPreferredColorScheme$:Observable<"dark"|"light"|"auto">
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:52
Holds the custom preferred color scheme of the user. Can be set to ‘dark’, ‘light’, or ‘auto’ (which will use the system preference).
detectedPreferredColorScheme$
Section titled “detectedPreferredColorScheme$”
readonlydetectedPreferredColorScheme$:Observable<"dark"|"light">
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:36
Holds the automatic detected preferred color scheme of the user.
preferredColorScheme$
Section titled “preferredColorScheme$”
readonlypreferredColorScheme$:Observable<"dark"|"light">
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:74
Holds the preferred color scheme of the user, which is determined by the custom preference or the detected system preference. It will emit ‘dark’ or ‘light’ based on the user’s choice or system preference.
theme$
Section titled “theme$”
readonlytheme$:Observable<string>
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:93
Holds the current theme name. e.g., ‘flyze’
Accessors
Section titled “Accessors”customPreferredColorScheme
Section titled “customPreferredColorScheme”Get Signature
Section titled “Get Signature”get customPreferredColorScheme():
"dark"|"light"|"auto"
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:58
The custom preferred color scheme of the user.
Returns
Section titled “Returns”"dark" | "light" | "auto"
Set Signature
Section titled “Set Signature”set customPreferredColorScheme(
value):void
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:61
Parameters
Section titled “Parameters”"dark" | "light" | "auto"
Returns
Section titled “Returns”void
detectedPreferredColorScheme
Section titled “detectedPreferredColorScheme”Get Signature
Section titled “Get Signature”get detectedPreferredColorScheme():
"dark"|"light"
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:42
The automatic detected preferred color scheme of the user.
Returns
Section titled “Returns”"dark" | "light"
preferredColorScheme
Section titled “preferredColorScheme”Get Signature
Section titled “Get Signature”get preferredColorScheme():
"dark"|"light"
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:83
The preferred color scheme of the user, which is either ‘dark’ or ‘light’. It is determined by the custom preference or the detected system preference. If the custom preference is set to ‘auto’, it will use the detected system preference. If the custom preference is set to ‘dark’ or ‘light’, it will use that value instead.
Returns
Section titled “Returns”"dark" | "light"
Get Signature
Section titled “Get Signature”get theme():
string
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:102
The current theme name. e.g., ‘flyze’ The theme must exist in the theming service. If not, the theme will not be changed. Register the theme via setThemeConfig before using it.
Returns
Section titled “Returns”string
Set Signature
Section titled “Set Signature”set theme(
value):void
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:105
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Methods
Section titled “Methods”generateGradiationPalette()
Section titled “generateGradiationPalette()”generateGradiationPalette<
Key>(themeName,key):any
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:295
Generates a gradient palette for a given theme and key.
Type Parameters
Section titled “Type Parameters”Key extends NestedKeyOf<DeepPartialWithColor<{ dark: { colors: { colors-flyze-default: string; colors-flyze-orange: string; colors-flyze-pink: string; colors-system-blue: string; colors-system-brown: string; colors-system-cyan: string; colors-system-gray: string; colors-system-gray-2: string; colors-system-gray-3: string; colors-system-gray-4: string; colors-system-gray-5: string; colors-system-gray-6: string; colors-system-green: string; colors-system-indigo: string; colors-system-mint: string; colors-system-orange: string; colors-system-pink: string; colors-system-purple: string; colors-system-red: string; colors-system-teal: string; colors-system-yellow: string; }; platform: { platform-flyze-error: string; platform-flyze-info: string; platform-flyze-success: string; platform-flyze-warning: string; platform-shell-asset-tree: string; platform-shell-body: string; platform-shell-dashboard-header: string; platform-shell-header: string; platform-shell-sidenav: string; }; system: { system-black-text: string; system-dark-text: string; system-label: string; system-label-default: string; system-label-quaternary: string; system-label-secondary: string; system-label-tertiary: string; system-light-text: string; system-link: string; system-opaque-separator: string; system-opaque-seperator: string; system-placeholder-text: string; system-quarterly-system-background-color: string; system-quartery-system-background-color: string; system-quaternary-system-fill: string; system-secondary-system-background: string; system-secondary-system-fill: string; system-secondary-system-grouped-background: string; system-separator: string; system-seperator: string; system-stroke: string; system-system-background: string; system-system-fill: string; system-system-grouped-background: string; system-tertiary-system-background: string; system-tertiary-system-fill: string; system-tertiary-system-grouped-background: string; system-tint: string; system-tint-5: string; system-tint-50: string; system-tint-95: string; system-white-text: string; }; }; light: { colors: { colors-flyze-default: string; colors-flyze-orange: string; colors-flyze-pink: string; colors-system-blue: string; colors-system-brown: string; colors-system-cyan: string; colors-system-gray: string; colors-system-gray-2: string; colors-system-gray-3: string; colors-system-gray-4: string; colors-system-gray-5: string; colors-system-gray-6: string; colors-system-green: string; colors-system-indigo: string; colors-system-mint: string; colors-system-orange: string; colors-system-pink: string; colors-system-purple: string; colors-system-red: string; colors-system-teal: string; colors-system-yellow: string; }; platform: { platform-flyze-error: string; platform-flyze-info: string; platform-flyze-success: string; platform-flyze-warning: string; platform-shell-asset-tree: string; platform-shell-body: string; platform-shell-dashboard-header: string; platform-shell-header: string; platform-shell-sidenav: string; }; system: { system-black-text: string; system-dark-text: string; system-label: string; system-label-default: string; system-label-quaternary: string; system-label-secondary: string; system-label-tertiary: string; system-light-text: string; system-link: string; system-opaque-separator: string; system-opaque-seperator: string; system-placeholder-text: string; system-quarterly-system-background-color: string; system-quartery-system-background-color: string; system-quaternary-system-fill: string; system-secondary-system-background: string; system-secondary-system-fill: string; system-secondary-system-grouped-background: string; system-separator: string; system-seperator: string; system-stroke: string; system-system-background: string; system-system-fill: string; system-system-grouped-background: string; system-tertiary-system-background: string; system-tertiary-system-fill: string; system-tertiary-system-grouped-background: string; system-tint: string; system-tint-5: string; system-tint-50: string; system-tint-95: string; system-white-text: string; }; }; }>>
Parameters
Section titled “Parameters”themeName
Section titled “themeName”string
The name of the theme.
Key
The key of the theme property.
Returns
Section titled “Returns”any
- An object containing the gradient values for the given key.
getThemeConfig()
Section titled “getThemeConfig()”getThemeConfig(
themeName):ThemeStructure
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:165
Retrieves the theme configuration for a given theme name.
Parameters
Section titled “Parameters”themeName
Section titled “themeName”string
The name of the theme to retrieve the configuration for.
Returns
Section titled “Returns”The theme configuration for the given theme name, or undefined if the theme does not exist.
getThemeValue()
Section titled “getThemeValue()”getThemeValue<
Key>(themeName,key):ValueOfPath<DeepPartialWithColor<{dark: {colors: {colors-flyze-default:string;colors-flyze-orange:string;colors-flyze-pink:string;colors-system-blue:string;colors-system-brown:string;colors-system-cyan:string;colors-system-gray:string;colors-system-gray-2:string;colors-system-gray-3:string;colors-system-gray-4:string;colors-system-gray-5:string;colors-system-gray-6:string;colors-system-green:string;colors-system-indigo:string;colors-system-mint:string;colors-system-orange:string;colors-system-pink:string;colors-system-purple:string;colors-system-red:string;colors-system-teal:string;colors-system-yellow:string; };platform: {platform-flyze-error:string;platform-flyze-info:string;platform-flyze-success:string;platform-flyze-warning:string;platform-shell-asset-tree:string;platform-shell-body:string;platform-shell-dashboard-header:string;platform-shell-header:string;platform-shell-sidenav:string; };system: {system-black-text:string;system-dark-text:string;system-label:string;system-label-default:string;system-label-quaternary:string;system-label-secondary:string;system-label-tertiary:string;system-light-text:string;system-link:string;system-opaque-separator:string;system-opaque-seperator:string;system-placeholder-text:string;system-quarterly-system-background-color:string;system-quartery-system-background-color:string;system-quaternary-system-fill:string;system-secondary-system-background:string;system-secondary-system-fill:string;system-secondary-system-grouped-background:string;system-separator:string;system-seperator:string;system-stroke:string;system-system-background:string;system-system-fill:string;system-system-grouped-background:string;system-tertiary-system-background:string;system-tertiary-system-fill:string;system-tertiary-system-grouped-background:string;system-tint:string;system-tint-5:string;system-tint-50:string;system-tint-95:string;system-white-text:string; }; };light: {colors: {colors-flyze-default:string;colors-flyze-orange:string;colors-flyze-pink:string;colors-system-blue:string;colors-system-brown:string;colors-system-cyan:string;colors-system-gray:string;colors-system-gray-2:string;colors-system-gray-3:string;colors-system-gray-4:string;colors-system-gray-5:string;colors-system-gray-6:string;colors-system-green:string;colors-system-indigo:string;colors-system-mint:string;colors-system-orange:string;colors-system-pink:string;colors-system-purple:string;colors-system-red:string;colors-system-teal:string;colors-system-yellow:string; };platform: {platform-flyze-error:string;platform-flyze-info:string;platform-flyze-success:string;platform-flyze-warning:string;platform-shell-asset-tree:string;platform-shell-body:string;platform-shell-dashboard-header:string;platform-shell-header:string;platform-shell-sidenav:string; };system: {system-black-text:string;system-dark-text:string;system-label:string;system-label-default:string;system-label-quaternary:string;system-label-secondary:string;system-label-tertiary:string;system-light-text:string;system-link:string;system-opaque-separator:string;system-opaque-seperator:string;system-placeholder-text:string;system-quarterly-system-background-color:string;system-quartery-system-background-color:string;system-quaternary-system-fill:string;system-secondary-system-background:string;system-secondary-system-fill:string;system-secondary-system-grouped-background:string;system-separator:string;system-seperator:string;system-stroke:string;system-system-background:string;system-system-fill:string;system-system-grouped-background:string;system-tertiary-system-background:string;system-tertiary-system-fill:string;system-tertiary-system-grouped-background:string;system-tint:string;system-tint-5:string;system-tint-50:string;system-tint-95:string;system-white-text:string; }; }; }>,Key>
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:251
Retrieves the value of a theme property from the specified theme.
Type Parameters
Section titled “Type Parameters”Key extends NestedKeyOf<DeepPartialWithColor<{ dark: { colors: { colors-flyze-default: string; colors-flyze-orange: string; colors-flyze-pink: string; colors-system-blue: string; colors-system-brown: string; colors-system-cyan: string; colors-system-gray: string; colors-system-gray-2: string; colors-system-gray-3: string; colors-system-gray-4: string; colors-system-gray-5: string; colors-system-gray-6: string; colors-system-green: string; colors-system-indigo: string; colors-system-mint: string; colors-system-orange: string; colors-system-pink: string; colors-system-purple: string; colors-system-red: string; colors-system-teal: string; colors-system-yellow: string; }; platform: { platform-flyze-error: string; platform-flyze-info: string; platform-flyze-success: string; platform-flyze-warning: string; platform-shell-asset-tree: string; platform-shell-body: string; platform-shell-dashboard-header: string; platform-shell-header: string; platform-shell-sidenav: string; }; system: { system-black-text: string; system-dark-text: string; system-label: string; system-label-default: string; system-label-quaternary: string; system-label-secondary: string; system-label-tertiary: string; system-light-text: string; system-link: string; system-opaque-separator: string; system-opaque-seperator: string; system-placeholder-text: string; system-quarterly-system-background-color: string; system-quartery-system-background-color: string; system-quaternary-system-fill: string; system-secondary-system-background: string; system-secondary-system-fill: string; system-secondary-system-grouped-background: string; system-separator: string; system-seperator: string; system-stroke: string; system-system-background: string; system-system-fill: string; system-system-grouped-background: string; system-tertiary-system-background: string; system-tertiary-system-fill: string; system-tertiary-system-grouped-background: string; system-tint: string; system-tint-5: string; system-tint-50: string; system-tint-95: string; system-white-text: string; }; }; light: { colors: { colors-flyze-default: string; colors-flyze-orange: string; colors-flyze-pink: string; colors-system-blue: string; colors-system-brown: string; colors-system-cyan: string; colors-system-gray: string; colors-system-gray-2: string; colors-system-gray-3: string; colors-system-gray-4: string; colors-system-gray-5: string; colors-system-gray-6: string; colors-system-green: string; colors-system-indigo: string; colors-system-mint: string; colors-system-orange: string; colors-system-pink: string; colors-system-purple: string; colors-system-red: string; colors-system-teal: string; colors-system-yellow: string; }; platform: { platform-flyze-error: string; platform-flyze-info: string; platform-flyze-success: string; platform-flyze-warning: string; platform-shell-asset-tree: string; platform-shell-body: string; platform-shell-dashboard-header: string; platform-shell-header: string; platform-shell-sidenav: string; }; system: { system-black-text: string; system-dark-text: string; system-label: string; system-label-default: string; system-label-quaternary: string; system-label-secondary: string; system-label-tertiary: string; system-light-text: string; system-link: string; system-opaque-separator: string; system-opaque-seperator: string; system-placeholder-text: string; system-quarterly-system-background-color: string; system-quartery-system-background-color: string; system-quaternary-system-fill: string; system-secondary-system-background: string; system-secondary-system-fill: string; system-secondary-system-grouped-background: string; system-separator: string; system-seperator: string; system-stroke: string; system-system-background: string; system-system-fill: string; system-system-grouped-background: string; system-tertiary-system-background: string; system-tertiary-system-fill: string; system-tertiary-system-grouped-background: string; system-tint: string; system-tint-5: string; system-tint-50: string; system-tint-95: string; system-white-text: string; }; }; }>>
Parameters
Section titled “Parameters”themeName
Section titled “themeName”string
The name of the theme to retrieve the value from.
Key
The key of the theme property to retrieve.
Returns
Section titled “Returns”ValueOfPath<DeepPartialWithColor<{ dark: { colors: { colors-flyze-default: string; colors-flyze-orange: string; colors-flyze-pink: string; colors-system-blue: string; colors-system-brown: string; colors-system-cyan: string; colors-system-gray: string; colors-system-gray-2: string; colors-system-gray-3: string; colors-system-gray-4: string; colors-system-gray-5: string; colors-system-gray-6: string; colors-system-green: string; colors-system-indigo: string; colors-system-mint: string; colors-system-orange: string; colors-system-pink: string; colors-system-purple: string; colors-system-red: string; colors-system-teal: string; colors-system-yellow: string; }; platform: { platform-flyze-error: string; platform-flyze-info: string; platform-flyze-success: string; platform-flyze-warning: string; platform-shell-asset-tree: string; platform-shell-body: string; platform-shell-dashboard-header: string; platform-shell-header: string; platform-shell-sidenav: string; }; system: { system-black-text: string; system-dark-text: string; system-label: string; system-label-default: string; system-label-quaternary: string; system-label-secondary: string; system-label-tertiary: string; system-light-text: string; system-link: string; system-opaque-separator: string; system-opaque-seperator: string; system-placeholder-text: string; system-quarterly-system-background-color: string; system-quartery-system-background-color: string; system-quaternary-system-fill: string; system-secondary-system-background: string; system-secondary-system-fill: string; system-secondary-system-grouped-background: string; system-separator: string; system-seperator: string; system-stroke: string; system-system-background: string; system-system-fill: string; system-system-grouped-background: string; system-tertiary-system-background: string; system-tertiary-system-fill: string; system-tertiary-system-grouped-background: string; system-tint: string; system-tint-5: string; system-tint-50: string; system-tint-95: string; system-white-text: string; }; }; light: { colors: { colors-flyze-default: string; colors-flyze-orange: string; colors-flyze-pink: string; colors-system-blue: string; colors-system-brown: string; colors-system-cyan: string; colors-system-gray: string; colors-system-gray-2: string; colors-system-gray-3: string; colors-system-gray-4: string; colors-system-gray-5: string; colors-system-gray-6: string; colors-system-green: string; colors-system-indigo: string; colors-system-mint: string; colors-system-orange: string; colors-system-pink: string; colors-system-purple: string; colors-system-red: string; colors-system-teal: string; colors-system-yellow: string; }; platform: { platform-flyze-error: string; platform-flyze-info: string; platform-flyze-success: string; platform-flyze-warning: string; platform-shell-asset-tree: string; platform-shell-body: string; platform-shell-dashboard-header: string; platform-shell-header: string; platform-shell-sidenav: string; }; system: { system-black-text: string; system-dark-text: string; system-label: string; system-label-default: string; system-label-quaternary: string; system-label-secondary: string; system-label-tertiary: string; system-light-text: string; system-link: string; system-opaque-separator: string; system-opaque-seperator: string; system-placeholder-text: string; system-quarterly-system-background-color: string; system-quartery-system-background-color: string; system-quaternary-system-fill: string; system-secondary-system-background: string; system-secondary-system-fill: string; system-secondary-system-grouped-background: string; system-separator: string; system-seperator: string; system-stroke: string; system-system-background: string; system-system-fill: string; system-system-grouped-background: string; system-tertiary-system-background: string; system-tertiary-system-fill: string; system-tertiary-system-grouped-background: string; system-tint: string; system-tint-5: string; system-tint-50: string; system-tint-95: string; system-white-text: string; }; }; }>, Key>
The value of the theme property.
getThemeValueGradiation()
Section titled “getThemeValueGradiation()”getThemeValueGradiation<
Key>(themeName,key,gradition):string
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:272
Retrieves a theme value with a specified gradiation.
Type Parameters
Section titled “Type Parameters”Key extends NestedKeyOf<DeepPartialWithColor<{ dark: { colors: { colors-flyze-default: string; colors-flyze-orange: string; colors-flyze-pink: string; colors-system-blue: string; colors-system-brown: string; colors-system-cyan: string; colors-system-gray: string; colors-system-gray-2: string; colors-system-gray-3: string; colors-system-gray-4: string; colors-system-gray-5: string; colors-system-gray-6: string; colors-system-green: string; colors-system-indigo: string; colors-system-mint: string; colors-system-orange: string; colors-system-pink: string; colors-system-purple: string; colors-system-red: string; colors-system-teal: string; colors-system-yellow: string; }; platform: { platform-flyze-error: string; platform-flyze-info: string; platform-flyze-success: string; platform-flyze-warning: string; platform-shell-asset-tree: string; platform-shell-body: string; platform-shell-dashboard-header: string; platform-shell-header: string; platform-shell-sidenav: string; }; system: { system-black-text: string; system-dark-text: string; system-label: string; system-label-default: string; system-label-quaternary: string; system-label-secondary: string; system-label-tertiary: string; system-light-text: string; system-link: string; system-opaque-separator: string; system-opaque-seperator: string; system-placeholder-text: string; system-quarterly-system-background-color: string; system-quartery-system-background-color: string; system-quaternary-system-fill: string; system-secondary-system-background: string; system-secondary-system-fill: string; system-secondary-system-grouped-background: string; system-separator: string; system-seperator: string; system-stroke: string; system-system-background: string; system-system-fill: string; system-system-grouped-background: string; system-tertiary-system-background: string; system-tertiary-system-fill: string; system-tertiary-system-grouped-background: string; system-tint: string; system-tint-5: string; system-tint-50: string; system-tint-95: string; system-white-text: string; }; }; light: { colors: { colors-flyze-default: string; colors-flyze-orange: string; colors-flyze-pink: string; colors-system-blue: string; colors-system-brown: string; colors-system-cyan: string; colors-system-gray: string; colors-system-gray-2: string; colors-system-gray-3: string; colors-system-gray-4: string; colors-system-gray-5: string; colors-system-gray-6: string; colors-system-green: string; colors-system-indigo: string; colors-system-mint: string; colors-system-orange: string; colors-system-pink: string; colors-system-purple: string; colors-system-red: string; colors-system-teal: string; colors-system-yellow: string; }; platform: { platform-flyze-error: string; platform-flyze-info: string; platform-flyze-success: string; platform-flyze-warning: string; platform-shell-asset-tree: string; platform-shell-body: string; platform-shell-dashboard-header: string; platform-shell-header: string; platform-shell-sidenav: string; }; system: { system-black-text: string; system-dark-text: string; system-label: string; system-label-default: string; system-label-quaternary: string; system-label-secondary: string; system-label-tertiary: string; system-light-text: string; system-link: string; system-opaque-separator: string; system-opaque-seperator: string; system-placeholder-text: string; system-quarterly-system-background-color: string; system-quartery-system-background-color: string; system-quaternary-system-fill: string; system-secondary-system-background: string; system-secondary-system-fill: string; system-secondary-system-grouped-background: string; system-separator: string; system-seperator: string; system-stroke: string; system-system-background: string; system-system-fill: string; system-system-grouped-background: string; system-tertiary-system-background: string; system-tertiary-system-fill: string; system-tertiary-system-grouped-background: string; system-tint: string; system-tint-5: string; system-tint-50: string; system-tint-95: string; system-white-text: string; }; }; }>>
Parameters
Section titled “Parameters”themeName
Section titled “themeName”string
The name of the theme to retrieve the value from.
Key
The key of the theme property to retrieve.
gradition
Section titled “gradition”The gradiation configuration.
gradiationPercentage
Section titled “gradiationPercentage”number
gradiationType
Section titled “gradiationType”"lighter" | "darker"
Returns
Section titled “Returns”string
A CSS color-mix string representing the gradiated theme value.
ngOnDestroy()
Section titled “ngOnDestroy()”ngOnDestroy():
void
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:149
A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”OnDestroy.ngOnDestroy
removeRootVariable()
Section titled “removeRootVariable()”removeRootVariable(
variableName):void
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:228
Removes a root variable with the specified name.
Parameters
Section titled “Parameters”variableName
Section titled “variableName”string
The name of the root variable to be removed.
Returns
Section titled “Returns”void
setMultipleRootVariables()
Section titled “setMultipleRootVariables()”setMultipleRootVariables(
variables):void
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:239
Sets multiple root variables at once.
Parameters
Section titled “Parameters”variables
Section titled “variables”Record<string, string>
An object containing the variable names as keys and their corresponding values.
Returns
Section titled “Returns”void
setRootVariable()
Section titled “setRootVariable()”setRootVariable(
variableName,value):void
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:217
Sets a root variable with the specified name and value. It will directly set the variable, ignoring theme configurations
Parameters
Section titled “Parameters”variableName
Section titled “variableName”string
The name of the root variable.
string
The value of the root variable.
Returns
Section titled “Returns”void
setThemeConfig()
Section titled “setThemeConfig()”setThemeConfig(
themeName,themePalette):void
Defined in: projects/lib-core-angular/src/lib/modules/theme/flyze-theming.service.ts:178
Sets the theme configuration for a given theme name.
Parameters
Section titled “Parameters”themeName
Section titled “themeName”string
The name of the theme to set the configuration for.
themePalette
Section titled “themePalette”DeepPartialWithColor<{ dark: { colors: { colors-flyze-default: string; colors-flyze-orange: string; colors-flyze-pink: string; colors-system-blue: string; colors-system-brown: string; colors-system-cyan: string; colors-system-gray: string; colors-system-gray-2: string; colors-system-gray-3: string; colors-system-gray-4: string; colors-system-gray-5: string; colors-system-gray-6: string; colors-system-green: string; colors-system-indigo: string; colors-system-mint: string; colors-system-orange: string; colors-system-pink: string; colors-system-purple: string; colors-system-red: string; colors-system-teal: string; colors-system-yellow: string; }; platform: { platform-flyze-error: string; platform-flyze-info: string; platform-flyze-success: string; platform-flyze-warning: string; platform-shell-asset-tree: string; platform-shell-body: string; platform-shell-dashboard-header: string; platform-shell-header: string; platform-shell-sidenav: string; }; system: { system-black-text: string; system-dark-text: string; system-label: string; system-label-default: string; system-label-quaternary: string; system-label-secondary: string; system-label-tertiary: string; system-light-text: string; system-link: string; system-opaque-separator: string; system-opaque-seperator: string; system-placeholder-text: string; system-quarterly-system-background-color: string; system-quartery-system-background-color: string; system-quaternary-system-fill: string; system-secondary-system-background: string; system-secondary-system-fill: string; system-secondary-system-grouped-background: string; system-separator: string; system-seperator: string; system-stroke: string; system-system-background: string; system-system-fill: string; system-system-grouped-background: string; system-tertiary-system-background: string; system-tertiary-system-fill: string; system-tertiary-system-grouped-background: string; system-tint: string; system-tint-5: string; system-tint-50: string; system-tint-95: string; system-white-text: string; }; }; light: { colors: { colors-flyze-default: string; colors-flyze-orange: string; colors-flyze-pink: string; colors-system-blue: string; colors-system-brown: string; colors-system-cyan: string; colors-system-gray: string; colors-system-gray-2: string; colors-system-gray-3: string; colors-system-gray-4: string; colors-system-gray-5: string; colors-system-gray-6: string; colors-system-green: string; colors-system-indigo: string; colors-system-mint: string; colors-system-orange: string; colors-system-pink: string; colors-system-purple: string; colors-system-red: string; colors-system-teal: string; colors-system-yellow: string; }; platform: { platform-flyze-error: string; platform-flyze-info: string; platform-flyze-success: string; platform-flyze-warning: string; platform-shell-asset-tree: string; platform-shell-body: string; platform-shell-dashboard-header: string; platform-shell-header: string; platform-shell-sidenav: string; }; system: { system-black-text: string; system-dark-text: string; system-label: string; system-label-default: string; system-label-quaternary: string; system-label-secondary: string; system-label-tertiary: string; system-light-text: string; system-link: string; system-opaque-separator: string; system-opaque-seperator: string; system-placeholder-text: string; system-quarterly-system-background-color: string; system-quartery-system-background-color: string; system-quaternary-system-fill: string; system-secondary-system-background: string; system-secondary-system-fill: string; system-secondary-system-grouped-background: string; system-separator: string; system-seperator: string; system-stroke: string; system-system-background: string; system-system-fill: string; system-system-grouped-background: string; system-tertiary-system-background: string; system-tertiary-system-fill: string; system-tertiary-system-grouped-background: string; system-tint: string; system-tint-5: string; system-tint-50: string; system-tint-95: string; system-white-text: string; }; }; }> & object
The theme configuration to set.
Returns
Section titled “Returns”void