Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 822 Bytes

UPGRADING.md

File metadata and controls

21 lines (13 loc) · 822 Bytes

Upgrade Guide

Upgrading from 1.x to 2.x

The syntax for Sass Web Fonts has changed.

What would previously have been written:

@include web-fonts("Open Sans");

Should now be written:

@import url(web-fonts-url("Open Sans"));

This change was made to allow Sass Web Fonts to be used with libsass.

If you have a large project with lots of calls to web-fonts() that you don't want to replace by hand, you can include web-fonts/compat.scss from the Sass Web Fonts repository and replace any occurrence of @import "web-fonts" with @import "web-fonts/compat" to continue using the old syntax. However, it is recommended that you switch to using the new syntax at some point, because web-fonts/compat will be removed in a future release of the library.