joakimbeng / unistyle

Write modular and scalable CSS using the next version of ECMAScript
312 stars 11 forks source link

@font-faces! #9

Closed kalimantos closed 8 years ago

kalimantos commented 8 years ago

Hi guys! how to define multiple @font-faces? As now it's only possible declare once, then the others overwrites the first one.

Ciao

joakimbeng commented 8 years ago

I'm on it!

Soon you will be able to declare those as an array:

export default {
  '@font-face': [
    {fontFamily: 'MyFont', src: [...]},
    {fontFamily: 'OtherFont', src: [...]}
  ]
};