Skip to content

Commit 98ca811

Browse files
JNX03Miodec
andauthored
feat(font): add Kanit and Sarabun (@JNX03) (monkeytypegame#6500)
### Description <!-- Please describe the change(s) made in your PR --> - Imported `Kanit-Regular.woff2` and `Sarabun-Bold.woff` into the project’s webfonts directory. - Updated `frontend/static/fonts/_list.json` to register the new fonts under “availableFonts.” - Modified `frontend/src/styles/fonts.scss` to include `@font-face` declarations for both Kanit Regular and Sarabun Bold, with appropriate `font-family`, `font-weight`, and `font-style` settings. --- ### Checks - [ ] Adding quotes? - [ ] Make sure to include translations for the quotes in the description (or another comment) so we can verify their content. - [ ] Adding a language or a theme? - [ ] If it’s a language, did you edit `_list.json`, `_groups.json` and add `languages.json`? - [ ] If it’s a theme, did you add the theme.css? - Also please add a screenshot of the theme, it would be extra awesome if you do so! - [ ] Check if any open issues are related to this PR; if so, be sure to tag them below. - [x] Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org/ for more info) - [x] Make sure to include your GitHub username prefixed with `@` inside parentheses at the end of the PR title. --------- Co-authored-by: Miodec <[email protected]>
1 parent 69d9b38 commit 98ca811

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

frontend/src/styles/fonts.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ $fonts: (
9898
"Geist": (
9999
"src": "Geist-Medium",
100100
),
101+
"Kanit": (
102+
"src": "Kanit-Regular",
103+
),
104+
"Sarabun": (
105+
"src": "Sarabun-Bold",
106+
),
101107
"Geist Mono": (
102108
"src": "GeistMono-Medium",
103109
),

frontend/static/fonts/_list.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@
106106
{
107107
"name": "Geist"
108108
},
109+
{
110+
"name": "Sarabun"
111+
},
112+
{
113+
"name": "Kanit"
114+
},
109115
{
110116
"name": "Geist Mono"
111117
}
52.4 KB
Binary file not shown.
57.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)