aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/ts/components/Code.tsx
diff options
context:
space:
mode:
authorMegan Pearson <megan.e.pearson@gmail.com>2018-10-19 15:37:14 +0800
committerAugust Skare <post@augustskare.no>2018-10-22 19:27:35 +0800
commit47b281b754a77a2104d39bafa5ea49584f8840cc (patch)
tree06d776c0980c91f58c776e10d326651915a7ff71 /packages/dev-tools-pages/ts/components/Code.tsx
parent580e574c841fb9b0ba9d37a50bd5a0f787799ff2 (diff)
downloaddexon-0x-contracts-47b281b754a77a2104d39bafa5ea49584f8840cc.tar.gz
dexon-0x-contracts-47b281b754a77a2104d39bafa5ea49584f8840cc.tar.zst
dexon-0x-contracts-47b281b754a77a2104d39bafa5ea49584f8840cc.zip
Implements color variables and updates components
Diffstat (limited to 'packages/dev-tools-pages/ts/components/Code.tsx')
-rw-r--r--packages/dev-tools-pages/ts/components/Code.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/dev-tools-pages/ts/components/Code.tsx b/packages/dev-tools-pages/ts/components/Code.tsx
index 074914c2a..146187595 100644
--- a/packages/dev-tools-pages/ts/components/Code.tsx
+++ b/packages/dev-tools-pages/ts/components/Code.tsx
@@ -1,5 +1,6 @@
import * as React from 'react';
import styled from 'styled-components';
+import variables from '../variables';
import BaseButton from './Button';
@@ -25,8 +26,8 @@ const Base =
styled.div <
CodeProps >
`
- color: ${props => (props.language === undefined ? '#FFF' : 'inherit')};
- background-color: ${props => (props.language === undefined ? '#000' : '#F1F4F5')};
+ color: ${props => (props.language === undefined ? variables.colors.white : 'inherit')};
+ background-color: ${props => (props.language === undefined ? variables.colors.black : variables.colors.lightGray)};
white-space: ${props => (props.language === undefined ? 'nowrap' : '')};
position: relative;
&:hover ${Button} {