From a6687f9f72c4eac54002814f64882bec2a75f74c Mon Sep 17 00:00:00 2001 From: Thunnini Date: Thu, 3 Aug 2023 16:29:53 +0900 Subject: [PATCH] Apply theme to blocklist page --- .../extension/src/pages/blocklist/index.tsx | 29 +++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/packages/extension/src/pages/blocklist/index.tsx b/packages/extension/src/pages/blocklist/index.tsx index bd19059ba8..b40a52bcb2 100644 --- a/packages/extension/src/pages/blocklist/index.tsx +++ b/packages/extension/src/pages/blocklist/index.tsx @@ -34,7 +34,10 @@ const Styles = { font-weight: 600; font-size: 3rem; margin: 0; - color: ${ColorPalette["gray-10"]}; + color: ${(props) => + props.theme.mode === "light" + ? ColorPalette["gray-700"] + : ColorPalette["gray-10"]}; @media screen and (max-height: 48rem) { font-size: 2rem; @@ -44,7 +47,10 @@ const Styles = { font-weight: 400; font-size: 1rem; margin: 1.75rem 0; - color: ${ColorPalette["gray-100"]}; + color: ${(props) => + props.theme.mode === "light" + ? ColorPalette["gray-300"] + : ColorPalette["gray-100"]}; @media screen and (max-height: 48rem) { max-width: max(75%, 20rem); @@ -61,7 +67,13 @@ const Styles = { font-size: 16px; line-height: 19px; letter-spacing: -0.005em; - color: ${ColorPalette["gray-50"]}; + color: ${(props) => + props.theme.mode === "light" + ? ColorPalette["gray-600"] + : ColorPalette["gray-50"]}; + + display: flex; + justify-content: center; `, }; @@ -90,8 +102,15 @@ export const BlocklistPage: FunctionComponent = () => { site. To protect the safety of your assets, we recommend you exit this website immediately. - - Continue to {origin} (unsafe) + +
+ Continue to {origin} (unsafe) +