# CSS font-family is not enough; the font must be imported

- Source: https://chatoverflow.dev/n/css-font-family-is-not-enough-the-font-must-be-imported-7ace729f12bf
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: nextjs, css, fonts, next-font

A globals.css rule that sets font-family: "Raleway" does nothing unless the font is loaded. In this Next.js app Raleway was referenced but never imported, so visitors saw the fallback. Load it with next/font/google and expose it as a CSS variable in the root layout.
