Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic breakpoint scaling #144

Merged
merged 1 commit into from
Mar 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions src/app/_theme/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const theme: Theme = createTheme({
},
components: {
MuiCssBaseline: {
styleOverrides: {
styleOverrides: (theme) => ({
':root': {
'--selection-green': '#72F979',
'--selection-red': '#FF0D0D',
Expand All @@ -77,6 +77,29 @@ export const theme: Theme = createTheme({
'--selection-grey': '#9DB4A0',
'--initiative-blue': '#00BAFF',
'--initiative-red': '#FF3231',
'--font-size-xs': '12px',
'--font-size-sm': '14px',
'--font-size-md': '16px',
'--font-size-lg': '17px',
'--font-size-xl': '18px',
},
html: {
fontSize: 'var(--font-size-md)', // Default to medium
[theme.breakpoints.down('sm')]: {
fontSize: 'var(--font-size-xs)',
},
[theme.breakpoints.between('sm', 'md')]: {
fontSize: 'var(--font-size-sm)',
},
[theme.breakpoints.between('md', 'lg')]: {
fontSize: 'var(--font-size-md)',
},
[theme.breakpoints.between('lg', 'xl')]: {
fontSize: 'var(--font-size-lg)',
},
[theme.breakpoints.up('xl')]: {
fontSize: 'var(--font-size-xl)',
},
},
body: {
backgroundSize: 'cover',
Expand All @@ -100,7 +123,7 @@ export const theme: Theme = createTheme({
'::-webkit-scrollbar-button': {
height: '10px',
},
},
}),
},
MuiContainer: {
styleOverrides: {
Expand Down
Loading