Refactor colors

This commit is contained in:
Nicola Benaglia 2025-04-18 17:18:26 +02:00
parent 236e2fe558
commit 84ea9fbc92
4 changed files with 30 additions and 30 deletions

View File

@ -18,7 +18,7 @@ export const AppsParent = styled(Box)(({ theme }) => ({
scrollbarWidth: 'none', // Hides the scrollbar in Firefox scrollbarWidth: 'none', // Hides the scrollbar in Firefox
// Optional for better cross-browser consistency // Optional for better cross-browser consistency
'-msOverflowStyle': 'none', // Hides scrollbar in IE and Edge msOverflowStyle: 'none', // Hides scrollbar in IE and Edge
backgroundColor: theme.palette.background.default, backgroundColor: theme.palette.background.default,
color: theme.palette.text.primary, color: theme.palette.text.primary,
@ -56,61 +56,59 @@ export const AppsWidthLimiter = styled(Box)(({ theme }) => ({
})); }));
export const AppsSearchContainer = styled(Box)(({ theme }) => ({ export const AppsSearchContainer = styled(Box)(({ theme }) => ({
display: 'flex',
width: '90%',
justifyContent: 'space-between',
alignItems: 'center', alignItems: 'center',
borderRadius: '8px',
padding: '0px 10px',
height: '36px',
backgroundColor: theme.palette.background.default, backgroundColor: theme.palette.background.default,
borderRadius: '8px',
color: theme.palette.text.primary, color: theme.palette.text.primary,
display: 'flex',
height: '36px',
justifyContent: 'space-between',
padding: '0px 10px',
width: '90%',
})); }));
export const AppsSearchLeft = styled(Box)(({ theme }) => ({ export const AppsSearchLeft = styled(Box)(({ theme }) => ({
display: 'flex',
width: '90%',
justifyContent: 'flex-start',
alignItems: 'center', alignItems: 'center',
gap: '10px',
flexGrow: 1,
flexShrink: 0,
backgroundColor: theme.palette.background.default, backgroundColor: theme.palette.background.default,
color: theme.palette.text.primary, color: theme.palette.text.primary,
display: 'flex',
flexGrow: 1,
flexShrink: 0,
gap: '10px',
justifyContent: 'flex-start',
width: '90%',
})); }));
export const AppsSearchRight = styled(Box)(({ theme }) => ({ export const AppsSearchRight = styled(Box)(({ theme }) => ({
display: 'flex',
width: '90%',
justifyContent: 'flex-end',
alignItems: 'center', alignItems: 'center',
flexShrink: 1,
backgroundColor: theme.palette.background.default, backgroundColor: theme.palette.background.default,
color: theme.palette.text.primary, color: theme.palette.text.primary,
display: 'flex',
flexShrink: 1,
justifyContent: 'flex-end',
width: '90%',
})); }));
export const AppCircleContainer = styled(Box)(({ theme }) => ({ export const AppCircleContainer = styled(Box)(({ theme }) => ({
alignItems: 'center',
backgroundColor: theme.palette.background.default,
color: theme.palette.text.primary,
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
gap: '5px', gap: '5px',
alignItems: 'center',
width: '100%', width: '100%',
backgroundColor: theme.palette.background.default,
color: theme.palette.text.primary,
})); }));
export const Add = styled(Typography)(({ theme }) => ({ export const Add = styled(Typography)(({ theme }) => ({
backgroundColor: theme.palette.background.default,
color: theme.palette.text.primary,
fontSize: '36px', fontSize: '36px',
fontWeight: 500, fontWeight: 500,
lineHeight: '43.57px', lineHeight: '43.57px',
textAlign: 'left', textAlign: 'left',
backgroundColor: theme.palette.background.default,
color: theme.palette.text.primary,
})); }));
export const AppCircleLabel = styled(Typography)(({ theme }) => ({ export const AppCircleLabel = styled(Typography)(({ theme }) => ({
'-webkit-box-orient': 'vertical',
'-webkit-line-clamp': '2',
backgroundColor: theme.palette.background.default, backgroundColor: theme.palette.background.default,
color: theme.palette.text.primary, color: theme.palette.text.primary,
display: '-webkit-box', display: '-webkit-box',
@ -119,15 +117,17 @@ export const AppCircleLabel = styled(Typography)(({ theme }) => ({
lineHeight: 1.2, lineHeight: 1.2,
overflow: 'hidden', overflow: 'hidden',
textOverflow: 'ellipsis', textOverflow: 'ellipsis',
WebkitBoxOrient: 'vertical',
WebkitLineClamp: '2',
width: '120%', width: '120%',
})); }));
export const AppLibrarySubTitle = styled(Typography)(({ theme }) => ({ export const AppLibrarySubTitle = styled(Typography)(({ theme }) => ({
backgroundColor: theme.palette.background.default,
color: theme.palette.text.primary,
fontSize: '16px', fontSize: '16px',
fontWeight: 500, fontWeight: 500,
lineHeight: 1.2, lineHeight: 1.2,
backgroundColor: theme.palette.background.default,
color: theme.palette.text.primary,
})); }));
export const AppCircle = styled(Box)(({ theme }) => ({ export const AppCircle = styled(Box)(({ theme }) => ({

View File

@ -1,7 +1,7 @@
// Extend the Theme interface // Extend the Theme interface
const commonThemeOptions = { const commonThemeOptions = {
typography: { typography: {
fontFamily: ['Inter'].join(','), fontFamily: ['Roboto'].join(','),
h1: { h1: {
fontSize: '2rem', fontSize: '2rem',
fontWeight: 600, fontWeight: 600,

View File

@ -15,7 +15,7 @@ const darkTheme = createTheme({
}, },
background: { background: {
default: 'rgb(49, 51, 56)', default: 'rgb(49, 51, 56)',
paper: 'rgb(30, 30, 32)', paper: 'rgb(46, 46, 49)',
}, },
text: { text: {
primary: 'rgb(255, 255, 255)', primary: 'rgb(255, 255, 255)',
@ -50,7 +50,7 @@ const darkTheme = createTheme({
':root': { ':root': {
'--color-instance': 'rgb(30, 30, 32)', '--color-instance': 'rgb(30, 30, 32)',
'--color-instance-popover-bg': 'rgb(34, 34, 34)', '--color-instance-popover-bg': 'rgb(34, 34, 34)',
'--Mail-Background': 'rgb(101, 248, 174)', '--Mail-Background': 'rgb(43, 43, 43)',
'--new-message-text': 'rgb(0, 0, 0)', '--new-message-text': 'rgb(0, 0, 0)',
'--bg-primary': 'rgba(31, 32, 35, 1)', '--bg-primary': 'rgba(31, 32, 35, 1)',
'--bg-2': 'rgb(39, 40, 44)', '--bg-2': 'rgb(39, 40, 44)',

View File

@ -15,7 +15,7 @@ const lightTheme = createTheme({
}, },
background: { background: {
default: 'rgba(250, 250, 250, 1)', default: 'rgba(250, 250, 250, 1)',
paper: 'rgb(240, 239, 202)', paper: 'rgb(228, 228, 228)',
}, },
text: { text: {
primary: 'rgba(0, 0, 0, 1)', primary: 'rgba(0, 0, 0, 1)',