6
6
Stack ,
7
7
color ,
8
8
space ,
9
- themeColor ,
10
9
transition ,
11
10
ChevronIcon ,
12
11
} from '@blockstack/ui' ;
@@ -24,6 +23,7 @@ import { css } from '@styled-system/css';
24
23
import NextLink from 'next/link' ;
25
24
import MagnifyIcon from 'mdi-react/MagnifyIcon' ;
26
25
import { useRouter } from 'next/router' ;
26
+ import { ColorModeButton } from '@components/color-mode-button' ;
27
27
28
28
const MenuButton = ( { ...rest } : any ) => {
29
29
const { isOpen, handleOpen, handleClose } = useMobileMenuState ( ) ;
@@ -142,7 +142,7 @@ const SubBar: React.FC<any> = props => (
142
142
height = "60px"
143
143
width = "100%"
144
144
px = { [ 'extra-loose' , 'extra-loose' , 'base' , 'base' ] }
145
- bg = "rgba(255,255,255, 0.8)"
145
+ bg = { color ( 'bg' ) }
146
146
borderBottom = { border ( ) }
147
147
style = { {
148
148
backdropFilter : 'blur(5px)' ,
@@ -152,14 +152,15 @@ const SubBar: React.FC<any> = props => (
152
152
< Flex
153
153
align = "center"
154
154
justifyContent = "flex-end"
155
- bg = { themeColor ( 'ink.150 ') }
155
+ bg = { color ( 'bg-alt ') }
156
156
height = "32px"
157
157
width = "32px"
158
158
borderRadius = "32px"
159
159
transition = { transition }
160
160
px = { space ( 'tight' ) }
161
+ color = { color ( 'invert' ) }
161
162
_hover = { {
162
- bg : themeColor ( 'ink.200 ') ,
163
+ bg : color ( 'bg-light ') ,
163
164
width : [ '32px' , '32px' , '225px' , '225px' ] ,
164
165
cursor : 'pointer' ,
165
166
justifyContent : 'flex-end' ,
@@ -180,7 +181,7 @@ const Header = ({ hideSubBar, ...rest }: any) => {
180
181
justifyContent = "space-between"
181
182
align = "center"
182
183
px = { [ 'extra-loose' , 'extra-loose' , 'base' , 'base' ] }
183
- bg = "rgba(255,255,255, 0.8)"
184
+ bg = { color ( 'bg' ) }
184
185
borderBottom = { border ( ) }
185
186
style = { {
186
187
backdropFilter : 'blur(5px)' ,
@@ -234,6 +235,7 @@ const Header = ({ hideSubBar, ...rest }: any) => {
234
235
) ) }
235
236
</ Stack >
236
237
</ Box >
238
+ < ColorModeButton />
237
239
< GithubButton />
238
240
< MenuButton />
239
241
</ Flex >
0 commit comments