diff --git a/package.json b/package.json index 34389d46..8068c6c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "core-registry-cadt-ui", - "version": "1.2.11", + "version": "1.3.0", "private": true, "author": "Chia Network Inc. ", "homepage": "./", diff --git a/src/components/blocks/LeftNav.js b/src/components/blocks/LeftNav.js index 550b2b9b..94db90ba 100644 --- a/src/components/blocks/LeftNav.js +++ b/src/components/blocks/LeftNav.js @@ -37,22 +37,23 @@ const NavContainer = styled('div')` `; const MenuItem = styled(Link)` - background: ${props => - props.selected ? props.theme.colors.default.secondaryDark : 'transparent'}; - ${props => - !props.selected && - !props.disabled && - `:hover {background: ${props.theme.colors.default.secondary};}`}; - padding: 0.5625rem 0rem 0.75rem 2.75rem; + background: ${props => (props.selected ? 'white' : 'transparent')}; + :hover { + background: ${props => props.theme.colors.default.primary}; + } + padding: 0.5625rem 0rem 0.75rem 3.25rem; + text-transform: uppercase; ${props => - props.disabled ? 'color: #BFBFBF; pointer-events: none;' : 'color: white;'} + props.selected + ? `color: ${props.theme.colors.default.primary};` + : 'color: #6e7d7f;'} font-family: ${props => props.theme.typography.primary.bold}; cursor: pointer; display: block; text-decoration: none; width: calc(100% - 1.625rem); margin: auto; - font-size: 1.2rem; + font-size: 1.1rem; box-sizing: border-box; border-radius: 0.625rem; margin-bottom: 0.625rem; @@ -108,7 +109,7 @@ const LeftNav = withTheme(({ children }) => { - + diff --git a/src/components/blocks/Modal.js b/src/components/blocks/Modal.js index 5ebe97b0..23ef3505 100644 --- a/src/components/blocks/Modal.js +++ b/src/components/blocks/Modal.js @@ -208,7 +208,6 @@ const Modal = withTheme( size="large" label={intl.formatMessage({ id: 'cancel' })} onClick={onClose} - type="default" /> )} {extraButtonLabel && extraButtonOnClick && ( @@ -216,7 +215,6 @@ const Modal = withTheme( size="large" label={extraButtonLabel} onClick={extraButtonOnClick} - type="default" /> )} - props.danger ? '#FF4D4F' : props.theme.colors.default.secondary}; - border: none; - border-radius: 2px; + props.danger ? '#FF4D4F' : props.theme.colors.default.secondaryDark}; + border: 1px solid #1a8385; + border-radius: 5px; padding: 10px; height: 32px; cursor: pointer; @@ -30,7 +30,7 @@ const Button = styled('button')` &:active { background-color: ${props => - props.danger ? '#F5222D' : props.theme.colors.default.secondary}; + props.danger ? '#F5222D' : props.theme.colors.default.secondaryDark}; } ${props => @@ -117,7 +117,7 @@ const PrimaryButton = ({ )} - {label} + {label} ); }; diff --git a/src/components/icons/RegistryIcon.js b/src/components/icons/RegistryIcon.js index ff3e2c45..633ca05c 100644 --- a/src/components/icons/RegistryIcon.js +++ b/src/components/icons/RegistryIcon.js @@ -1,18 +1,18 @@ import React from 'react'; import { withTheme } from 'styled-components'; -const RegistryIcon = withTheme(({ width, height }) => { +const RegistryIcon = withTheme(({ width, height, color = '#6e7d7f' }) => { return ( ); diff --git a/src/components/icons/WarehouseIcon.js b/src/components/icons/WarehouseIcon.js index a7a778cd..aec0b5ae 100644 --- a/src/components/icons/WarehouseIcon.js +++ b/src/components/icons/WarehouseIcon.js @@ -1,26 +1,26 @@ import React from 'react'; import { withTheme } from 'styled-components'; -const WarehouseIcon = withTheme(({ width, height }) => { +const WarehouseIcon = withTheme(({ width, height, color = '#6e7d7f' }) => { return ( ); diff --git a/src/components/layout/Header.js b/src/components/layout/Header.js index 48812a16..a7080c4c 100644 --- a/src/components/layout/Header.js +++ b/src/components/layout/Header.js @@ -6,7 +6,6 @@ import styled from 'styled-components'; import { LocaleSwitcher, Body, AppLogo, MyAccount } from '..'; const Headline = styled('div')` - border-top: 8px solid ${props => props.theme.colors.default.secondary}; padding-top: 5px; padding-bottom: 5px; width: 100%; diff --git a/src/components/layout/Tabs.js b/src/components/layout/Tabs.js index ead13ba8..f6095d8d 100644 --- a/src/components/layout/Tabs.js +++ b/src/components/layout/Tabs.js @@ -5,19 +5,20 @@ import styled from 'styled-components'; const StyledTabs = styled(MuiTabs)` .MuiButtonBase-root { - color: ${props => props.theme.colors.default.secondary}; + color: #6e7d7f; + font-family: ${props => props.theme.typography.primary.semiBold}; } .MuiButtonBase-root:hover { - color: ${props => props.theme.colors.default.secondaryDark}; + color: ${props => props.theme.colors.default.primary}; } button.Mui-selected { - color: ${props => props.theme.colors.default.secondaryDark}; + color: ${props => props.theme.colors.default.primaryDark}; } .MuiTabs-indicator { - background-color: ${props => props.theme.colors.default.secondaryDark}; + background-color: ${props => props.theme.colors.default.primaryDark}; } `; diff --git a/src/components/typography/ButtonText.js b/src/components/typography/ButtonText.js index 65f93e28..9da3cb42 100644 --- a/src/components/typography/ButtonText.js +++ b/src/components/typography/ButtonText.js @@ -3,7 +3,7 @@ import { useSelector } from 'react-redux'; import styled, { withTheme } from 'styled-components'; const Text = styled('h4')` - color: ${props => props.color || props.theme.colors.default.onSurface}; + color: ${props => props.color || '#6e7d7f'} !important; font-size: 1rem; font-family: ${props => props.theme.typography.primary.regular}; line-height: 1.375rem; diff --git a/src/theme.js b/src/theme.js index d4dae3c3..21765736 100644 --- a/src/theme.js +++ b/src/theme.js @@ -25,20 +25,20 @@ const headings = { */ const colors = { default: { - primary: '#00242C', - secondary: '#2dec7c', - secondaryDark: '#1b9b5c', - shade1: '#4d5c62', + primary: '#6e7d7f', + secondary: '#FEFEFF', + secondaryDark: '#5ECE71', + shade1: '#F0F2F5', shade2: '#7f8b90', shade3: '#a5adb1', - shade4: '#c8d0d5', + shade4: '#F0F2F5', shade5: '#dee6eb', shade6: '#ecf3f7', red: '#ff5c53', redDark: '#c64740', white: '#FFFFFF', blue: '#47b2fa', - background: '#c8d0d5', + background: '#F0F2F5', onSurface: '#000000', onButton: '#FFFFFF', status: {