Skip to content

Commit 8f1cd04

Browse files
feat(theme): update typography from Lato to Inter for better readability and tabular numbers
1 parent b10e7df commit 8f1cd04

3 files changed

Lines changed: 18 additions & 230 deletions

File tree

components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.3",
3333
"@codemirror/lang-json": "^6.0.1",
3434
"@date-fns/tz": "^1.4.1",
35-
"@fontsource/lato": "^4.5.10",
35+
"@fontsource/inter": "^5.0.0",
3636
"@mui/x-date-pickers": "^7.23.1",
3737
"@perses-dev/core": "0.53.0",
3838
"@perses-dev/spec": "0.2.0-beta.0",

components/src/theme/typography.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,25 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
import '@fontsource/lato/300.css';
15-
import '@fontsource/lato/400.css';
16-
import '@fontsource/lato/700.css';
17-
import '@fontsource/lato/900.css';
14+
import '@fontsource/inter/300.css';
15+
import '@fontsource/inter/400.css';
16+
import '@fontsource/inter/500.css';
17+
import '@fontsource/inter/600.css';
18+
import '@fontsource/inter/700.css';
19+
import '@fontsource/inter/900.css';
1820
import { ThemeOptions } from '@mui/material';
1921

2022
// Font weights need to correspond with the imports at the top of the file
21-
// (Lato supports 100, 300, 400, 700, 900)
2223
const fontWeightLight = 300;
2324
const fontWeightRegular = 400;
24-
const fontWeightMedium = 700;
25+
const fontWeightMedium = 600;
2526
const fontWeightBold = 900;
2627

2728
/**
2829
* Theme typography options that are the same across both the dark and light themes.
2930
*/
3031
export const typography: ThemeOptions['typography'] = {
31-
fontFamily: '"Lato", sans-serif',
32+
fontFamily: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
3233

3334
fontWeightLight,
3435
fontWeightRegular,

package-lock.json

Lines changed: 9 additions & 222 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)