Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/_sass/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@
src: url('/assets/fonts/ExpensifyNewKansas-MediumItalic.woff2') format('woff2'), url('/assets/fonts/ExpensifyNewKansas-MediumItalic.woff') format('woff');
}

@font-face {
font-family: Expensify Mono;
font-weight: 400;
font-style: normal;
src: url('/assets/fonts/ExpensifyMono-Regular.woff2') format('woff2'), url('/assets/fonts/ExpensifyMono-Regular.woff') format('woff');
}

@font-face {
font-family: Expensify Mono;
font-weight: 700;
font-style: normal;
src: url('/assets/fonts/ExpensifyMono-Bold.woff2') format('woff2'), url('/assets/fonts/ExpensifyMono-Bold.woff') format('woff');
}

* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
Expand Down
17 changes: 16 additions & 1 deletion docs/_sass/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ details[open] > summary {

h1,
summary {
font-family: 'Expensify New Kansas', 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
font-family: 'Expensify Mono', 'SFMono-Regular', monospace, Arial, sans-serif;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JoshIri360 why did we update the h1 styles to use mono?

Also, how is the summary tag used across the site? What does it do exactly?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think this was answered in the other PR, but this is all fixed now :)

font-weight: 500;
font-size: larger;
}
Expand All @@ -144,6 +144,21 @@ p {
padding-bottom: 20px;
}

code {
font-family: 'Expensify Mono', 'Helvetica Neue', 'Helvetica', Arial, sans-serif;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like the fallback fonts should be mono fonts and not helvetica, etc?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes I'll make that change.

border-width: 1px;
border-style: solid;
border-radius: 5px;
border-color: var(--color-borders);
background-color: var(--color-highlightBG);
line-height: 20px;
padding-left: 5px;
padding-right: 5px;
font-size: 13px;
Comment thread
shawnborton marked this conversation as resolved.
Outdated
margin-top: 0px;
margin-bottom: 0px;
}

body,
button,
input,
Expand Down
Binary file added docs/assets/fonts/ExpensifyMono-Bold.woff
Binary file not shown.
Binary file added docs/assets/fonts/ExpensifyMono-Bold.woff2
Binary file not shown.
Binary file added docs/assets/fonts/ExpensifyMono-Regular.woff
Binary file not shown.
Binary file added docs/assets/fonts/ExpensifyMono-Regular.woff2
Binary file not shown.