diff --git a/packages/apps/src/SideBar/index.tsx b/packages/apps/src/SideBar/index.tsx index d41a9fcb47..95d3e6a40d 100644 --- a/packages/apps/src/SideBar/index.tsx +++ b/packages/apps/src/SideBar/index.tsx @@ -20,8 +20,7 @@ import getLogo from './logos'; import styled from 'styled-components'; import { media } from '@polkadot/ui-app/media'; import { Responsive } from 'semantic-ui-react'; -import theme from 'styled-theming'; -import { primaryColor } from '@polkadot/ui-app/styles/theme'; +import { logoBackground, logoPadding } from '@polkadot/ui-app/styles/theme'; type Props = I18nProps & { collapse: () => void, @@ -32,14 +31,8 @@ type Props = I18nProps & { }; const Toggle = styled.img` - background: ${theme('theme', { - substrate: primaryColor, - polkadot: 'none' - })}; - padding: ${theme('theme', { - substrate: '4px', - polkadot: 'none' - })}; + background: ${logoBackground}; + padding: ${logoPadding}; border-radius: 50%; cursor: pointer; left: 0.9rem; @@ -47,7 +40,7 @@ const Toggle = styled.img` position: absolute; top: 0px; transition: opacity 0.2s ease-in, top 0.2s ease-in; - width: 2.6rem; + width: 2.8rem; &.delayed { transition-delay: 0.4s; diff --git a/packages/ui-app/src/styles/semantic.css b/packages/ui-app/src/styles/semantic.css index cd9da59c0b..6d1f64cf10 100644 --- a/packages/ui-app/src/styles/semantic.css +++ b/packages/ui-app/src/styles/semantic.css @@ -179,7 +179,7 @@ &.active { background: none; /* #fafafa */; border: none; - border-bottom: 2px solid #3f3f3f; + border-bottom: 2px solid #db2828; } } } diff --git a/packages/ui-app/src/styles/theme.ts b/packages/ui-app/src/styles/theme.ts index 783d6321a6..dbfab8a988 100644 --- a/packages/ui-app/src/styles/theme.ts +++ b/packages/ui-app/src/styles/theme.ts @@ -5,6 +5,16 @@ import theme from 'styled-theming'; export const primaryColor = theme('theme', { - substrate: '#333', + substrate: '#DB2828', polkadot: '#E6007A' }); + +export const logoBackground = theme('theme', { + substrate: '#333', + polkadot: 'none' +}); + +export const logoPadding = theme('theme', { + substrate: '4px', + polkadot: '0px' +});