Skip to content

Commit

Permalink
improve light mode colors for links
Browse files Browse the repository at this point in the history
  • Loading branch information
LunatiqueCoder committed Dec 29, 2022
1 parent 8a8d396 commit aaca873
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"ios:pods": "npx pod-install",
"start": "react-native start",
"web": "next dev",
"build-web": "next build",
"build": "next build",
"next-start": "next start",
"test:all": "yarn test:jest",
"test:jest": "jest",
Expand Down
11 changes: 8 additions & 3 deletions template/src/features/Linking/Linking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const links = [
];

export const LinkList = () => {
const {primaryColor, accentColor} = useStyles();
const {primaryColor, accentColor, isDarkMode} = useStyles();

return (
<View style={styles.container}>
Expand All @@ -89,7 +89,13 @@ export const LinkList = () => {
accessibilityRole="button"
onPress={() => RNLinking.openURL(link)}
style={styles.linkContainer}>
<Text style={styles.link}>{title}</Text>
<Text
style={[
styles.link,
{color: isDarkMode ? Colors.lightBlue : Colors.blue},
]}>
{title}
</Text>
<Text
style={[
styles.description,
Expand Down Expand Up @@ -228,7 +234,6 @@ const styles = StyleSheet.create({
flex: 2,
fontSize: 18,
fontWeight: '400',
color: Colors.lightBlue,
},
description: {
flex: 3,
Expand Down
1 change: 1 addition & 0 deletions template/src/hooks/useStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const Colors = {
lightBlue: '#add8e6',
sereneBlue: '#1292B4',
benitoite: '#007DAA',
blue: '#0000FF',
};

export const useStyles = () => {
Expand Down

1 comment on commit aaca873

@vercel
Copy link

@vercel vercel bot commented on aaca873 Dec 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

luna – ./

luna-gamma.vercel.app
luna-git-nextjs-criszz77.vercel.app
luna-criszz77.vercel.app

Please sign in to comment.