Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use variable font instead
  • Loading branch information
regalijan committed Dec 11, 2024
1 parent 0e2676e commit a430d76
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 51 deletions.
2 changes: 1 addition & 1 deletion app/root.tsx
Expand Up @@ -7,7 +7,7 @@ import {
Text,
} from "@chakra-ui/react";
import { ClientStyleContext, ServerStyleContext } from "./context.js";
import fontStyle from "@fontsource/plus-jakarta-sans/index.css";
import fontStyle from "@fontsource-variable/plus-jakarta-sans/index.css";
import Forbidden from "../components/Forbidden.js";
import globalStyles from "../index.css";
import {
Expand Down
92 changes: 48 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -12,10 +12,10 @@
"@chakra-ui/react": "^2.10.4",
"@emotion/react": "^11.13.5",
"@emotion/styled": "^11.13.5",
"@fontsource/plus-jakarta-sans": "^5.1.0",
"@remix-run/cloudflare": "^2.15.0",
"@remix-run/cloudflare-pages": "^2.15.0",
"@remix-run/react": "^2.15.0",
"@fontsource-variable/plus-jakarta-sans": "^5.1.0",
"@remix-run/cloudflare": "^2.15.1",
"@remix-run/cloudflare-pages": "^2.15.1",
"@remix-run/react": "^2.15.1",
"@sentry/react": "^8.42.0",
"aws4fetch": "^1.0.20",
"dayjs": "^1.11.13",
Expand All @@ -25,7 +25,7 @@
"react-dom": "^18.3.1"
},
"devDependencies": {
"@remix-run/dev": "^2.15.0",
"@remix-run/dev": "^2.15.1",
"@types/node": "^22.10.1",
"@types/react": "^18.3.12",
"@types/react-big-calendar": "^1.16.0",
Expand Down
2 changes: 1 addition & 1 deletion theme.ts
@@ -1,7 +1,7 @@
import { extendTheme } from "@chakra-ui/react";

const fontString =
'"Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;';
'"Plus Jakarta Sans Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;';

export default extendTheme({
config: {
Expand Down

0 comments on commit a430d76

Please sign in to comment.