mirror of
https://github.com/bitbaum/botsmann.git
synced 2026-12-04 05:48:27 +01:00
next/font/google downloads the faces during next build, so the build failed whenever Google Fonts did not answer. The same files ship in @bitbaum/design-tokens 1.3.1; app/fonts.ts is the next/font/local module its design-tokens-next-fonts command writes. --font-inter and --font-fraunces (400-700, normal and italic), subsets and preloads are what next/font/google produced. The layout's serif const is now fraunces: the export name becomes the family name, and serif is the CSS generic. Only the font module, the layout's font lines and the dependency change. Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 Co-authored-by: Claude <noreply@anthropic.com>
307 lines
8.6 KiB
TypeScript
307 lines
8.6 KiB
TypeScript
// Generated by @bitbaum/design-tokens. Do not edit; to change it, run:
|
|
// pnpm exec design-tokens-next-fonts app/fonts.ts 'sans=inter;variable=--font-inter' 'fraunces=fraunces;weight=400,500,600,700;style=normal,italic;variable=--font-fraunces'
|
|
// The faces ship in the package (fonts/faces.json): no build fetches fonts.
|
|
import localFont from 'next/font/local';
|
|
|
|
export const sansCyrillicExt = localFont({
|
|
src: [
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/inter/inter-cyrillic-ext.woff2',
|
|
weight: '100 900',
|
|
style: 'normal',
|
|
},
|
|
],
|
|
display: 'swap',
|
|
preload: false,
|
|
adjustFontFallback: false,
|
|
declarations: [
|
|
{ prop: 'font-family', value: "'sans'" },
|
|
{
|
|
prop: 'unicode-range',
|
|
value: 'U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F',
|
|
},
|
|
],
|
|
});
|
|
|
|
export const sansCyrillic = localFont({
|
|
src: [
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/inter/inter-cyrillic.woff2',
|
|
weight: '100 900',
|
|
style: 'normal',
|
|
},
|
|
],
|
|
display: 'swap',
|
|
preload: false,
|
|
adjustFontFallback: false,
|
|
declarations: [
|
|
{ prop: 'font-family', value: "'sans'" },
|
|
{ prop: 'unicode-range', value: 'U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116' },
|
|
],
|
|
});
|
|
|
|
export const sansGreekExt = localFont({
|
|
src: [
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/inter/inter-greek-ext.woff2',
|
|
weight: '100 900',
|
|
style: 'normal',
|
|
},
|
|
],
|
|
display: 'swap',
|
|
preload: false,
|
|
adjustFontFallback: false,
|
|
declarations: [
|
|
{ prop: 'font-family', value: "'sans'" },
|
|
{ prop: 'unicode-range', value: 'U+1F00-1FFF' },
|
|
],
|
|
});
|
|
|
|
export const sansGreek = localFont({
|
|
src: [
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/inter/inter-greek.woff2',
|
|
weight: '100 900',
|
|
style: 'normal',
|
|
},
|
|
],
|
|
display: 'swap',
|
|
preload: false,
|
|
adjustFontFallback: false,
|
|
declarations: [
|
|
{ prop: 'font-family', value: "'sans'" },
|
|
{
|
|
prop: 'unicode-range',
|
|
value: 'U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF',
|
|
},
|
|
],
|
|
});
|
|
|
|
export const sansVietnamese = localFont({
|
|
src: [
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/inter/inter-vietnamese.woff2',
|
|
weight: '100 900',
|
|
style: 'normal',
|
|
},
|
|
],
|
|
display: 'swap',
|
|
preload: false,
|
|
adjustFontFallback: false,
|
|
declarations: [
|
|
{ prop: 'font-family', value: "'sans'" },
|
|
{
|
|
prop: 'unicode-range',
|
|
value:
|
|
'U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB',
|
|
},
|
|
],
|
|
});
|
|
|
|
export const sansLatinExt = localFont({
|
|
src: [
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/inter/inter-latin-ext.woff2',
|
|
weight: '100 900',
|
|
style: 'normal',
|
|
},
|
|
],
|
|
display: 'swap',
|
|
preload: false,
|
|
adjustFontFallback: false,
|
|
declarations: [
|
|
{ prop: 'font-family', value: "'sans'" },
|
|
{
|
|
prop: 'unicode-range',
|
|
value:
|
|
'U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF',
|
|
},
|
|
],
|
|
});
|
|
|
|
export const sans = localFont({
|
|
src: [
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/inter/inter-latin.woff2',
|
|
weight: '100 900',
|
|
style: 'normal',
|
|
},
|
|
],
|
|
variable: '--font-inter',
|
|
display: 'swap',
|
|
declarations: [
|
|
{
|
|
prop: 'unicode-range',
|
|
value:
|
|
'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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD',
|
|
},
|
|
],
|
|
});
|
|
|
|
export const frauncesVietnamese = localFont({
|
|
src: [
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-vietnamese.woff2',
|
|
weight: '400',
|
|
style: 'normal',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-vietnamese.woff2',
|
|
weight: '500',
|
|
style: 'normal',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-vietnamese.woff2',
|
|
weight: '600',
|
|
style: 'normal',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-vietnamese.woff2',
|
|
weight: '700',
|
|
style: 'normal',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-italic-vietnamese.woff2',
|
|
weight: '400',
|
|
style: 'italic',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-italic-vietnamese.woff2',
|
|
weight: '500',
|
|
style: 'italic',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-italic-vietnamese.woff2',
|
|
weight: '600',
|
|
style: 'italic',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-italic-vietnamese.woff2',
|
|
weight: '700',
|
|
style: 'italic',
|
|
},
|
|
],
|
|
display: 'swap',
|
|
preload: false,
|
|
adjustFontFallback: false,
|
|
declarations: [
|
|
{ prop: 'font-family', value: "'fraunces'" },
|
|
{
|
|
prop: 'unicode-range',
|
|
value:
|
|
'U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB',
|
|
},
|
|
],
|
|
});
|
|
|
|
export const frauncesLatinExt = localFont({
|
|
src: [
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-latin-ext.woff2',
|
|
weight: '400',
|
|
style: 'normal',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-latin-ext.woff2',
|
|
weight: '500',
|
|
style: 'normal',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-latin-ext.woff2',
|
|
weight: '600',
|
|
style: 'normal',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-latin-ext.woff2',
|
|
weight: '700',
|
|
style: 'normal',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-italic-latin-ext.woff2',
|
|
weight: '400',
|
|
style: 'italic',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-italic-latin-ext.woff2',
|
|
weight: '500',
|
|
style: 'italic',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-italic-latin-ext.woff2',
|
|
weight: '600',
|
|
style: 'italic',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-italic-latin-ext.woff2',
|
|
weight: '700',
|
|
style: 'italic',
|
|
},
|
|
],
|
|
display: 'swap',
|
|
preload: false,
|
|
adjustFontFallback: false,
|
|
declarations: [
|
|
{ prop: 'font-family', value: "'fraunces'" },
|
|
{
|
|
prop: 'unicode-range',
|
|
value:
|
|
'U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF',
|
|
},
|
|
],
|
|
});
|
|
|
|
export const fraunces = localFont({
|
|
src: [
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-latin.woff2',
|
|
weight: '400',
|
|
style: 'normal',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-latin.woff2',
|
|
weight: '500',
|
|
style: 'normal',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-latin.woff2',
|
|
weight: '600',
|
|
style: 'normal',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-latin.woff2',
|
|
weight: '700',
|
|
style: 'normal',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-italic-latin.woff2',
|
|
weight: '400',
|
|
style: 'italic',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-italic-latin.woff2',
|
|
weight: '500',
|
|
style: 'italic',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-italic-latin.woff2',
|
|
weight: '600',
|
|
style: 'italic',
|
|
},
|
|
{
|
|
path: '../node_modules/@bitbaum/design-tokens/fonts/fraunces/fraunces-italic-latin.woff2',
|
|
weight: '700',
|
|
style: 'italic',
|
|
},
|
|
],
|
|
variable: '--font-fraunces',
|
|
display: 'swap',
|
|
adjustFontFallback: 'Times New Roman',
|
|
declarations: [
|
|
{
|
|
prop: 'unicode-range',
|
|
value:
|
|
'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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD',
|
|
},
|
|
],
|
|
});
|