Skip to content

Commit

Permalink
Merge pull request #33 from oasisprotocol/ml/fonts
Browse files Browse the repository at this point in the history
Add fonts
  • Loading branch information
lubej authored Mar 14, 2024
2 parents 184aed2 + 314143a commit 35715a1
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"node": ">=20"
},
"dependencies": {
"@fontsource-variable/figtree": "^5.0.20",
"@fontsource-variable/roboto-mono": "^5.0.18",
"@metamask/detect-provider": "^2.0.0",
"@metamask/jazzicon": "^2.0.0",
"@oasisprotocol/dapp-voting-backend": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ConnectedAccount/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

.connectedAccountAddress {
flex: 1 1 60%;
font-family: monospace;
font-family: 'Roboto Mono Variable', monospace;
text-decoration: none;
font-size: 22px;
font-weight: 700;
Expand Down
15 changes: 14 additions & 1 deletion frontend/src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@import '@fontsource-variable/figtree/index.css';
@import '@fontsource-variable/roboto-mono/index.css';

:root {
--white: #fff;
--palatinate-blue: #2c3bd5;
Expand All @@ -14,6 +17,16 @@
--old-silver: #858486;
}

/** Use Figtree for "…" instead of Roboto Mono. */
@font-face {
font-family: 'Roboto Mono Variable';
font-style: normal;
font-display: swap;
font-weight: 100 700;
src: url('@fontsource-variable/figtree/files/figtree-latin-wght-normal.woff2') format('woff2');
unicode-range: U+2026;
}

*,
*::before,
*::after {
Expand All @@ -22,7 +35,7 @@

body {
margin: 0;
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
font-family: 'Figtree Variable', system-ui, sans-serif;
font-size: 16px;
font-style: normal;
font-weight: normal;
Expand Down
14 changes: 14 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 35715a1

Please sign in to comment.