LNG LogoLNG Logo
    • Enterprise App Development
    • Product Architecture Design
    • Data Engineering & Analytics
    • Cloud Consulting Services
    • AI-Enabled Applications
    • Remote Engineering Teams
    • UI/UX Design
    • Data Migration
    • Big Data
    • DevOps Solutions
    • Banking
    • Ecommerce
    • Fintech
    • Healthcare
    • Hospitality
    • Manufacturing
    • Telecom
    • Travel
    • Education
    • Cross-Platform & Web Development
    • Digital Experience Platform
    • Enterprise Technologies
    • Modern Frontend Interface
    • About Us
    • Blog
    • Our Team
    • Careers
    • Success Stories
Let's Talk !

Styling Components | XM Cloud Builder Part 3 | L&G

By: Koushik MukherjeeOctober 1, 2024

In my previous blog, I discussed on how to apply rules to the elements and how to implement theme. In the current blog, I’ll discuss on Style a component, an elements and customize the theme.

In XM Cloud Components, themes are managed in the Styles builder, allowing you to apply them to components with a single click.

In a previous blog, I explained that themes consist of pre-built elements and style rules, designed to simplify the styling process by applying multiple styles at once.

How to Style a Component Using a Theme:

  1. In the Components library, select the component you want to style.
  2. In the Components builder, locate the version you want to style and click Current theme in the top-right corner.
  3. In the right-hand panel, under the Themes tab, select the theme you wish to apply.
  4. The component will now be styled according to the chosen theme.
Theme settings editor

Customizing a Theme

You can tailor a theme by selecting alternative styles for certain categories of elements. This is possible only if the theme includes pre-configured alternatives to the default styles. You can access these alternative styles by clicking the right arrow in the theme picker.

To customize a theme for a specific component version:

  1. In the Components builder, select the version you wish to customize.
  2. In the top-right corner, click Current theme.
  3. In the right-hand panel, click Customize.
  4. Select the right arrow for the element type you want to modify.
  5. From the Allowed styles list, choose the style for that element type within the component.
  6. Customized styles are highlighted in light green in the Element customization overview.
Theme selection interface

 

Please note: The customization only applies to the current theme and component version. Changing the theme will remove all customizations, and they won’t be transferred to other components or versions using the same theme.

Styling a Single Element and Text

In XM Cloud Components, elements are assigned one or more styles from the Styles library. When an element is used in a component, it automatically adopts the default style assigned in the Styles library.

Styling a Single Element

You can modify the style of a specific element within a component without altering the style of all similar elements in the component.

To style an individual element:

 

Text editor interface

 

  1. In the Components builder, select the element you want to style by either clicking it on the canvas or using the context toolbar in the bottom-left corner of the component.
  2. In the right-hand pane, at the top of the Style section, click the style tile.
  3. To choose a new style for the element, click the top tile.
  4. In the drop-down menu, select one of the following options:
    • Current theme: Access the styles allowed by the currently applied theme.
    • All available: Access all available styles for the element, even those not assigned to the current theme.
  5. Click on the desired style to apply it to the selected element.

The element will now be styled according to the chosen style, either from the current theme or from any other allowed styles in the Styles library.

You can also detach the element from the current theme and choose a style from the All available list. If the theme is modified, an orange tag with a warning icon will appear next to its name. Further customization is possible through one-off adjustments.

Styling Text

You can style text by making inline edits or applying style rules defined in the Styles library.

To style text:

Heading 4 style editor

  1. In the Components builder, highlight the text you want to style.
  2. To change the text style:
    • In the right-hand pane, under the Style section, click the tile to open the Styles picker and select a different style for the text.
    • To the left of the highlighted text, click the dropdown and select one of the Text element tags. The styles associated with these tags are predefined in the Text blocks of the Styles library.
  3. To adjust text alignment, open the Text settings under the Alignment section in the right-hand pane.

Customizing an Element

Elements are assigned one or more styles in the Styles library. When used in a component, the element is styled based on the theme selected for that component. However, you can change the default style by selecting a different style from the Styles library or other available styles.

Customizing a Style

To customize a style by modifying one or more features:

Heading 4 typography settings
  1. In the Components builder, select the element you want to style by either clicking it on the canvas or using the context toolbar in the bottom-left corner of the component.
  2. At the top of the right-hand pane, under the Style section, click the tile to open the Styles picker and select the style you want to customize.
  3. To modify a specific feature of the style (e.g., Typography or Spacing), click the relevant option.
  4. Enable the “Show all available styles” option to view all styles built in the Styles builder. You can choose from additional styles assigned to the element or select any style from the library, even if not originally assigned. Note that using extra options will detach the style from the original element, indicated by a warning icon.

Creating a One-Off Customization of a Style

To create a one-off customization by configuring one or more features of a style:

Paragraph typography settings

  1. In the Components builder, select the element you want to style by clicking it on the canvas or using the context toolbar in the bottom-left corner.
  2. At the top of the right-hand pane, under the Style section, click the tile to open the Styles picker and choose the style you wish to customize.
  3. Select the feature of the style you want to modify (e.g., Typography or Spacing).
  4. Click the options menu (three dots) and choose Custom.
  5. The right-hand pane will display the configuration settings from the Styles builder, allowing you to create a one-off custom design.
Custom typography settings
In my upcoming blog, I’ll discuss about the how to manage version and data source for components.
 
References: Creating your styles library 

SitecoreSitecore BasicsXM CloudXM Cloud Component Builder
Two CMSs, One Website: Managing Routing During WordPress to Sitecore MigrationJune 17, 2026Mastering Identity Resolution in Sitecore CDP: Anonymous to Known VisitorsMay 25, 2026

Let's Innovate, Collaborate, Build Your Product Together!

We turn your unique ideas into exceptional results. Contact us to
scale your tech capacity and accelerate business growth.

Let's Talk!
Where We Are

Our Global Presence

Delivering world-class digital solutions from three strategic locations across the globe.

South AfricaSouth Africa
ZACape Town

4th Floor, Mutual Park, Pinelands, Capetown, South Africa - 7405.

UAEUAE
AEDubai

FZCO 421, Dubai Commercity, Dubai, United Arab Emirates.

IndiaIndia
INAmritsar

SCO 6, Floor - 5, Dua Square, Ranjit Avenue, Block - B, Amritsar, Punjab, India - 143002

Logo

AI-Fuelled software agency, helping business professionals to thrive. Trusted by global leaders.

Company

  • About Us
  • Blog
  • Our Term
  • Careers
  • Success Stories

Services

  • AI-Enabled Applications
  • Big Data
  • Cloud Consulting Services
  • Data Engineering & Analytics
  • Data Migration
  • DevOps Solutions
  • Enterprise Application Development
  • Product Architecture Design
  • Remote Engineering Teams
  • UI/UX Design

Industries

  • Banking
  • Ecommerce
  • Fintech
  • Healthcare
  • Hospitality
  • Manufacturing
  • Telecom
  • Travel & Transport
  • Education

Technologies

  • Cross-Platform and Web Development
  • Digital Experience Platform
  • Enterprise Technologies
  • Modern Frontend Interface
Logo

AI-Fuelled software agency, helping business professionals to thrive. Trusted by global leaders.

Company
  • About Us
  • Blog
  • Our Term
  • Careers
  • Success Stories
Services
  • AI-Enabled Applications
  • Big Data
  • Cloud Consulting Services
  • Data Engineering & Analytics
  • Data Migration
  • DevOps Solutions
  • Enterprise Application Development
  • Product Architecture Design
  • Remote Engineering Teams
  • UI/UX Design
Industries
  • Banking
  • Ecommerce
  • Fintech
  • Healthcare
  • Hospitality
  • Manufacturing
  • Telecom
  • Travel & Transport
  • Education
Technologies
  • Cross-Platform and Web Development
  • Digital Experience Platform
  • Enterprise Technologies
  • Modern Frontend Interface

Copyright © 2026 L&G Consultancy. All Rights Reserved.
Privacy PolicyTerms and Conditions
Company Image