hatch-surf/node_modules/next/dist/build/webpack/loaders/next-font-loader/postcss-next-font.d.ts
Riley Zhang df378d33ef
Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Merge GitHub main into Gitea repo (allow unrelated histories)
Resolved conflicts by taking GitHub versions for:
- .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml

Kept deploy.sh updated to:
- Pull from GitHub (primary source)
- Push to Gitea (push-mirror)
- Build from site/ directory (GitHub structure)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-25 05:20:46 +02:00

36 lines
1.3 KiB
TypeScript

import type { AdjustFontFallback } from '../../../../../font';
/**
* The next/font postcss plugin receives the @font-face declarations returned from the next/font loaders.
*
* It hashes the font-family name to make it unguessable, it shouldn't be globally accessible.
* If it were global, we wouldn't be able to tell which pages are using which fonts when generating preload tags.
*
* If the font loader returned fallback metrics, generate a fallback @font-face.
*
* If the font loader returned a variable name, add a CSS class that declares a variable containing the font and fallback fonts.
*
* Lastly, it adds the font-family to the exports object.
* This enables you to access the actual font-family name, not just through the CSS class.
* e.g:
* const inter = Inter({ subsets: ['latin'] })
* inter.style.fontFamily // => '__Inter_123456'
*/
declare const postcssNextFontPlugin: {
({ exports, fallbackFonts, adjustFontFallback, variable, weight, style, }: {
exports: {
name: any;
value: any;
}[];
fallbackFonts?: string[];
adjustFontFallback?: AdjustFontFallback;
variable?: string;
weight?: string;
style?: string;
}): {
postcssPlugin: string;
Once(root: any): void;
};
postcss: boolean;
};
export default postcssNextFontPlugin;