Need some review on using multiple themes. So I have followed the doc and added light, dark themes separately. Let’s say I have to configure some other values like fontFamily and spacing, in that case, I have to duplicate them both inside light and dark. So I did create 3 themes like so
export const light = createTheme({
colors: {
// Define your theme colors for light mode
primary: "#7C5DFA",
primaryLight: "#9277FF",
paper: "#F8F8F8",
}
})
export const dark = createTheme({
colors: {
// Define your theme colors for dark mode
primary: '#000'
}
})
const t = createTheme({
fontFamilies: {
'sans': 'Spartan-Medium' ,
'sansBold': 'Spartan-Bold',
},
})
export default t
So I am using the default theme everywhere and for colors, I am using the light or dark based on the theme appearance which is being passed to the app through a context. Even though I am using the color theme just for colors, they do have all other properties just like a normal theme object. Do you think its okay to do so or any other approach I should follow?
Need some review on using multiple themes. So I have followed the doc and added light, dark themes separately. Let’s say I have to configure some other values like
fontFamilyand spacing, in that case, I have to duplicate them both inside light and dark. So I did create 3 themes like soSo I am using the default theme everywhere and for colors, I am using the light or dark based on the theme appearance which is being passed to the app through a context. Even though I am using the color theme just for colors, they do have all other properties just like a normal theme object. Do you think its okay to do so or any other approach I should follow?