![]() ![]() I tried this solution and it doesn't embed the font files, it copies the files to the 'public' folder adding a hash to their names and sets the values of the imports to the paths of the generated font files, so this doesn't add to the bundle size. It let us keep a CSS in JS direction, without a single CSS file out of place.ฤก1/12/18: The example has been updated with the new createGlobalStyle This method will embed the font files into the js bundle, which is not ideal, especially for fonts that are low priority. That seems like a lot of lines, but it's a one time thing to do for the project. Designed by Harold Lohner from Harolds Fonts. ![]() ![]() shared/css/globalStyles.js import // etc. The movie title (Gatsby part) in the poster was probably designed based on an art deco style font named Atlas. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |