Skip to content

Commit

Permalink
FIX font
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed Sep 1, 2022
1 parent 4aec342 commit 523ebd3
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion web/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {drawerWidth} from './navconfig';

// Dark theme
import theme from './theme/Theme';
import './assets/fonts/FiraCode-Regular.ttf';

import AuthWrapper from './components/shared/AuthWrapper';
import Main from './Main';
Expand Down
12 changes: 5 additions & 7 deletions web/src/theme/Theme.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import {createTheme, adaptV4Theme} from '@mui/material/styles';
import FiraCodeRegular from '../assets/fonts/FiraCode-Regular.ttf';
import {createTheme} from '@mui/material/styles';


const fira = {
fontFamily: 'FiraCode',
fontFamily: 'Fira Code',
fontStyle: 'regular',
fontDisplay: 'swap',
fontWeight: 400,
src: `
local('FiraCode'),
local('FiraCode-Regular'),
url(${FiraCodeRegular}) format('ttf')
local('Fira Code'),
url(/fonts/FiraCode-Regular.ttf) format('ttf')
`,
unicodeRange:
'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, ' +
Expand Down Expand Up @@ -94,7 +92,7 @@ theme = {
},
MuiCssBaseline: {
'@global': {
'@font-face': [fira],
'@font-face': fira,
},
},
},
Expand Down

0 comments on commit 523ebd3

Please sign in to comment.