Skip to content

Commit

Permalink
load-font
Browse files Browse the repository at this point in the history
  • Loading branch information
meetqy committed Feb 19, 2024
1 parent 4bc3137 commit 2798427
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/app/load-font.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,13 @@ export default function LoadFont() {

const style = document.createElement("style");
style.innerHTML = `
.font-bold {
font-weight:500;
}
:root {
--font-st-kaiti: "STKaiti";
}
.font-cursive {
font-family: var(--font-st-kaiti), cursive !important;
}
`;
document.head.appendChild(style);
}
Expand Down

0 comments on commit 2798427

Please sign in to comment.