Skip to content

Commit

Permalink
New font Commissioner (podkrepi-bg#1620)
Browse files Browse the repository at this point in the history
Co-authored-by: igoychev <[email protected]>
  • Loading branch information
2 people authored and tongo-angelov committed Nov 14, 2023
1 parent 3625d31 commit 8ef839e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/common/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ import {
ThemeOptions,
} from '@mui/material/styles'

import { Commissioner } from 'next/font/google'
import { Montserrat } from 'next/font/google'

export const commissioner = Commissioner({
subsets: ['latin', 'cyrillic'],
})

export const montserrat = Montserrat({
display: 'auto',
subsets: ['latin', 'cyrillic'],
Expand Down Expand Up @@ -182,8 +187,16 @@ export const themeOptions: ThemeOptions = {
},

typography: {
fontFamily: montserrat.style.fontFamily,
h3: { color: colors.blue.dark },
fontFamily: commissioner.style.fontFamily,

h1: { fontFamily: montserrat.style.fontFamily },
h2: { fontFamily: montserrat.style.fontFamily },
h3: {
color: colors.blue.dark,
fontFamily: montserrat.style.fontFamily,
},
h4: { fontFamily: montserrat.style.fontFamily },
h5: { fontFamily: montserrat.style.fontFamily },

body1: {
fontSize: '0.875rem',
Expand Down
3 changes: 3 additions & 0 deletions src/components/client/campaigns/CampaignDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ const StyledGrid = styled(Grid)(({ theme }) => ({
paddingLeft: '0',
paddingRight: '0',
},
['& .ql-container']: {
fontFamily: theme.typography.fontFamily,
},

[`& .${classes.linkButton}`]: {
fontSize: theme.typography.pxToRem(10),
Expand Down
4 changes: 4 additions & 0 deletions src/components/client/campaigns/CampaignNewsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ const StyledTimeline = styled(Timeline)(({ theme }) => ({
fontStyle: 'normal',
padding: 0,
},

['& .ql-container']: {
fontFamily: theme.typography.fontFamily,
},
}))

type Props = {
Expand Down

0 comments on commit 8ef839e

Please sign in to comment.