aboutsummaryrefslogtreecommitdiffstats
path: root/packages/theme/src/themes
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-01-03 16:46:40 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-01-03 16:46:40 +0100
commitad585791493b09609be885e0304d987a0382db9a (patch)
treeb36509117e1e60f827a56a2caec12e566e015274 /packages/theme/src/themes
parentAdd lerna (diff)
downloadferdium-app-ad585791493b09609be885e0304d987a0382db9a.tar.gz
ferdium-app-ad585791493b09609be885e0304d987a0382db9a.tar.zst
ferdium-app-ad585791493b09609be885e0304d987a0382db9a.zip
Add theme
Diffstat (limited to 'packages/theme/src/themes')
-rw-r--r--packages/theme/src/themes/dark/index.ts26
-rw-r--r--packages/theme/src/themes/default/index.ts44
-rw-r--r--packages/theme/src/themes/legacy/index.ts38
3 files changed, 108 insertions, 0 deletions
diff --git a/packages/theme/src/themes/dark/index.ts b/packages/theme/src/themes/dark/index.ts
new file mode 100644
index 000000000..7eac5a3c3
--- /dev/null
+++ b/packages/theme/src/themes/dark/index.ts
@@ -0,0 +1,26 @@
1import color from 'color';
2
3import * as legacyStyles from '../legacy';
4
5export const colorBackground = legacyStyles.darkThemeGrayDarkest;
6export const colorContentBackground = legacyStyles.darkThemeGrayDarkest;
7export const colorBackgroundSubscriptionContainer = legacyStyles.themeBrandInfo;
8
9export const colorHeadline = legacyStyles.darkThemeTextColor;
10export const colorText = legacyStyles.darkThemeTextColor;
11
12// Loader
13export const colorFullscreenLoaderSpinner = '#FFF';
14export const colorWebviewLoaderBackground = color(legacyStyles.darkThemeGrayDarkest).alpha(0.5).rgb().string();
15
16// Input
17export const labelColor = legacyStyles.darkThemeTextColor;
18export const inputColor = legacyStyles.darkThemeGrayLightest;
19export const inputBackground = legacyStyles.themeGrayDark;
20export const inputBorder = `1px solid ${legacyStyles.darkThemeGrayLight}`;
21export const inputPrefixColor = color(legacyStyles.darkThemeGrayLighter).lighten(0.3).hex();
22export const inputPrefixBackground = legacyStyles.darkThemeGray;
23export const inputDisabledOpacity = 0.5;
24export const inputScorePasswordBackground = legacyStyles.darkThemeGrayDark;
25export const inputModifierColor = color(legacyStyles.darkThemeGrayLighter).lighten(0.3).hex();
26export const inputPlaceholderColor = color(legacyStyles.darkThemeGrayLighter).darken(0.1).hex();
diff --git a/packages/theme/src/themes/default/index.ts b/packages/theme/src/themes/default/index.ts
new file mode 100644
index 000000000..b22730413
--- /dev/null
+++ b/packages/theme/src/themes/default/index.ts
@@ -0,0 +1,44 @@
1import color from 'color';
2
3import * as legacyStyles from '../legacy';
4
5export const brandPrimary = '#3498db';
6export const brandSuccess = '#5cb85c';
7export const brandInfo = '#5bc0de';
8export const brandWarning = '#FF9F00';
9export const brandDanger = '#d9534f';
10
11export const borderRadius = legacyStyles.themeBorderRadius;
12export const borderRadiusSmall = legacyStyles.themeBorderRadiusSmall;
13
14export const colorBackground = legacyStyles.themeGrayLighter;
15export const colorContentBackground = '#FFFFFF';
16export const colorHeadline = legacyStyles.themeGrayDark;
17
18export const colorText = legacyStyles.themeTextColor;
19
20// Subscription Container Component
21export const colorSubscriptionContainerBackground = 'none';
22export const colorSubscriptionContainerBorder = `1px solid ${brandPrimary}`;
23export const colorSubscriptionContainerTitle = brandPrimary;
24export const colorSubscriptionContainerActionButtonBackground = brandPrimary;
25export const colorSubscriptionContainerActionButtonColor = '#FFF';
26
27// Loader
28export const colorAppLoaderSpinner = '#FFF';
29export const colorFullscreenLoaderSpinner = legacyStyles.themeGrayDark;
30export const colorWebviewLoaderBackground = color(legacyStyles.themeGrayLighter).alpha(0.8).rgb().string();
31
32// Input
33export const labelColor = legacyStyles.themeGrayLight;
34export const inputColor = legacyStyles.themeGray;
35export const inputHeight = '35px';
36export const inputFontSize = '14px';
37export const inputBackground = legacyStyles.themeGrayLightest;
38export const inputBorder = `1px solid ${legacyStyles.themeGrayLighter}`;
39export const inputModifierColor = legacyStyles.themeGrayLight;
40export const inputPlaceholderColor = color(legacyStyles.themeGrayLight).lighten(0.3).hex();
41export const inputPrefixColor = legacyStyles.themeGrayLight;
42export const inputPrefixBackground = legacyStyles.themeGrayLighter;
43export const inputDisabledOpacity = 0.5;
44export const inputScorePasswordBackground = legacyStyles.themeGrayLighter;
diff --git a/packages/theme/src/themes/legacy/index.ts b/packages/theme/src/themes/legacy/index.ts
new file mode 100644
index 000000000..2114b92c1
--- /dev/null
+++ b/packages/theme/src/themes/legacy/index.ts
@@ -0,0 +1,38 @@
1/* legacy config, injected into sass */
2export const themeBrandPrimary = '#3498db';
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';