aboutsummaryrefslogtreecommitdiffstats
path: root/src/themes
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2024-02-11 09:50:32 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2024-02-11 04:39:55 +0000
commitbeb1f1c28adc9872b179a2169e4f8d34adf125c7 (patch)
tree86dbd13e3ef6365d0e28fe4d23de7c6b7828f692 /src/themes
parentremove unused '@types/react-loader' pkg (diff)
downloadferdium-app-beb1f1c28adc9872b179a2169e4f8d34adf125c7.tar.gz
ferdium-app-beb1f1c28adc9872b179a2169e4f8d34adf125c7.tar.zst
ferdium-app-beb1f1c28adc9872b179a2169e4f8d34adf125c7.zip
minor refactoring to remove duplication with a constant
Diffstat (limited to 'src/themes')
-rw-r--r--src/themes/default/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/themes/default/index.ts b/src/themes/default/index.ts
index cc886f299..ac04a6e3b 100644
--- a/src/themes/default/index.ts
+++ b/src/themes/default/index.ts
@@ -3,6 +3,7 @@ import { cloneDeep } from 'lodash';
3 3
4import * as legacyStyles from '../legacy'; 4import * as legacyStyles from '../legacy';
5import type IStyleTypes from '../IStyleTypes'; 5import type IStyleTypes from '../IStyleTypes';
6import { DEFAULT_LOADER_COLOR } from '../../config';
6 7
7export default (brandPrimary: string) => { 8export default (brandPrimary: string) => {
8 if (!brandPrimary) { 9 if (!brandPrimary) {
@@ -14,7 +15,7 @@ export default (brandPrimary: string) => {
14 const brandDanger = '#d9534f'; 15 const brandDanger = '#d9534f';
15 const uiFontSize = 14; 16 const uiFontSize = 14;
16 const colorBackground = legacyStyles.themeGrayLighter; 17 const colorBackground = legacyStyles.themeGrayLighter;
17 const colorContentBackground = '#FFFFFF'; 18 const colorContentBackground = DEFAULT_LOADER_COLOR;
18 const colorText = legacyStyles.themeGrayDark; 19 const colorText = legacyStyles.themeGrayDark;
19 const inputColor = legacyStyles.themeGray; 20 const inputColor = legacyStyles.themeGray;
20 const inputBackground = legacyStyles.themeGrayLightest; 21 const inputBackground = legacyStyles.themeGrayLightest;