Skip to content

Commit

Permalink
web: Upgrade font to roboto flex
Browse files Browse the repository at this point in the history
  • Loading branch information
schneefux committed Jan 21, 2025
1 parent 0088c58 commit d4f39e2
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 321 deletions.
2 changes: 1 addition & 1 deletion klicker/components/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@import "tailwindcss/utilities";

@import "./dashboard.css";
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

.dark {
--color-background: 24 24 27; /* gray-900 */
Expand Down
2 changes: 1 addition & 1 deletion klicker/tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = {
},
extend: {
fontFamily: {
sans: ['Roboto', ...defaultTheme.fontFamily.sans],
sans: ['Roboto Flex', ...defaultTheme.fontFamily.sans],
},
spacing: {
120: '30rem',
Expand Down
17 changes: 7 additions & 10 deletions web/assets/css/fonts.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
/* roboto-regular - latin */
// https://gwfh.mranftl.com/fonts/roboto-flex?subsets=latin

/* roboto-flex-regular - latin */
@font-face {
font-family: 'Roboto';
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Roboto Flex';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('~/assets/fonts/roboto-v29-latin-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('~/assets/fonts/roboto-v29-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('~/assets/fonts/roboto-v29-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('~/assets/fonts/roboto-v29-latin-regular.woff') format('woff'), /* Modern Browsers */
url('~/assets/fonts/roboto-v29-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('~/assets/fonts/roboto-v29-latin-regular.svg#Roboto') format('svg'); /* Legacy iOS */
src: url('~/assets/fonts/roboto-flex-v27-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
url('~/assets/fonts/roboto-flex-v27-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
Binary file not shown.
Binary file not shown.
Binary file removed web/assets/fonts/roboto-v29-latin-regular.eot
Binary file not shown.
308 changes: 0 additions & 308 deletions web/assets/fonts/roboto-v29-latin-regular.svg

This file was deleted.

Binary file removed web/assets/fonts/roboto-v29-latin-regular.ttf
Binary file not shown.
Binary file removed web/assets/fonts/roboto-v29-latin-regular.woff
Binary file not shown.
Binary file removed web/assets/fonts/roboto-v29-latin-regular.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion web/tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = {
},
extend: {
fontFamily: {
sans: ['Roboto', ...defaultTheme.fontFamily.sans],
sans: ['Roboto Flex', ...defaultTheme.fontFamily.sans],
},
spacing: {
120: '30rem',
Expand Down

0 comments on commit d4f39e2

Please sign in to comment.