Skip to content

Commit

Permalink
primaryColorをcyanに
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-20 committed Jan 19, 2024
1 parent 91a9ca5 commit 3c87f37
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
Stack,
Text,
TextInput,
useMantineTheme,
} from '@mantine/core';
import { useDebouncedValue } from '@mantine/hooks';
import { IconSearch } from '@tabler/icons-react';
Expand Down Expand Up @@ -36,6 +37,7 @@ export const TextSearchModal: FC<TextSearchModalProps> = ({
opened,
onClose,
}) => {
const theme = useMantineTheme();
const [searchText, setSearchText] = useState('');
const [debouncedSearchText] = useDebouncedValue(searchText, 100);
const { articles, loadNext, isLoading } = useTextSearch(debouncedSearchText);
Expand Down Expand Up @@ -109,7 +111,7 @@ export const TextSearchModal: FC<TextSearchModalProps> = ({
key={article.id}
>
<Highlight
color="blue"
color={theme.primaryColor}
component="a"
css={css`
&:hover {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const SettingsModal: FC<SettingsModalProps> = ({ opened, onClose }) => {
<Text>
<a
css={css`
color: ${theme.colors.blue[6]};
color: ${theme.colors[theme.primaryColor][6]};
text-decoration: none;
word-break: break-all;
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const MyApp = ({
xl: '1200px',
},
fontFamily: font.style.fontFamily,
primaryColor: 'cyan',
}}
withGlobalStyles
withNormalizeCSS
Expand Down

0 comments on commit 3c87f37

Please sign in to comment.