👌 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 styled from 'styled-components';
|
||||||
import { prop, remSize } from '../../theme';
|
import { prop, remSize } from '../../theme';
|
||||||
|
|
||||||
const background = prop('Button.default.background');
|
const background = prop('Panel.default.background');
|
||||||
const textColor = prop('primaryTextColor');
|
const textColor = prop('primaryTextColor');
|
||||||
|
|
||||||
const Footer = styled.div`
|
const Footer = styled.div`
|
||||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { prop, remSize } from '../../theme';
|
import { prop, remSize } from '../../theme';
|
||||||
|
|
||||||
const background = prop('Button.default.background');
|
const background = prop('Panel.default.background');
|
||||||
const textColor = prop('primaryTextColor');
|
const textColor = prop('primaryTextColor');
|
||||||
|
|
||||||
const Header = styled.div`
|
const Header = styled.div`
|
||||||
|
|
|
@ -88,6 +88,13 @@ export default {
|
||||||
Icon: {
|
Icon: {
|
||||||
default: grays.middleGray,
|
default: grays.middleGray,
|
||||||
hover: grays.darker
|
hover: grays.darker
|
||||||
|
},
|
||||||
|
Panel: {
|
||||||
|
default: {
|
||||||
|
foreground: colors.black,
|
||||||
|
background: grays.light,
|
||||||
|
border: grays.middleLight,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[Theme.dark]: {
|
[Theme.dark]: {
|
||||||
|
@ -120,6 +127,13 @@ export default {
|
||||||
Icon: {
|
Icon: {
|
||||||
default: grays.middleLight,
|
default: grays.middleLight,
|
||||||
hover: grays.lightest
|
hover: grays.lightest
|
||||||
|
},
|
||||||
|
Panel: {
|
||||||
|
default: {
|
||||||
|
foreground: grays.light,
|
||||||
|
background: grays.dark,
|
||||||
|
border: grays.middleDark,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[Theme.contrast]: {
|
[Theme.contrast]: {
|
||||||
|
@ -152,6 +166,13 @@ export default {
|
||||||
Icon: {
|
Icon: {
|
||||||
default: grays.mediumLight,
|
default: grays.mediumLight,
|
||||||
hover: colors.yellow
|
hover: colors.yellow
|
||||||
|
},
|
||||||
|
Panel: {
|
||||||
|
default: {
|
||||||
|
foreground: grays.light,
|
||||||
|
background: grays.dark,
|
||||||
|
border: grays.middleDark,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue