This workspace contains two examples of implementing the Carbon Design System as a Liferay Theme CSS Client Extension.
-
carbon-v11-direct-css-copy
This is a direct copy of Carbon's css. It's quick and easy but it will only work with markup designed for Carbon. As a result none of Liferay's components will be restyled to look like Carbon.
-
carbon-gray-100-v11
This example is applying Carbon's design system to Clay by using Clay's Sass API. This takes a bit more work, but it results in all of Liferay's OOTB components also being styled to match Carbon's design system. This let's you leverage more of Liferay's features and will likely save you time in the long run.
- Update
liferay.workspace.home.dir=
in yourgradle.properties
file to point towards your Liferay bundle. - From the
client-extensions
directory runblade gw deploy
.
-
Theme CSS Client Extensions Documentation
-
Carbon Design System Gray 100 Figma
-
Carbon Design System White Figma
-
Carbon Design System Web Implementation
-
Clay Paver 2
-
Clay Documentation