import { createLocalFontOptions, type ThemeFontDefinition } from "./types";

const INTER_SRC = "../../fonts/inter/InterVariable.woff2";

export const interFont: ThemeFontDefinition = {
  name: "InterVariable",
  family: "InterVariable",
  cssVariable: "--theme-font-family-inter",
  fallbacks: [
    "Inter",
    "-apple-system",
    "BlinkMacSystemFont",
    "Segoe UI",
    "Roboto",
    "Helvetica Neue",
    "Arial",
    "sans-serif",
  ],
  display: "swap",
  preload: false,
  sources: [
    {
      filename: INTER_SRC,
      weight: "100 900",
      style: "normal",
    },
  ],
};

export const interLocalFont = createLocalFontOptions(
  interFont,
  import.meta.url,
);
