aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/style
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-06-02 02:40:06 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-06-02 02:49:58 +0800
commit817d9b0d3e1becdb2e8dbf51caa09edab8d14ab0 (patch)
tree2c699c6694c8d9535b7838b128b52becca9e2831 /packages/website/ts/style
parent3a7f26f6200bd3796a5207f62c0bdd18858db0e1 (diff)
downloaddexon-sol-tools-817d9b0d3e1becdb2e8dbf51caa09edab8d14ab0.tar
dexon-sol-tools-817d9b0d3e1becdb2e8dbf51caa09edab8d14ab0.tar.gz
dexon-sol-tools-817d9b0d3e1becdb2e8dbf51caa09edab8d14ab0.tar.bz2
dexon-sol-tools-817d9b0d3e1becdb2e8dbf51caa09edab8d14ab0.tar.lz
dexon-sol-tools-817d9b0d3e1becdb2e8dbf51caa09edab8d14ab0.tar.xz
dexon-sol-tools-817d9b0d3e1becdb2e8dbf51caa09edab8d14ab0.tar.zst
dexon-sol-tools-817d9b0d3e1becdb2e8dbf51caa09edab8d14ab0.zip
Add styled-components and polished
Diffstat (limited to 'packages/website/ts/style')
-rw-r--r--packages/website/ts/style/colors.ts19
-rw-r--r--packages/website/ts/style/theme.ts15
-rw-r--r--packages/website/ts/style/z_index.ts5
3 files changed, 39 insertions, 0 deletions
diff --git a/packages/website/ts/style/colors.ts b/packages/website/ts/style/colors.ts
new file mode 100644
index 000000000..5ffdd6ba7
--- /dev/null
+++ b/packages/website/ts/style/colors.ts
@@ -0,0 +1,19 @@
+import { colors as sharedColors } from '@0xproject/react-shared';
+
+const appColors = {
+ walletBoxShadow: 'rgba(56, 59, 137, 0.2)',
+ walletBorder: '#ededee',
+ walletDefaultItemBackground: '#fbfbfc',
+ walletFocusedItemBackground: '#f0f1f4',
+ allowanceToggleShadow: 'rgba(0, 0, 0, 0)',
+ allowanceToggleOffTrack: '#adadad',
+ allowanceToggleOnTrack: sharedColors.mediumBlue,
+ wrapEtherConfirmationButton: sharedColors.mediumBlue,
+ drawerMenuBackground: '#4a4a4a',
+ menuItemDefaultSelectedBackground: '#424242',
+};
+
+export const colors = {
+ ...sharedColors,
+ ...appColors,
+};
diff --git a/packages/website/ts/style/theme.ts b/packages/website/ts/style/theme.ts
new file mode 100644
index 000000000..9e447e7ee
--- /dev/null
+++ b/packages/website/ts/style/theme.ts
@@ -0,0 +1,15 @@
+import * as styledComponents from 'styled-components';
+
+const {
+ default: styled,
+ css,
+ injectGlobal,
+ keyframes,
+ ThemeProvider,
+} = styledComponents as styledComponents.ThemedStyledComponentsModule<IThemeInterface>;
+
+export interface IThemeInterface {}
+
+export const theme = {};
+
+export { styled, css, injectGlobal, keyframes, ThemeProvider };
diff --git a/packages/website/ts/style/z_index.ts b/packages/website/ts/style/z_index.ts
new file mode 100644
index 000000000..0411cdd91
--- /dev/null
+++ b/packages/website/ts/style/z_index.ts
@@ -0,0 +1,5 @@
+export const zIndex = {
+ topBar: 1100,
+ overlay: 1105,
+ aboveOverlay: 1106,
+};