Import a stylesheet rather than a font binary
W3C defines @import as a way to bring rules from another stylesheet into the current cascade. A statement such as @import url("./font-faces.css") belongs before ordinary style rules. The imported stylesheet can contain @font-face declarations. If all you have is a WOFF2 file, register it in a font-face rule instead.
Keep the imported family name and applied family aligned
Open the font stylesheet and check the exact family name and weight it provides. Use that name first in the element’s font-family list, then add a fallback. Confirm the stylesheet was requested and that the relevant font file became available. If a relative URL is used inside the imported stylesheet, inspect the request against the location of that stylesheet.
Check what users see when the resource arrives late
Compare the page before and after the intended font loads. Inspect the longest heading and the smallest important label in the fallback. If another stylesheet overrides the declaration, check rule order. The font-face guide covers direct file registration. Try the homepage copyable text styles for a separate caption.
Your questions, answered.
Can @import load a WOFF2 file by itself?
Use @import for stylesheet rules. Register a font file as the source in an @font-face rule.
Why did a late @import do nothing?
An import placed after ordinary style rules is invalid. Move it before them and check the resource path.
Sources & background
Sources supporting this page’s explanations. Practical examples are our editorial suggestions.