8000 Google Fonts never load (import dropped after Tailwind) · Issue #32 · simon-inkie/inkie-deck · GitHub
[go: up one dir, main page]

Skip to content

Google Fonts never load (import dropped after Tailwind) #32

Closed

Description

@simon-inkie

Problem

packages/deck/app/app.css imports Tailwind on line 1 and the Google Fonts URL on line 2. Tailwind inlines at line 1, so the font @import is no longer first and browsers must drop it; Vite warns @import must precede all other statements. The app renders in fallback fonts even when online. The docs' "typography needs the internet" limitation wrongly blames the network for this.

Evidence

Reproduced on both a fresh dev run and a production build.

Fix

Move the font URL into links in app/root.tsx beside the existing preconnect (or above the Tailwind import), and correct the limitation text that currently blames network access.

Acceptance criteria

  • No postcss @import warning in dev or build.
  • document.fonts shows the expected typefaces loaded in a clean browser profile.

From the 2026-09-27 Windows/WSL install test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:P3Polish

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0