Skip to content

Commit

Permalink
feat(fonts): add Inter font-family replacing Roboto
Browse files Browse the repository at this point in the history
  • Loading branch information
renanfranca committed Aug 19, 2024
1 parent 55aaffe commit 9bc7d3b
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
Binary file added src/main/style/font/inter/Inter-Bold.ttf
Binary file not shown.
Binary file added src/main/style/font/inter/Inter-Regular.ttf
Binary file not shown.
11 changes: 11 additions & 0 deletions src/main/style/font/inter/inter.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@font-face {
font-family: Inter;
font-weight: normal;
src: url('./Inter-Regular.ttf');
}

@font-face {
font-family: Inter;
font-weight: bold;
src: url('./Inter-Bold.ttf');
}
Binary file removed src/main/style/font/roboto/Roboto-Bold.ttf
Binary file not shown.
Binary file removed src/main/style/font/roboto/Roboto-Regular.ttf
Binary file not shown.
11 changes: 0 additions & 11 deletions src/main/style/font/roboto/roboto.scss

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/style/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ html(style=htmlStyle)
title Tikui
link(rel='stylesheet', href='https://fonts.googleapis.com/css2?family=Open+Sans&family=Pacifico&display=swap')
link(rel='stylesheet', href='[[TIKUI_BASEPATH]]glyph/css/jhlite-icons.css')
link(rel='stylesheet', href='[[TIKUI_BASEPATH]]font/roboto/roboto.css')
link(rel='stylesheet', href='[[TIKUI_BASEPATH]]font/inter/inter.css')
link(href='[[TIKUI_BASEPATH]]tikui.css', rel='stylesheet')
link(href='https://unpkg.com/placeholder-loading/dist/css/placeholder-loading.min.css', rel='stylesheet')
body
Expand Down
2 changes: 1 addition & 1 deletion src/main/style/token/_fonts.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import 'https://fonts.googleapis.com/css2?family=Open+Sans&family=Pacifico&display=swap';

$jhlite-global-font-primary-family: 'Roboto', sans-serif;
$jhlite-global-font-primary-family: inter, sans-serif;
$jhlite-global-font-text-size: 2.5vw;
$jhlite-global-font-text-desktop-size: 16px;
$jhlite-global-font-glyph-family: jhlite-icons;

0 comments on commit 9bc7d3b

Please sign in to comment.