diff --git a/TERMTERM/src/components/common/Bookmark.tsx b/TERMTERM/src/components/common/Bookmark.tsx index ba3ab72b..8d26e30b 100644 --- a/TERMTERM/src/components/common/Bookmark.tsx +++ b/TERMTERM/src/components/common/Bookmark.tsx @@ -45,7 +45,7 @@ export const BookmarkButtonComponent = ({ fill, ...props }: Props) => { return ( {fill ? ( @@ -58,7 +58,7 @@ export const BookmarkButtonComponent = ({ fill, ...props }: Props) => { )} diff --git a/TERMTERM/src/components/home/DailyTermBox.tsx b/TERMTERM/src/components/home/DailyTermBox.tsx index 43ecb3cc..2042f1c4 100644 --- a/TERMTERM/src/components/home/DailyTermBox.tsx +++ b/TERMTERM/src/components/home/DailyTermBox.tsx @@ -8,10 +8,10 @@ import { useWordReg } from "@hooks/useWordReg"; import { RootStackParamList } from "@interfaces/RootStackParamList"; import { useNavigation } from "@react-navigation/native"; import { StackNavigationProp } from "@react-navigation/stack"; -import { TEXT_STYLES, colorTheme, TYPO_STYLE } from "@style/designSystem"; +import { colorTheme, TYPO_STYLE } from "@style/designSystem"; import { booleanConverter } from "@utils/booleanConverter"; import { truncateString } from "@utils/wordCutter"; -import styled from "styled-components/native"; +import styled, { css } from "styled-components/native"; /** * 오늘의 용어 박스 @@ -25,6 +25,8 @@ const DailyTermBox = ({ bookmarked, id, name, description }: Preview) => { return ( navigation.push("TermDetail", { id: `${id}` })} > @@ -54,10 +56,14 @@ const DailyTermBox = ({ bookmarked, id, name, description }: Preview) => { ); }; -const Container = styled.TouchableOpacity` +const Container = styled.TouchableOpacity<{ COLOR: colorTheme; mode: boolean }>` min-width: 165px; width: 49%; height: 205px; + background-color: ${(props) => + props.mode + ? props.COLOR.Background.surface + : props.COLOR.Background.onSurface}; border-radius: 10px; display: flex; flex-direction: column;