I made changes in the default-theme.js file.
const defaultTheme = {
palette: {
alert: ‘#FF8C66’, // Adjusted color for alert in dark mode
base: ‘#121212’, // Dark background color
primary: ‘#ff0072’, // Adjusted color for primary in dark mode
secondary: ‘#FFD54F’, // Adjusted color for secondary in dark mode
tertiary: ‘#FF5C8D’, // Adjusted color for tertiary in dark mode
neutral: ‘#080808’, // Dark neutral color
highlight: ‘#64B5F6’, // Adjusted color for highlight in dark mode
system: {
borders: '#303030', // Darker border color
background: '#1E1E1E', // Darker background color
},
},
typography: {
global: {
backgroundColor:‘#040D12’,
fontFamily: ‘Inter, -apple-system, BlinkMacSystemFont, Arial, sans-serif’,
fontStyle: ‘normal’,
color: ‘#FFFFFF’, // Adjusted text color for better visibility on dark background
},
headline: {
fontWeight: 600,
fontSize: ‘20px’,
color: ‘#FFFFFF’, // Adjusted text color for better visibility on dark background
},
title: {
fontWeight: 600,
fontSize: ‘16px’,
color: ‘#FFFFFF’, // Adjusted text color for better visibility on dark background
},
body: {
backgroundColor:‘#040D12’,
fontWeight: ‘normal’,
fontSize: ‘14px’,
color: ‘#CCCCCC’, // Adjusted text color for better visibility on dark background
},
bodyBold: {
fontWeight: 600,
fontSize: ‘14px’,
color: ‘#FFFFFF’, // Adjusted text color for better visibility on dark background
},
caption: {
fontWeight: ‘normal’,
fontSize: ‘12px’,
color: ‘#999999’, // Adjusted text color for better visibility on dark background
},
captionBold: {
fontWeight: 600,
fontSize: ‘12px’,
color: ‘#FFFFFF’, // Adjusted text color for better visibility on dark background
},
},
};
export default defaultTheme;
and also tried to console something when clicking on any community in NavigationProvider.js file
const handleClickCommunity = useCallback(
(communityId) => {
const next = {
type: PageTypes.CommunityFeed,
communityId,
};
if (onChangePage) return onChangePage(next);
if (onClickCommunity) return onClickCommunity(communityId);
console.log('handleClickCommunity change', { communityId });
pushPage(next);
},
[onChangePage, onClickCommunity, pushPage],
);
OutPut:
handleClickCommunity {communityId: ‘6555bc8bc17c5c056da572e8’}