How to use Google Fonts in Less CSS?

user3169289 picture user3169289 · Apr 5, 2014 · Viewed 17.5k times · Source

I'm looking for a solution to embed Google Fonts or any other custom fonts in Less CSS.

How can I embed the given font?

<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,600italic,700,700italic,900,900italic,400italic' rel='stylesheet' type='text/css'>

Answer

sibidiba picture sibidiba · Apr 28, 2016

Try:

@import (css) url(...)

Keeps the import statement as-is on top.