Skip to content

Docs (useage): TailwindCSS v4 #409

@waynegibson

Description

@waynegibson

TailwindCSS v4 had an update to the way you configure theme fonts variables. See this pull request tailwindlabs/tailwindcss#14885.

The font family variable has been renamed from --font-family-* variables to --font-*

Old way

@theme {
 --font-family-display: "Inter", "sans-serif";
}

New way

@theme {
  --font-display: "Inter", "sans-serif";
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions