summaryrefslogtreecommitdiffstats
path: root/packages/theme/src/themes
diff options
context:
space:
mode:
Diffstat (limited to 'packages/theme/src/themes')
-rw-r--r--packages/theme/src/themes/dark/index.ts12
-rw-r--r--packages/theme/src/themes/default/index.ts58
2 files changed, 70 insertions, 0 deletions
diff --git a/packages/theme/src/themes/dark/index.ts b/packages/theme/src/themes/dark/index.ts
index 58ef63217..9b6bf055c 100644
--- a/packages/theme/src/themes/dark/index.ts
+++ b/packages/theme/src/themes/dark/index.ts
@@ -48,3 +48,15 @@ export const buttonLoaderColor = {
48 danger: '#FFF', 48 danger: '#FFF',
49 inverted: defaultStyles.brandPrimary, 49 inverted: defaultStyles.brandPrimary,
50}; 50};
51
52// Select
53export const selectBackground = inputBackground;
54export const selectBorder = inputBorder;
55export const selectColor = inputColor;
56export const selectToggleColor = inputPrefixColor;
57export const selectPopupBackground = legacyStyles.darkThemeGrayLight;
58export const selectOptionColor = '#FFF';
59export const selectOptionBorder = `1px solid ${color(legacyStyles.darkThemeGrayLight).darken(0.2).hex()}`;
60export const selectOptionItemHover = color(legacyStyles.darkThemeGrayLight).darken(0.2).hex();
61export const selectOptionItemHoverColor = selectColor;
62export const selectSearchColor = inputBackground;
diff --git a/packages/theme/src/themes/default/index.ts b/packages/theme/src/themes/default/index.ts
index 0f78928c3..d36558ff0 100644
--- a/packages/theme/src/themes/default/index.ts
+++ b/packages/theme/src/themes/default/index.ts
@@ -2,6 +2,14 @@ import color from 'color';
2 2
3import * as legacyStyles from '../legacy'; 3import * as legacyStyles from '../legacy';
4 4
5export interface IStyleTypes {
6 [index: string]: {
7 accent: string;
8 contrast: string;
9 border?: string;
10 };
11}
12
5export const brandPrimary = '#3498db'; 13export const brandPrimary = '#3498db';
6export const brandSuccess = '#5cb85c'; 14export const brandSuccess = '#5cb85c';
7export const brandInfo = '#5bc0de'; 15export const brandInfo = '#5bc0de';
@@ -51,6 +59,35 @@ export const toggleButtonActive = brandPrimary;
51export const toggleWidth = 40; 59export const toggleWidth = 40;
52export const toggleHeight = 14; 60export const toggleHeight = 14;
53 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
54// Button 91// Button
55export const buttonPrimaryBackground = brandPrimary; 92export const buttonPrimaryBackground = brandPrimary;
56export const buttonPrimaryTextColor = '#FFF'; 93export const buttonPrimaryTextColor = '#FFF';
@@ -79,3 +116,24 @@ export const buttonLoaderColor = {
79 danger: '#FFF', 116 danger: '#FFF',
80 inverted: brandPrimary, 117 inverted: brandPrimary,
81}; 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;