Skip to content

Commit

Permalink
CHG switch font to FiraCode-Regular
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed Jul 10, 2022
1 parent 01c7947 commit 9bbfafe
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions web/src/theme/Theme.jsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
import {createTheme, adaptV4Theme} from '@mui/material/styles';
import FiraSans from '../assets/fonts/FiraSans-Regular.ttf';
import FiraCodeRegular from '../assets/fonts/FiraCode-Regular.ttf';


const fira = {
fontFamily: 'FiraSans',
fontFamily: 'FiraCode-Regular',
fontStyle: 'normal',
fontDisplay: 'swap',
fontWeight: 400,
src: `
local('FiraSans'),
local('FiraSans-Regular'),
url(${FiraSans}) format('ttf')
local('FiraCode-Regular'),
url(${FiraCodeRegular}) format('ttf')
`,
unicodeRange:
'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, ' +
'U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, ' +
'U+2191, U+2193, U+2212, U+2215, U+FEFF',
};

let theme = createTheme(adaptV4Theme({
let theme = createTheme({
palette: {
primary: {
main: '#5686F5',
Expand All @@ -43,12 +42,7 @@ let theme = createTheme(adaptV4Theme({
mode: 'dark',
},
typography: {
fontFamily: 'FiraSans, Arial',
h5: {
fontWeight: 300,
fontSize: 30,
letterSpacing: 0.7,
},
...fira,
},
shape: {
borderRadius: 8,
Expand All @@ -64,7 +58,7 @@ let theme = createTheme(adaptV4Theme({

},
},
}));
});

theme = {
...theme,
Expand Down

0 comments on commit 9bbfafe

Please sign in to comment.