👌 create Panel color object in theme
This commit is contained in:
parent
78ec304e15
commit
9ca0995461
3 changed files with 23 additions and 2 deletions
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import styled from 'styled-components';
|
||||
import { prop, remSize } from '../../theme';
|
||||
|
||||
const background = prop('Button.default.background');
|
||||
const background = prop('Panel.default.background');
|
||||
const textColor = prop('primaryTextColor');
|
||||
|
||||
const Footer = styled.div`
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import styled from 'styled-components';
|
||||
import { prop, remSize } from '../../theme';
|
||||
|
||||
const background = prop('Button.default.background');
|
||||
const background = prop('Panel.default.background');
|
||||
const textColor = prop('primaryTextColor');
|
||||
|
||||
const Header = styled.div`
|
||||
|
|
|
@ -88,6 +88,13 @@ export default {
|
|||
Icon: {
|
||||
default: grays.middleGray,
|
||||
hover: grays.darker
|
||||
},
|
||||
Panel: {
|
||||
default: {
|
||||
foreground: colors.black,
|
||||
background: grays.light,
|
||||
border: grays.middleLight,
|
||||
},
|
||||
}
|
||||
},
|
||||
[Theme.dark]: {
|
||||
|
@ -120,6 +127,13 @@ export default {
|
|||
Icon: {
|
||||
default: grays.middleLight,
|
||||
hover: grays.lightest
|
||||
},
|
||||
Panel: {
|
||||
default: {
|
||||
foreground: grays.light,
|
||||
background: grays.dark,
|
||||
border: grays.middleDark,
|
||||
},
|
||||
}
|
||||
},
|
||||
[Theme.contrast]: {
|
||||
|
@ -152,6 +166,13 @@ export default {
|
|||
Icon: {
|
||||
default: grays.mediumLight,
|
||||
hover: colors.yellow
|
||||
},
|
||||
Panel: {
|
||||
default: {
|
||||
foreground: grays.light,
|
||||
background: grays.dark,
|
||||
border: grays.middleDark,
|
||||
},
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue