
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
astro-fontaine
Advanced tools
This is an Astro plugin that will automatically generate fallback fonts for the web fonts in your site to prevent CLS using the wonderful fontaine library.
It does the following:
@font-face definitions.public directory and rewrites the stylesheet to use the fonts hosted on your
site's domain.@font-face declarations into all pages in your site's build.Add this code to your astro.config.js:
import { defineConfig } from 'astro/config'
import fontaine from 'astro-fontaine'
export default defineConfig({
integrations: [
fontaine({
// If you are using Google Fonts, Typekit or some other font hosting service, you can provide the URL to the
// stylesheet here and the plugin will download and inline it into your webpages automatically.
remoteFontFaceStylesheetURLs: [
'https://fonts.googleapis.com/css2?family=Arvo:ital,wght@0,400;0,700;1,400;1,700&family=Fira+Code&family=Lato:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=fallback',
],
// Array of font families that will be used to generate the fallback fonts
fonts: [
{
family: 'Arvo',
// You can provide fallbacks per fronts such that the fallback font is of the same style when it flashes.
fallbacks: ['Georgia', 'Cambria'],
},
// If you omit fallbacks, the defaultFallbacks property will be used.
{ family: 'Lato' },
{
family: 'Fira Code',
fallbacks: [
'SFMono-Regular',
'Menlo',
'Monaco',
'Consolas',
'Liberation Mono',
'Courier New',
'monospace',
],
},
],
defaultFallbacks: [
'ui-sans-serif',
'Helvetica Neue',
'Arial',
'sans-serif',
],
}),
]
})
This library borrows heavily from the following libraries and would not exist without them:
FAQs
Automatically generate fallback font faces for your Astro site
We found that astro-fontaine demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.