aboutsummaryrefslogtreecommitdiffstats
path: root/packages/theme/src/themes/default/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/theme/src/themes/default/index.ts')
-rw-r--r--packages/theme/src/themes/default/index.ts139
1 files changed, 139 insertions, 0 deletions
diff --git a/packages/theme/src/themes/default/index.ts b/packages/theme/src/themes/default/index.ts
new file mode 100644
index 000000000..d36558ff0
--- /dev/null
+++ b/packages/theme/src/themes/default/index.ts
@@ -0,0 +1,139 @@
1import color from 'color';
2
3import * as legacyStyles from '../legacy';
4
5export interface IStyleTypes {
6 [index: string]: {
7 accent: string;
8 contrast: string;
9 border?: string;
10 };
11}
12
13export const brandPrimary = '#3498db';
14export const brandSuccess = '#5cb85c';
15export const brandInfo = '#5bc0de';
16export const brandWarning = '#FF9F00';
17export const brandDanger = '#d9534f';
18
19export const uiFontSize = 14;
20
21export const borderRadius = legacyStyles.themeBorderRadius;
22export const borderRadiusSmall = legacyStyles.themeBorderRadiusSmall;
23
24export const colorBackground = legacyStyles.themeGrayLighter;
25export const colorContentBackground = '#FFFFFF';
26export const colorHeadline = legacyStyles.themeGrayDark;
27
28export const colorText = legacyStyles.themeTextColor;
29
30// Subscription Container Component
31export const colorSubscriptionContainerBackground = 'none';
32export const colorSubscriptionContainerBorder = `1px solid ${brandPrimary}`;
33export const colorSubscriptionContainerTitle = brandPrimary;
34export const colorSubscriptionContainerActionButtonBackground = brandPrimary;
35export const colorSubscriptionContainerActionButtonColor = '#FFF';
36
37// Loader
38export const colorAppLoaderSpinner = '#FFF';
39export const colorFullscreenLoaderSpinner = legacyStyles.themeGrayDark;
40export const colorWebviewLoaderBackground = color(legacyStyles.themeGrayLighter).alpha(0.8).rgb().string();
41
42// Input
43export const labelColor = legacyStyles.themeGrayLight;
44export const inputColor = legacyStyles.themeGray;
45export const inputHeight = '35px';
46export const inputBackground = legacyStyles.themeGrayLightest;
47export const inputBorder = `1px solid ${legacyStyles.themeGrayLighter}`;
48export const inputModifierColor = legacyStyles.themeGrayLight;
49export const inputPlaceholderColor = color(legacyStyles.themeGrayLight).lighten(0.3).hex();
50export const inputPrefixColor = legacyStyles.themeGrayLight;
51export const inputPrefixBackground = legacyStyles.themeGrayLighter;
52export const inputDisabledOpacity = 0.5;
53export const inputScorePasswordBackground = legacyStyles.themeGrayLighter;
54
55// Toggle
56export const toggleBackground = legacyStyles.themeGrayLighter;
57export const toggleButton = legacyStyles.themeGrayLight;
58export const toggleButtonActive = brandPrimary;
59export const toggleWidth = 40;
60export const toggleHeight = 14;
61
62// Style Types
63export const styleTypes: IStyleTypes = {
64 primary: {
65 accent: brandPrimary,
66 contrast: '#FFF',
67 },
68 secondary: {
69 accent: legacyStyles.themeGrayLighter,
70 contrast: legacyStyles.themeGray,
71 },
72 success: {
73 accent: brandSuccess,
74 contrast: '#FFF',
75 },
76 warning: {
77 accent: brandWarning,
78 contrast: '#FFF',
79 },
80 danger: {
81 accent: brandDanger,
82 contrast: '#FFF',
83 },
84 inverted: {
85 accent: 'none',
86 contrast: brandPrimary,
87 border: `1px solid ${brandPrimary}`,
88 },
89};
90
91// Button
92export const buttonPrimaryBackground = brandPrimary;
93export const buttonPrimaryTextColor = '#FFF';
94
95export const buttonSecondaryBackground = legacyStyles.themeGrayLighter;
96export const buttonSecondaryTextColor = legacyStyles.themeGray;
97
98export const buttonSuccessBackground = brandSuccess;
99export const buttonSuccessTextColor = '#FFF';
100
101export const buttonDangerBackground = brandDanger;
102export const buttonDangerTextColor = '#FFF';
103
104export const buttonWarningBackground = brandWarning;
105export const buttonWarningTextColor = '#FFF';
106
107export const buttonInvertedBackground = 'none';
108export const buttonInvertedTextColor = brandPrimary;
109export const buttonInvertedBorder = `1px solid ${brandPrimary}`;
110
111export const buttonLoaderColor = {
112 primary: '#FFF',
113 secondary: buttonSecondaryTextColor,
114 success: '#FFF',
115 warning: '#FFF',
116 danger: '#FFF',
117 inverted: brandPrimary,
118};
119
120// Select
121export const selectBackground = inputBackground;
122export const selectBorder = inputBorder;
123export const selectHeight = inputHeight;
124export const selectColor = inputColor;
125export const selectToggleColor = inputPrefixColor;
126export const selectPopupBackground = '#FFF';
127export const selectOptionColor = inputColor;
128export const selectOptionBorder = `1px solid ${legacyStyles.themeGrayLightest}`;
129export const selectOptionItemHover = legacyStyles.themeGrayLighter;
130export const selectOptionItemHoverColor = selectColor;
131export const selectOptionItemActive = brandPrimary;
132export const selectOptionItemActiveColor = '#FFF';
133export const selectSearchBackground = legacyStyles.themeGrayLighter;
134export const selectSearchColor = inputColor;
135export const selectDisabledOpacity = inputDisabledOpacity;
136
137// Badge
138export const badgeFontSize = uiFontSize - 2;
139export const badgeBorderRadius = 50;