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: Kick-starting from Classic theme in version 7.2 - missing dependency
Hi,
I am creating a theme which is based on styled theme, but I kick-started from the Classic theme version 7.2, basically by copying Classic theme files manually into my project.
Now the problem is that in the 7.2 Classic theme -> clay.scss file, there are 2 imports that fail during theme build (maven):
@import 'liferay-font-awesome/scss/font-awesome';
@import 'liferay-font-awesome/scss/glyphicons';
These 2 files are missing. It can be solved by removing the imports, but I guess that it's not right. How to solve this better?
I am creating a theme which is based on styled theme, but I kick-started from the Classic theme version 7.2, basically by copying Classic theme files manually into my project.
Now the problem is that in the 7.2 Classic theme -> clay.scss file, there are 2 imports that fail during theme build (maven):
@import 'liferay-font-awesome/scss/font-awesome';
@import 'liferay-font-awesome/scss/glyphicons';
These 2 files are missing. It can be solved by removing the imports, but I guess that it's not right. How to solve this better?
I believe, although I may be wrong, that these files are created during the build itself.
You may need to actually do a build of the Liferay 7.2 source to get these files created for you.
You may need to actually do a build of the Liferay 7.2 source to get these files created for you.
Hi David,
that's what I thought as well - that these files should be created during the build - most probably downloaded. Which would mean there's some problem during the build.
that's what I thought as well - that these files should be created during the build - most probably downloaded. Which would mean there's some problem during the build.
I just found this issue on GitHub that mentions this problem.
https://github.com/liferay/liferay-js-themes-toolkit/issues/380
Seems that it's been fixed for the node.js theme generator. But in IntelliJ IDEA Liferay plugin, the build still doesn't work. Does anyone know if it's going to be fixed, or is there a manual workaround?
https://github.com/liferay/liferay-js-themes-toolkit/issues/380
Seems that it's been fixed for the node.js theme generator. But in IntelliJ IDEA Liferay plugin, the build still doesn't work. Does anyone know if it's going to be fixed, or is there a manual workaround?
I'm sure it will get addressed, but I can't say for certain when that might be.
What happened to the theme generator ??? Is it still a thing?
As far as I know, Liferray pulled Font Awesome and Glyph from Classic?? Which reeeeeeeeealllllllly suuuuuuuuuuuuuucks, because we have to put it back ourselves.
@import 'liferay-font-awesome/scss/font-awesome';
@import 'liferay-font-awesome/scss/glyphicons';
These 2 files are missing. It can be solved by removing the imports, but I guess that it's not right. How to solve this better?
Lee Jordan:
As far as I know, Liferray pulled Font Awesome and Glyph from Classic?? Which reeeeeeeeealllllllly suuuuuuuuuuuuuucks, because we have to put it back ourselves.
@import 'liferay-font-awesome/scss/font-awesome';
@import 'liferay-font-awesome/scss/glyphicons';
These 2 files are missing. It can be solved by removing the imports, but I guess that it's not right. How to solve this better?
Do you know where are them to put them back?
Liferay deprecated FA and Glyphs in lieu of the Clay icon support that is built in. If you can, I'd suggest using the Clay icons to shrink your dependencies/download sizes and enforce consistency w/ Liferay UI.
David H Nebinger:
Thanks David. Problem is I can't create a theme (using Maven) that imports "liferay-font-awesome". I see it was a bug (fixed here https://github.com/liferay/liferay-js-themes-toolkit/issues/380 ) but I wanted to fix it using Maven, not using the npm stuff.
Liferay deprecated FA and Glyphs in lieu of the Clay icon support that is built in. If you can, I'd suggest using the Clay icons to shrink your dependencies/download sizes and enforce consistency w/ Liferay UI.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™