import { describe, it, expect } from 'vitest'; import { existsSync, readdirSync, readFileSync } from 'fs'; import { resolve } from 'path'; import { buildFontVariables, renderFontVariablesInline, FONT_SLOTS, type BrandingFontsLike, } from '../../utils/font-variables'; /** * Single-source-of-truth contract for branding-driven CSS font variables. * * Bug history (2026-08-01): * - 0.7.106–0.7.110: brand fonts were silently clobbered for * `--font-serif`/`--font-sans`/`--font-mono` because the tailwind.css * `@theme` block emitted `:root, :host { ... }` declarations into the * CSS bundle, which loaded AFTER Default.astro's inline `