ISSUE-010 - Added TTF and Woff2 format fonts for Formula 1's typeface and updated the Menu bar's fonts to use them.
I incorporated the new fonts through Styled-Components just to be real cool that way.
This commit is contained in:
1 parent
03321e3cdb
commit
2d3e34b111
16 files changed
+80
-6
No files matched your search
+8
-3
@@ -3,7 +3,12 @@ import { createGlobalStyle, ThemeProps } from "styled-components";
|
||||
export const theme = {
|
||||
fonts: {
|
||||
basic: "Helvetica, sans-serif",
|
||||
accent: "\"Permanent Marker\", cursive",
|
||||
f1: "Formula1, sans-serif",
|
||||
f1Regular: "\"Formula1 Regular\", sans-serif",
|
||||
f1Bold: "\"Formula1 Bold\", sans-serif",
|
||||
f1Italic: "\"Formula1 Italic\", sans-serif",
|
||||
f1Black: "\"Formula1 Black\", sans-serif",
|
||||
f1Wide: "\"Formula1 Wide\", sans-serif",
|
||||
},
|
||||
colors: {
|
||||
orange: "#f4ae40",
|
||||
@@ -20,7 +25,7 @@ export type MainThemeProps = ThemeProps<typeof theme>;
|
||||
export const GlobalStyle = createGlobalStyle<MainThemeProps>`
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: ${({ theme }) => theme.fonts.basic};
|
||||
font-family: ${p => p.theme.fonts.basic};
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
@@ -34,7 +39,7 @@ export const GlobalStyle = createGlobalStyle<MainThemeProps>`
|
||||
input,
|
||||
textarea,
|
||||
button {
|
||||
font-family: ${({ theme }) => theme.fonts.basic};
|
||||
font-family: ${p => p.theme.fonts.basic};
|
||||
}
|
||||
|
||||
.main {
|
||||
|
||||
Reference in new issue
Block a user