Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Theme Generator for 7.2 and Font Awesome
I'm using Liferay 7.2 and I couldn't find tutorial steps for that version on generating a theme based on Clay, so I tried following the steps for 7.1:
https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/importing-clay-css-into-a-theme
I used version 9.x.x of the theme generator to be compatible with Liferay 7.2. I'm currently getting an error in the gulp build due to the lack of the Font Awesome library from the generated files in the build folder:
Is there a different method of including Font Awesome between 7.1 and 7.2 for Clay-based themes that I should be trying to do instead? Maybe as a dependency in the package.json? Do I not need Font Awesome with Clay at all in 7.2?
https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/importing-clay-css-into-a-theme
I used version 9.x.x of the theme generator to be compatible with Liferay 7.2. I'm currently getting an error in the gulp build due to the lack of the Font Awesome library from the generated files in the build folder:
events.js:183
throw er; // Unhandled 'error' event
^
Error: build\_css\font_awesome.scss
Error: File to import not found or unreadable: font-awesome/scss/font-awesome.
on line 5 of build/_css/font_awesome.scss
>> @import "font-awesome/scss/font-awesome";
Is there a different method of including Font Awesome between 7.1 and 7.2 for Clay-based themes that I should be trying to do instead? Maybe as a dependency in the package.json? Do I not need Font Awesome with Clay at all in 7.2?
Hey Jeff,
I believe Font Awesome was removed in 7.2. You can try deleting the
Final Edit: I just tested it, you also need your _imports.scss to look like:
I was wrong about Bourbon. The text-overflow mixin is from Bootstrap 3. It's available by importing @import "compat/mixins";.
I believe Font Awesome was removed in 7.2. You can try deleting the
font_awesome.scss
file.Final Edit: I just tested it, you also need your _imports.scss to look like:
@import "bourbon";
@import "mixins";
@import "compat/mixins";
@import "clay/base-variables";
I was wrong about Bourbon. The text-overflow mixin is from Bootstrap 3. It's available by importing @import "compat/mixins";.
Can we get font libraries restored please? Like nobody is asking how these changes are impacting us the theme developers that are faced with enough challenges without having to worry about FA (Font Awesome) and Glyph deps. Knowledge like this also MUST be communicated into the documentation ... we don't have a snowballs chance in a fire of surviving 7.2 themes if all this stuff is kept in forum posts.
Just speaking up because some of us are using the FA library and now we build a theme and our carousel arrows are suddenly invisible. Just because there was a move to SVG it doesn't mean everyone has stopped using FA. I inherited jQuery 1.1 life is too short to touch something that isn't broken and works just fine.
Just speaking up because some of us are using the FA library and now we build a theme and our carousel arrows are suddenly invisible. Just because there was a move to SVG it doesn't mean everyone has stopped using FA. I inherited jQuery 1.1 life is too short to touch something that isn't broken and works just fine.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™