diff --git a/css/fonts-cabin.css b/css/fonts-cabin.css new file mode 100644 index 0000000..ff19c23 --- /dev/null +++ b/css/fonts-cabin.css @@ -0,0 +1,64 @@ +@font-face { + font-family: 'Cabin'; + font-style: italic; + font-weight: 400; + font-stretch: normal; + font-display: swap; + src: url(/Themes/MMF/fonts/Cabin-Italic.woff2) format('woff2'); +} +@font-face { + font-family: 'Cabin'; + font-style: italic; + font-weight: 500; + font-stretch: normal; + font-display: swap; + src: url(/Themes/MMF/fonts/Cabin-MediumItalic.woff2) format('woff2'); +} +@font-face { + font-family: 'Cabin'; + font-style: italic; + font-weight: 600; + font-stretch: normal; + font-display: swap; + src: url(/Themes/MMF/fonts/Cabin-SemiBoldItalic.woff2) format('woff2'); +} +@font-face { + font-family: 'Cabin'; + font-style: italic; + font-weight: 700; + font-stretch: normal; + font-display: swap; + src: url(/Themes/MMF/fonts/Cabin-BoldItalic.woff2) format('woff2'); +} +@font-face { + font-family: 'Cabin'; + font-style: normal; + font-weight: 400; + font-stretch: normal; + font-display: swap; + src: url(/Themes/MMF/fonts/Cabin-Regular.woff2) format('woff2'); +} +@font-face { + font-family: 'Cabin'; + font-style: normal; + font-weight: 500; + font-stretch: normal; + font-display: swap; + src: url(/Themes/MMF/fonts/Cabin-Medium.woff2) format('woff2'); +} +@font-face { + font-family: 'Cabin'; + font-style: normal; + font-weight: 600; + font-stretch: normal; + font-display: swap; + src: url(/Themes/MMF/fonts/Cabin-SemiBold.woff2) format('woff2'); +} +@font-face { + font-family: 'Cabin'; + font-style: normal; + font-weight: 700; + font-stretch: normal; + font-display: swap; + src: url(/Themes/MMF/fonts/Cabin-Bold.woff2) format('woff2'); +} diff --git a/css/fonts-oswald.css b/css/fonts-oswald.css new file mode 100644 index 0000000..1c6bf96 --- /dev/null +++ b/css/fonts-oswald.css @@ -0,0 +1,16 @@ +@font-face { + font-family: 'Oswald'; + font-style: normal; + font-weight: 200 700; + font-display: swap; + src: url(/Themes/MMF/fonts/Oswald-Latin.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +@font-face { + font-family: 'Oswald'; + font-style: normal; + font-weight: 200 700; + font-display: swap; + src: url(/Themes/MMF/fonts/Oswald-Latin-ext.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; +} diff --git a/css/index.css b/css/index.css index 2cfd912..21df22c 100644 --- a/css/index.css +++ b/css/index.css @@ -30,7 +30,7 @@ html { body { background: var(--bgcolor); font-size: 100%; - font-family: "Luciole","Ubuntu","Cantarell","Segoe UI","Roboto","Oxygen","Fira Sans","Droid Sans","Helvetica Neue","Helvetica","Arial",sans-serif; + font-family: "Cabin",sans-serif; color: var(--dark-color); position: relative; height: 100%; @@ -42,6 +42,9 @@ body { background: #99d4ff; color: rgba(0, 0, 0, 0.6); } +h1, h2, h3, h4, h5, h6 { + font-family: "Oswald",sans-serif; +} /* General reset */ * { diff --git a/fonts/Cabin-Bold.woff2 b/fonts/Cabin-Bold.woff2 new file mode 100644 index 0000000..3b82224 Binary files /dev/null and b/fonts/Cabin-Bold.woff2 differ diff --git a/fonts/Cabin-BoldItalic.woff2 b/fonts/Cabin-BoldItalic.woff2 new file mode 100644 index 0000000..4ec43be Binary files /dev/null and b/fonts/Cabin-BoldItalic.woff2 differ diff --git a/fonts/Cabin-Italic.woff2 b/fonts/Cabin-Italic.woff2 new file mode 100644 index 0000000..98ef2a8 Binary files /dev/null and b/fonts/Cabin-Italic.woff2 differ diff --git a/fonts/Cabin-Medium.woff2 b/fonts/Cabin-Medium.woff2 new file mode 100644 index 0000000..3b1db1c Binary files /dev/null and b/fonts/Cabin-Medium.woff2 differ diff --git a/fonts/Cabin-MediumItalic.woff2 b/fonts/Cabin-MediumItalic.woff2 new file mode 100644 index 0000000..2ad28db Binary files /dev/null and b/fonts/Cabin-MediumItalic.woff2 differ diff --git a/fonts/Cabin-Regular.woff2 b/fonts/Cabin-Regular.woff2 new file mode 100644 index 0000000..ba60de7 Binary files /dev/null and b/fonts/Cabin-Regular.woff2 differ diff --git a/fonts/Cabin-SemiBold.woff2 b/fonts/Cabin-SemiBold.woff2 new file mode 100644 index 0000000..557e914 Binary files /dev/null and b/fonts/Cabin-SemiBold.woff2 differ diff --git a/fonts/Cabin-SemiBoldItalic.woff2 b/fonts/Cabin-SemiBoldItalic.woff2 new file mode 100644 index 0000000..64851c1 Binary files /dev/null and b/fonts/Cabin-SemiBoldItalic.woff2 differ diff --git a/fonts/Oswald-Latin-ext.woff2 b/fonts/Oswald-Latin-ext.woff2 new file mode 100644 index 0000000..f4aef99 Binary files /dev/null and b/fonts/Oswald-Latin-ext.woff2 differ diff --git a/fonts/Oswald-Latin.woff2 b/fonts/Oswald-Latin.woff2 new file mode 100644 index 0000000..1ec6425 Binary files /dev/null and b/fonts/Oswald-Latin.woff2 differ diff --git a/index.template.php b/index.template.php index 85dbb43..165a765 100644 --- a/index.template.php +++ b/index.template.php @@ -181,6 +181,12 @@ function template_html_above() echo ' '; + // Include stylesheets for custom fonts. + // TODO: The theme path could probably be un-hardcoded. + echo ' + + '; + // Output any remaining HTML headers. (from mods, maybe?) echo $context['html_headers'];