aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLibravatar muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com>2022-10-23 16:19:40 +0530
committerLibravatar GitHub <noreply@github.com>2022-10-23 10:49:40 +0000
commitc9f8a4e90beb48f96008f3417d603c8e35bc2985 (patch)
tree6161edd53c83df8030b4177fb4df462ed63b77ac /scripts
parent6.2.1-nightly.26 [skip ci] (diff)
downloadferdium-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.js38
-rw-r--r--scripts/theme/default/legacy.ts46
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 */
2export const themeBrandPrimary = '#7266F0';
3export const themeBrandSuccess = '#5cb85c';
4export const themeBrandInfo = '#5bc0de';
5export const themeBrandWarning = '#FF9F00';
6export const themeBrandDanger = '#d9534f';
7
8export const themeGrayDark = '#373a3c';
9export const themeGray = '#55595c';
10export const themeGrayLight = '#818a91';
11export const themeGrayLighter = '#eceeef';
12export const themeGrayLightest = '#f7f7f9';
13
14export const themeBorderRadius = '6px';
15export const themeBorderRadiusSmall = '3px';
16
17export const themeSidebarWidth = '68px';
18
19export const themeTextColor = themeGrayDark;
20
21export const themeTransitionTime = '.5s';
22
23export const themeInsetShadow = 'inset 0 2px 5px rgba(0, 0, 0, .03)';
24
25export const darkThemeBlack = '#1A1A1A';
26
27export const darkThemeGrayDarkest = '#1E1E1E';
28export const darkThemeGrayDarker = '#2D2F31';
29export const darkThemeGrayDark = '#383A3B';
30
31export const darkThemeGray = '#47494B';
32
33export const darkThemeGrayLight = '#515355';
34export const darkThemeGrayLighter = '#8a8b8b';
35export const darkThemeGrayLightest = '#FFFFFF';
36
37export const darkThemeGraySmoke = '#CED0D1';
38export 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 */
2interface ILegacyConfig {
3 [key: string]: string;
4}
5
6const 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
46export default legacyConfig;