Skip to content

Commit 9ca0995

Browse files
committed
👌 create Panel color object in theme
1 parent 78ec304 commit 9ca0995

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

client/components/mobile/Footer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import styled from 'styled-components';
33
import { prop, remSize } from '../../theme';
44

5-
const background = prop('Button.default.background');
5+
const background = prop('Panel.default.background');
66
const textColor = prop('primaryTextColor');
77

88
const Footer = styled.div`

client/components/mobile/Header.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import styled from 'styled-components';
33
import { prop, remSize } from '../../theme';
44

5-
const background = prop('Button.default.background');
5+
const background = prop('Panel.default.background');
66
const textColor = prop('primaryTextColor');
77

88
const Header = styled.div`

client/theme.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ export default {
8888
Icon: {
8989
default: grays.middleGray,
9090
hover: grays.darker
91+
},
92+
Panel: {
93+
default: {
94+
foreground: colors.black,
95+
background: grays.light,
96+
border: grays.middleLight,
97+
},
9198
}
9299
},
93100
[Theme.dark]: {
@@ -120,6 +127,13 @@ export default {
120127
Icon: {
121128
default: grays.middleLight,
122129
hover: grays.lightest
130+
},
131+
Panel: {
132+
default: {
133+
foreground: grays.light,
134+
background: grays.dark,
135+
border: grays.middleDark,
136+
},
123137
}
124138
},
125139
[Theme.contrast]: {
@@ -152,6 +166,13 @@ export default {
152166
Icon: {
153167
default: grays.mediumLight,
154168
hover: colors.yellow
169+
},
170+
Panel: {
171+
default: {
172+
foreground: grays.light,
173+
background: grays.dark,
174+
border: grays.middleDark,
175+
},
155176
}
156177
},
157178
};

0 commit comments

Comments
 (0)