Skip to content

Commit

Permalink
feat(dicty-frontpage): add fontsource-variable/inter-tight and fontso…
Browse files Browse the repository at this point in the history
…urce-variable/playfair-display packages

The commit adds the fontsource-variable/inter-tight and fontsource-variable/playfair-display packages to the project's dependencies. These packages provide additional font options for styling the application, enhancing the visual appeal and design flexibility.
  • Loading branch information
ktun95 committed Nov 28, 2024
1 parent 1752a94 commit 5efd544
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions apps/dicty-frontpage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"@dictybase/editor": "*",
"@dictybase/google-analytics": "*",
"@dictybase/ui-frontpage": "*",
"@fontsource-variable/inter-tight": "^5.1.0",
"@fontsource-variable/playfair-display": "^5.1.0",
"@fortawesome/fontawesome-svg-core": "^6.6.0",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@fortawesome/react-fontawesome": "^0.2.0",
Expand Down
2 changes: 2 additions & 0 deletions apps/dicty-frontpage/src/app/layout/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { LogtoProvider, LogtoConfig, UserScope } from "@logto/react"
import { CssBaseline } from "@material-ui/core"
import { AppProviders } from "./AppProviders"
import { FrontPageApp } from "./FrontPageApp"
import "@fontsource-variable/playfair-display"
import "@fontsource-variable/inter-tight"

const logtoConfig: LogtoConfig = {
endpoint: import.meta.env.VITE_LOGTO_ENDPOINT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const useStyles = makeStyles((theme) => ({
title: {
fontWeight: 600,
fontSize: "24px",
fontFamily: "ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif",
fontFamily: "'Playfair Display Variable', serif",
},
publication: {
color: grey[700],
Expand All @@ -64,12 +64,11 @@ const useStyles = makeStyles((theme) => ({
abstractHeading: {
fontWeight: 600,
fontSize: "20px",
fontFamily: "ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif",
fontFamily: "'Playfair Display Variable', serif",
},
abstract: {
fontSize: "16px",
fontFamily:
"ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
fontFamily: "'Inter Tight Variable', sans-serif",
marginBottom: theme.spacing(2),
color: blueGrey[900],
},
Expand Down

0 comments on commit 5efd544

Please sign in to comment.