Skip to content

@vanilla-extract/[email protected]

Choose a tag to compare

@vanilla-extract-ci vanilla-extract-ci released this 29 Jun 08:19
· 223 commits to master since this release
84ba370

Minor Changes

  • #1114 001be83 Thanks @taylorfsteele! - Supports passing multiple font face rules to fontFace

    Example usage

    import { fontFace, style } from '@vanilla-extract/css';
    
    const gentium = fontFace([
      {
        src: 'local("Gentium")',
        fontWeight: 'normal',
      },
      {
        src: 'local("Gentium Bold")',
        fontWeight: 'bold',
      },
    ]);
    
    export const font = style({
      fontFamily: gentium,
    });