cssgoogle-fonts

Is there a shortcut for importing all weights of a Google font?


In a CSS file, I'd like to @import all weights and styles of a google font, say Roboto or Roboto Slab, for experimentation. Later I can trim to a list of only needed styles. Is there a shortcut, rather than putting the entire list in the @import?


Solution

  • You can use like this :wght@100..900

    or <link href="https://fonts.googleapis.com/css?family=Khula:wght@100..900" rel="stylesheet">