Skip to content

Commit

Permalink
Use Roboto Mono for amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Jul 16, 2024
1 parent 1f408c3 commit 0e70833
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changelog/2006.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use Roboto Mono for amounts
11 changes: 10 additions & 1 deletion src/app/components/AmountFormatter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,16 @@ export const AmountFormatter = memo(

return (
<span>
<Box style={{ display: 'inline-flex', whiteSpace: 'nowrap' }}>{amountString}</Box>
<Box
style={{
display: 'inline-flex',
whiteSpace: 'nowrap',
fontFamily: '"Roboto mono", monospace',
letterSpacing: 0,
}}
>
{amountString}
</Box>
{!hideTicker && (
<Text size={size} {...tickerProps} {...colorProps}>
<NoTranslate>{` ${ticker}`}</NoTranslate>
Expand Down
12 changes: 12 additions & 0 deletions src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@
url("./../fonts/roboto-mono/roboto-mono-v13-latin-300.woff") format("woff");
}

/** Use Rubik for "." and "," instead of Roboto Mono. */
@font-face {
font-family: 'Roboto Mono';
font-style: normal;
font-weight: 300;
font-display: swap;
src:
url("./../fonts/rubik/rubik-v20-latin-ext_latin-300.woff2") format("woff2"),
url("./../fonts/rubik/rubik-v20-latin-ext_latin-300.woff") format("woff");
unicode-range: U+002E, U+002C;
}

a {
color: inherit; /* blue colors for links too */
text-decoration: inherit; /* no underline */
Expand Down

0 comments on commit 0e70833

Please sign in to comment.