diff options
author | muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com> | 2022-10-23 16:19:40 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-23 10:49:40 +0000 |
commit | c9f8a4e90beb48f96008f3417d603c8e35bc2985 (patch) | |
tree | 6161edd53c83df8030b4177fb4df462ed63b77ac /scripts | |
parent | 6.2.1-nightly.26 [skip ci] (diff) | |
download | ferdium-app-c9f8a4e90beb48f96008f3417d603c8e35bc2985.tar.gz ferdium-app-c9f8a4e90beb48f96008f3417d603c8e35bc2985.tar.zst ferdium-app-c9f8a4e90beb48f96008f3417d603c8e35bc2985.zip |
chore: convert some js scripts & gulpfile into typescript (#693)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/theme/default/legacy.js | 38 | ||||
-rw-r--r-- | scripts/theme/default/legacy.ts | 46 |
2 files changed, 46 insertions, 38 deletions
diff --git a/scripts/theme/default/legacy.js b/scripts/theme/default/legacy.js deleted file mode 100644 index 015dca756..000000000 --- a/scripts/theme/default/legacy.js +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | /* legacy config, injected into sass at build time */ | ||
2 | export const themeBrandPrimary = '#7266F0'; | ||
3 | export const themeBrandSuccess = '#5cb85c'; | ||
4 | export const themeBrandInfo = '#5bc0de'; | ||
5 | export const themeBrandWarning = '#FF9F00'; | ||
6 | export const themeBrandDanger = '#d9534f'; | ||
7 | |||
8 | export const themeGrayDark = '#373a3c'; | ||
9 | export const themeGray = '#55595c'; | ||
10 | export const themeGrayLight = '#818a91'; | ||
11 | export const themeGrayLighter = '#eceeef'; | ||
12 | export const themeGrayLightest = '#f7f7f9'; | ||
13 | |||
14 | export const themeBorderRadius = '6px'; | ||
15 | export const themeBorderRadiusSmall = '3px'; | ||
16 | |||
17 | export const themeSidebarWidth = '68px'; | ||
18 | |||
19 | export const themeTextColor = themeGrayDark; | ||
20 | |||
21 | export const themeTransitionTime = '.5s'; | ||
22 | |||
23 | export const themeInsetShadow = 'inset 0 2px 5px rgba(0, 0, 0, .03)'; | ||
24 | |||
25 | export const darkThemeBlack = '#1A1A1A'; | ||
26 | |||
27 | export const darkThemeGrayDarkest = '#1E1E1E'; | ||
28 | export const darkThemeGrayDarker = '#2D2F31'; | ||
29 | export const darkThemeGrayDark = '#383A3B'; | ||
30 | |||
31 | export const darkThemeGray = '#47494B'; | ||
32 | |||
33 | export const darkThemeGrayLight = '#515355'; | ||
34 | export const darkThemeGrayLighter = '#8a8b8b'; | ||
35 | export const darkThemeGrayLightest = '#FFFFFF'; | ||
36 | |||
37 | export const darkThemeGraySmoke = '#CED0D1'; | ||
38 | export const darkThemeTextColor = '#FFFFFF'; | ||
diff --git a/scripts/theme/default/legacy.ts b/scripts/theme/default/legacy.ts new file mode 100644 index 000000000..e7e15f7cf --- /dev/null +++ b/scripts/theme/default/legacy.ts | |||
@@ -0,0 +1,46 @@ | |||
1 | /* legacy config, injected into sass at build time */ | ||
2 | interface ILegacyConfig { | ||
3 | [key: string]: string; | ||
4 | } | ||
5 | |||
6 | const legacyConfig: ILegacyConfig = { | ||
7 | themeBrandPrimary: '#7266F0', | ||
8 | themeBrandSuccess: '#5cb85c', | ||
9 | themeBrandInfo: '#5bc0de', | ||
10 | themeBrandWarning: '#FF9F00', | ||
11 | themeBrandDanger: '#d9534f', | ||
12 | |||
13 | themeGrayDark: '#373a3c', | ||
14 | themeGray: '#55595c', | ||
15 | themeGrayLight: '#818a91', | ||
16 | themeGrayLighter: '#eceeef', | ||
17 | themeGrayLightest: '#f7f7f9', | ||
18 | |||
19 | themeBorderRadius: '6px', | ||
20 | themeBorderRadiusSmall: '3px', | ||
21 | |||
22 | themeSidebarWidth: '68px', | ||
23 | |||
24 | themeTextColor: '#373a3c', | ||
25 | |||
26 | themeTransitionTime: '.5s', | ||
27 | |||
28 | themeInsetShadow: 'inset 0 2px 5px rgba(0, 0, 0, .03)', | ||
29 | |||
30 | darkThemeBlack: '#1A1A1A', | ||
31 | |||
32 | darkThemeGrayDarkest: '#1E1E1E', | ||
33 | darkThemeGrayDarker: '#2D2F31', | ||
34 | darkThemeGrayDark: '#383A3B', | ||
35 | |||
36 | darkThemeGray: '#47494B', | ||
37 | |||
38 | darkThemeGrayLight: '#515355', | ||
39 | darkThemeGrayLighter: '#8a8b8b', | ||
40 | darkThemeGrayLightest: '#FFFFFF', | ||
41 | |||
42 | darkThemeGraySmoke: '#CED0D1', | ||
43 | darkThemeTextColor: '#FFFFFF', | ||
44 | }; | ||
45 | |||
46 | export default legacyConfig; | ||