style(font): use @fontsource-variable/roboto-slab and set family to 'Roboto Slab Variable'

This commit is contained in:
2025-08-16 09:22:46 -06:00
parent f0d3a8ed30
commit 63e1df5d01
4 changed files with 10 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
/* Match brosner.com font */ /* Match brosner.com font */
@import url("@fontsource-variable/roboto-slab/index.css");
html, body { html, body {
font-family: "Roboto Slab", Roboto, "Helvetica Neue", Arial, sans-serif; font-family: "Roboto Slab Variable", Roboto, "Helvetica Neue", Arial, sans-serif;
font-optical-sizing: auto;
} }
/* Ensure navbar icons remain white like the original */ /* Ensure navbar icons remain white like the original */

View File

@@ -6,11 +6,7 @@ export default defineNuxtConfig({
css: ['bulma/css/bulma.min.css', '@/assets/css/main.css'], css: ['bulma/css/bulma.min.css', '@/assets/css/main.css'],
app: { app: {
head: { head: {
link: [ link: []
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
{ rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Roboto+Slab:opsz,wght@8..144,100..900&display=swap' }
]
} }
} }
}) })

View File

@@ -10,6 +10,7 @@
"postinstall": "nuxt prepare" "postinstall": "nuxt prepare"
}, },
"dependencies": { "dependencies": {
"@fontsource-variable/roboto-slab": "^5.2.6",
"bulma": "^1.0.4", "bulma": "^1.0.4",
"nuxt": "^4.0.3", "nuxt": "^4.0.3",
"typescript": "^5.6.3", "typescript": "^5.6.3",

View File

@@ -550,6 +550,11 @@
resolved "https://registry.yarnpkg.com/@fastify/busboy/-/busboy-3.1.1.tgz#af3aea7f1e52ec916d8b5c9dcc0f09d4c060a3fc" resolved "https://registry.yarnpkg.com/@fastify/busboy/-/busboy-3.1.1.tgz#af3aea7f1e52ec916d8b5c9dcc0f09d4c060a3fc"
integrity sha512-5DGmA8FTdB2XbDeEwc/5ZXBl6UbBAyBOOLlPuBnZ/N1SwdH9Ii+cOX3tBROlDgcTXxjOYnLMVoKk9+FXAw0CJw== integrity sha512-5DGmA8FTdB2XbDeEwc/5ZXBl6UbBAyBOOLlPuBnZ/N1SwdH9Ii+cOX3tBROlDgcTXxjOYnLMVoKk9+FXAw0CJw==
"@fontsource-variable/roboto-slab@^5.2.6":
version "5.2.6"
resolved "https://registry.yarnpkg.com/@fontsource-variable/roboto-slab/-/roboto-slab-5.2.6.tgz#04a4bbe73861bb77ed51a08a50149202932af89e"
integrity sha512-+Kz8D4cMh2ndwFOeZcFKAHnhZbFWslCmMI9QTy3uLocVkFyj30MriUmDphuiZPvBuEnotsVTZjjGMHyuM6nckQ==
"@ioredis/commands@^1.3.0": "@ioredis/commands@^1.3.0":
version "1.3.0" version "1.3.0"
resolved "https://registry.yarnpkg.com/@ioredis/commands/-/commands-1.3.0.tgz#4dc3ae9bfa7146b63baf27672a61db0ea86e35e5" resolved "https://registry.yarnpkg.com/@ioredis/commands/-/commands-1.3.0.tgz#4dc3ae9bfa7146b63baf27672a61db0ea86e35e5"