diff --git a/src/style/themeManager.ts b/src/style/themeManager.ts index 12c504a31f..3e05d580ed 100644 --- a/src/style/themeManager.ts +++ b/src/style/themeManager.ts @@ -1,34 +1,15 @@ import _ from 'lodash'; import type {Context} from 'react'; -import Colors from './colors'; interface Theme { - primaryColor: string, - CTA: { - textColor: string, - disabledColor: string, - backgroundColor: string - }, - titleColor: string, - subtitleColor: string, - dividerColor: string, - components: Extendable + components: Extendable; } export class ThemeManager { private themeContext?: Context; theme: Theme = { - primaryColor: Colors.$backgroundPrimaryHeavy, - CTA: { - textColor: Colors.white, - disabledColor: Colors.grey60, - backgroundColor: Colors.$backgroundPrimaryHeavy - }, - titleColor: Colors.grey10, - subtitleColor: Colors.grey40, - dividerColor: Colors.grey70, - components: {} as Extendable // leave this key and delete the rest on V6 + components: {} as Extendable }; forcedTheme = { @@ -43,10 +24,6 @@ export class ThemeManager { return this.themeContext; } - getTheme() { - return this.theme; - } - setItem(key: string, value: any) { if (key === 'components') { throw new Error('Overriding the "components" key is not possible.'); @@ -83,35 +60,6 @@ export class ThemeManager { get forcedThemeComponents() { return this.forcedTheme.components; } - - // TODO: remove getters below - get primaryColor() { - return this.theme.primaryColor; - } - - get CTATextColor() { - return this.theme.CTA.textColor; - } - - get CTADisabledColor() { - return this.theme.CTA.disabledColor; - } - - get CTABackgroundColor() { - return this.theme.CTA.backgroundColor; - } - - get titleColor() { - return this.theme.titleColor; - } - - get subtitleColor() { - return this.theme.subtitleColor; - } - - get dividerColor() { - return this.theme.dividerColor; - } } export default new ThemeManager();