aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/style/theme.ts
diff options
context:
space:
mode:
authorBryan Stitt <bryan@stitthappens.com>2018-11-12 07:13:09 +0800
committerGitHub <noreply@github.com>2018-11-12 07:13:09 +0800
commit0101cd73aa87fecc72cc816c6c26af028afd569c (patch)
tree637a87a6ea98e59036cf2537367186b8b4133c9d /packages/instant/src/style/theme.ts
parent6ef628613e658e90a06cbe5e34f119082e06678e (diff)
parent397b4e289015f9bb0831c1a0ce6fee601670b487 (diff)
downloaddexon-sol-tools-0101cd73aa87fecc72cc816c6c26af028afd569c.tar
dexon-sol-tools-0101cd73aa87fecc72cc816c6c26af028afd569c.tar.gz
dexon-sol-tools-0101cd73aa87fecc72cc816c6c26af028afd569c.tar.bz2
dexon-sol-tools-0101cd73aa87fecc72cc816c6c26af028afd569c.tar.lz
dexon-sol-tools-0101cd73aa87fecc72cc816c6c26af028afd569c.tar.xz
dexon-sol-tools-0101cd73aa87fecc72cc816c6c26af028afd569c.tar.zst
dexon-sol-tools-0101cd73aa87fecc72cc816c6c26af028afd569c.zip
Merge branch 'development' into patch-1
Diffstat (limited to 'packages/instant/src/style/theme.ts')
-rw-r--r--packages/instant/src/style/theme.ts14
1 files changed, 11 insertions, 3 deletions
diff --git a/packages/instant/src/style/theme.ts b/packages/instant/src/style/theme.ts
index d10c9b72c..1e9f55e00 100644
--- a/packages/instant/src/style/theme.ts
+++ b/packages/instant/src/style/theme.ts
@@ -1,6 +1,6 @@
import * as styledComponents from 'styled-components';
-const { default: styled, css, keyframes, withTheme, ThemeProvider } = styledComponents;
+const { default: styled, css, keyframes, withTheme, createGlobalStyle, ThemeProvider } = styledComponents;
export type Theme = { [key in ColorOption]: string };
@@ -15,6 +15,8 @@ export enum ColorOption {
white = 'white',
lightOrange = 'lightOrange',
darkOrange = 'darkOrange',
+ green = 'green',
+ red = 'red',
}
export const theme: Theme = {
@@ -28,9 +30,15 @@ export const theme: Theme = {
white: 'white',
lightOrange: '#F9F2ED',
darkOrange: '#F2994C',
+ green: '#3CB34F',
+ red: '#D00000',
};
export const transparentWhite = 'rgba(255,255,255,0.3)';
-export const overlayBlack = 'rgba(0, 0, 0, 0.6)';
+export const completelyTransparent = 'rga(0, 0, 0, 0)';
-export { styled, css, keyframes, withTheme, ThemeProvider };
+export const generateOverlayBlack = (opacity = 0.6) => {
+ return `rgba(0, 0, 0, ${opacity})`;
+};
+
+export { styled, css, keyframes, withTheme, createGlobalStyle, ThemeProvider };